@northlight/ui 2.18.2 → 2.18.3
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/es/northlight.d.ts +20 -2
- package/dist/es/northlight.js +7 -3
- package/dist/es/northlight.js.map +1 -1
- package/dist/umd/northlight.cjs +7 -3
- package/dist/umd/northlight.cjs.map +1 -1
- package/dist/umd/northlight.min.cjs +1 -1
- package/dist/umd/northlight.min.cjs.map +1 -1
- package/package.json +3 -3
package/dist/es/northlight.d.ts
CHANGED
|
@@ -2620,7 +2620,7 @@ interface NotificationIconButtonProps extends IconButtonProps$1 {
|
|
|
2620
2620
|
*/
|
|
2621
2621
|
declare const NotificationIconButton: (props: NotificationIconButtonProps & React__default.RefAttributes<unknown>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
2622
2622
|
|
|
2623
|
-
type PinVariant = 'green' | 'yellow' | 'gray' | 'red';
|
|
2623
|
+
type PinVariant = 'green' | 'running' | 'yellow' | 'inProgress' | 'gray' | 'notExecuted' | 'red' | 'rejected';
|
|
2624
2624
|
type PinSize = 'sm' | 'md' | 'lg';
|
|
2625
2625
|
type PinSizeTuple = [number, number];
|
|
2626
2626
|
interface PinInputProps extends PinInputProps$1 {
|
|
@@ -3390,7 +3390,25 @@ interface StatusPinProps {
|
|
|
3390
3390
|
* @see {@link https://northlight/reference/status-pin}
|
|
3391
3391
|
*
|
|
3392
3392
|
* @example
|
|
3393
|
-
* (?
|
|
3393
|
+
* (?
|
|
3394
|
+
* +
|
|
3395
|
+
* const variants = ["running", "inProgress", "notExecuted", "rejected"]
|
|
3396
|
+
* const sizes = ["sm", "md", "lg"]
|
|
3397
|
+
* const Example = () => {
|
|
3398
|
+
* return <Stack>
|
|
3399
|
+
* { sizes.map((size) => (
|
|
3400
|
+
* <HStack spacing={ 4 }>
|
|
3401
|
+
* {
|
|
3402
|
+
* variants.map((variant) => (
|
|
3403
|
+
* <StatusPin variant={variant} size={size} />
|
|
3404
|
+
* ))
|
|
3405
|
+
* }
|
|
3406
|
+
* </HStack>
|
|
3407
|
+
* ))}
|
|
3408
|
+
* </Stack>
|
|
3409
|
+
* }
|
|
3410
|
+
* render(<Example/>)
|
|
3411
|
+
* ?)
|
|
3394
3412
|
*
|
|
3395
3413
|
*/
|
|
3396
3414
|
declare const StatusPin: ({ size, variant }: StatusPinProps) => JSX.Element;
|
package/dist/es/northlight.js
CHANGED
|
@@ -12916,10 +12916,14 @@ const useToast = (defaultOpts = {}) => {
|
|
|
12916
12916
|
};
|
|
12917
12917
|
|
|
12918
12918
|
const pinVariantMap = {
|
|
12919
|
-
green: "green.
|
|
12920
|
-
|
|
12919
|
+
green: "green.500",
|
|
12920
|
+
running: "green.500",
|
|
12921
|
+
yellow: "yellow.600",
|
|
12922
|
+
inProgress: "yellow.600",
|
|
12921
12923
|
gray: "gray.300",
|
|
12922
|
-
|
|
12924
|
+
notExecuted: "gray.300",
|
|
12925
|
+
red: "red.500",
|
|
12926
|
+
rejected: "red.500"
|
|
12923
12927
|
};
|
|
12924
12928
|
|
|
12925
12929
|
const pinSizeMap = {
|