@apify/ui-library 1.168.3 → 1.170.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/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/skeleton/index.d.ts +6 -0
- package/dist/components/skeleton/index.d.ts.map +1 -0
- package/dist/components/skeleton/skeleton.d.ts +18 -0
- package/dist/components/skeleton/skeleton.d.ts.map +1 -0
- package/dist/components/skeleton/skeleton.js +19 -0
- package/dist/components/skeleton/skeleton.styled.d.ts +13 -0
- package/dist/components/skeleton/skeleton.styled.d.ts.map +1 -0
- package/dist/components/skeleton/skeleton.styled.js +55 -0
- package/dist/components/skeleton/skeleton.test_ids.d.ts +6 -0
- package/dist/components/skeleton/skeleton.test_ids.d.ts.map +1 -0
- package/dist/components/skeleton/skeleton.test_ids.js +8 -0
- package/dist/components/skeleton/skeleton.type-test.d.ts +2 -0
- package/dist/components/skeleton/skeleton.type-test.d.ts.map +1 -0
- package/dist/components/skeleton/skeleton_fade_in.d.ts +9 -0
- package/dist/components/skeleton/skeleton_fade_in.d.ts.map +1 -0
- package/dist/components/skeleton/skeleton_fade_in.js +15 -0
- package/dist/components/skeleton/skeleton_group.d.ts +13 -0
- package/dist/components/skeleton/skeleton_group.d.ts.map +1 -0
- package/dist/components/skeleton/skeleton_group.js +19 -0
- package/dist/design_system/colors/generated/colors_theme.dark.d.ts +13 -0
- package/dist/design_system/colors/generated/colors_theme.dark.d.ts.map +1 -1
- package/dist/design_system/colors/generated/colors_theme.dark.js +13 -0
- package/dist/design_system/colors/generated/colors_theme.light.d.ts +13 -0
- package/dist/design_system/colors/generated/colors_theme.light.d.ts.map +1 -1
- package/dist/design_system/colors/generated/colors_theme.light.js +13 -0
- package/dist/design_system/theme.d.ts +26 -0
- package/dist/design_system/theme.d.ts.map +1 -1
- package/dist/files_hash_at_build.txt +1 -1
- package/dist/index.js +6 -1
- package/dist/src/components/index.d.ts +1 -0
- package/dist/src/components/index.d.ts.map +1 -1
- package/dist/src/components/index.js +1 -0
- package/dist/src/components/index.js.map +1 -1
- package/dist/src/components/skeleton/index.d.ts +6 -0
- package/dist/src/components/skeleton/index.d.ts.map +1 -0
- package/dist/src/components/skeleton/index.js +6 -0
- package/dist/src/components/skeleton/index.js.map +1 -0
- package/dist/src/components/skeleton/skeleton.d.ts +18 -0
- package/dist/src/components/skeleton/skeleton.d.ts.map +1 -0
- package/dist/src/components/skeleton/skeleton.js +10 -0
- package/dist/src/components/skeleton/skeleton.js.map +1 -0
- package/dist/src/components/skeleton/skeleton.styled.d.ts +13 -0
- package/dist/src/components/skeleton/skeleton.styled.d.ts.map +1 -0
- package/dist/src/components/skeleton/skeleton.styled.js +55 -0
- package/dist/src/components/skeleton/skeleton.styled.js.map +1 -0
- package/dist/src/components/skeleton/skeleton.test_ids.d.ts +6 -0
- package/dist/src/components/skeleton/skeleton.test_ids.d.ts.map +1 -0
- package/dist/src/components/skeleton/skeleton.test_ids.js +6 -0
- package/dist/src/components/skeleton/skeleton.test_ids.js.map +1 -0
- package/dist/src/components/skeleton/skeleton.type-test.d.ts +2 -0
- package/dist/src/components/skeleton/skeleton.type-test.d.ts.map +1 -0
- package/dist/src/components/skeleton/skeleton.type-test.js +25 -0
- package/dist/src/components/skeleton/skeleton.type-test.js.map +1 -0
- package/dist/src/components/skeleton/skeleton_fade_in.d.ts +9 -0
- package/dist/src/components/skeleton/skeleton_fade_in.d.ts.map +1 -0
- package/dist/src/components/skeleton/skeleton_fade_in.js +9 -0
- package/dist/src/components/skeleton/skeleton_fade_in.js.map +1 -0
- package/dist/src/components/skeleton/skeleton_group.d.ts +13 -0
- package/dist/src/components/skeleton/skeleton_group.d.ts.map +1 -0
- package/dist/src/components/skeleton/skeleton_group.js +10 -0
- package/dist/src/components/skeleton/skeleton_group.js.map +1 -0
- package/dist/src/design_system/colors/generated/colors_theme.dark.d.ts +13 -0
- package/dist/src/design_system/colors/generated/colors_theme.dark.d.ts.map +1 -1
- package/dist/src/design_system/colors/generated/colors_theme.dark.js +13 -0
- package/dist/src/design_system/colors/generated/colors_theme.dark.js.map +1 -1
- package/dist/src/design_system/colors/generated/colors_theme.light.d.ts +13 -0
- package/dist/src/design_system/colors/generated/colors_theme.light.d.ts.map +1 -1
- package/dist/src/design_system/colors/generated/colors_theme.light.js +13 -0
- package/dist/src/design_system/colors/generated/colors_theme.light.js.map +1 -1
- package/dist/src/design_system/theme.d.ts +26 -0
- package/dist/src/design_system/theme.d.ts.map +1 -1
- package/dist/src/test_ids.d.ts +1 -0
- package/dist/src/test_ids.d.ts.map +1 -1
- package/dist/src/test_ids.js +1 -0
- package/dist/src/test_ids.js.map +1 -1
- package/dist/test_ids.d.ts +1 -0
- package/dist/test_ids.d.ts.map +1 -1
- package/dist/test_ids.js +2 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/components/box/box.stories.tsx +1 -0
- package/src/components/color_wheel_gradient/color_wheel_gradient.stories.tsx +1 -6
- package/src/components/image/image.stories.tsx +1 -0
- package/src/components/index.ts +1 -0
- package/src/components/readme_renderer/table_of_contents.stories.tsx +1 -0
- package/src/components/skeleton/examples/actor_idea_cards_skeleton.example.tsx +67 -0
- package/src/components/skeleton/examples/new_actor_wizard_cards_skeleton.example.tsx +55 -0
- package/src/components/skeleton/examples/publication_categories_skeleton.example.tsx +50 -0
- package/src/components/skeleton/examples/store_actor_cards_loading.example.tsx +74 -0
- package/src/components/skeleton/examples/store_actor_cards_skeleton.example.tsx +94 -0
- package/src/components/skeleton/index.ts +5 -0
- package/src/components/skeleton/skeleton.stories.tsx +221 -0
- package/src/components/skeleton/skeleton.styled.ts +66 -0
- package/src/components/skeleton/skeleton.test_ids.ts +5 -0
- package/src/components/skeleton/skeleton.tsx +34 -0
- package/src/components/skeleton/skeleton.type-test.ts +32 -0
- package/src/components/skeleton/skeleton_fade_in.tsx +21 -0
- package/src/components/skeleton/skeleton_group.tsx +32 -0
- package/src/design_system/colors/build_color_tokens.js +4 -2
- package/src/design_system/colors/colors.stories.tsx +9 -1
- package/src/design_system/colors/generated/colors_theme.dark.ts +13 -0
- package/src/design_system/colors/generated/colors_theme.light.ts +13 -0
- package/src/test_ids.ts +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,uBAAuB,CAAC;AACtC,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,uBAAuB,CAAC;AACtC,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { Skeleton, type SkeletonProps } from './skeleton';
|
|
2
|
+
export { SkeletonFadeIn, type SkeletonFadeInProps } from './skeleton_fade_in';
|
|
3
|
+
export { SkeletonGroup, type SkeletonGroupProps } from './skeleton_group';
|
|
4
|
+
export { skeletonClassNames } from './skeleton.styled';
|
|
5
|
+
export { skeletonTestIds } from './skeleton.test_ids';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/skeleton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { MarginSpacingProps } from '../box';
|
|
3
|
+
export interface SkeletonProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'onClick'>, MarginSpacingProps {
|
|
4
|
+
/**
|
|
5
|
+
* Any CSS length. Defaults to the full width of the container.
|
|
6
|
+
*/
|
|
7
|
+
width?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Any CSS length. Defaults to `1em`, the font size of the surrounding text.
|
|
10
|
+
*/
|
|
11
|
+
height?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Placeholder block shown only while data is loading. Compose blocks to mirror the layout of the content,
|
|
15
|
+
* inside a `SkeletonGroup`.
|
|
16
|
+
*/
|
|
17
|
+
export declare const Skeleton: ({ width, height, className, ...rest }: SkeletonProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=skeleton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/skeleton/skeleton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAKjD,MAAM,WAAW,aACb,SAAQ,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,EAAE,kBAAkB;IACzF;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,eAAO,MAAM,QAAQ,GAAI,uCAAwD,aAAa,4CAS7F,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { StyledSkeleton, skeletonClassNames } from "./skeleton.styled.js";
|
|
2
|
+
import { skeletonTestIds } from "./skeleton.test_ids.js";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import clsx$1 from "clsx";
|
|
5
|
+
//#region src/components/skeleton/skeleton.tsx
|
|
6
|
+
/**
|
|
7
|
+
* Placeholder block shown only while data is loading. Compose blocks to mirror the layout of the content,
|
|
8
|
+
* inside a `SkeletonGroup`.
|
|
9
|
+
*/
|
|
10
|
+
var Skeleton = ({ width = "100%", height = "1em", className, ...rest }) => /* @__PURE__ */ jsx(StyledSkeleton, {
|
|
11
|
+
"aria-hidden": true,
|
|
12
|
+
"data-test": skeletonTestIds.ROOT,
|
|
13
|
+
className: clsx$1(skeletonClassNames.ROOT, className),
|
|
14
|
+
$width: width,
|
|
15
|
+
$height: height,
|
|
16
|
+
...rest
|
|
17
|
+
});
|
|
18
|
+
//#endregion
|
|
19
|
+
export { Skeleton };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const skeletonClassNames: {
|
|
2
|
+
ROOT: string;
|
|
3
|
+
GROUP: string;
|
|
4
|
+
FADE_IN: string;
|
|
5
|
+
};
|
|
6
|
+
type StyledSkeletonProps = {
|
|
7
|
+
$width: string;
|
|
8
|
+
$height: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const StyledSkeleton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<(import('..').BoxProps & import('react').RefAttributes<HTMLElement>) & import('styled-components/dist/types').BaseObject, StyledSkeletonProps>> & string & Omit<import('react').ForwardRefExoticComponent<import('..').BoxProps & import('react').RefAttributes<HTMLElement>>, keyof import('react').Component<any, {}, any>>;
|
|
11
|
+
export declare const StyledSkeletonFadeIn: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<(import('..').BoxProps & import('react').RefAttributes<HTMLElement>) & import('styled-components/dist/types').BaseObject, import('styled-components/dist/types').BaseObject>> & string & Omit<import('react').ForwardRefExoticComponent<import('..').BoxProps & import('react').RefAttributes<HTMLElement>>, keyof import('react').Component<any, {}, any>>;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=skeleton.styled.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skeleton.styled.d.ts","sourceRoot":"","sources":["../../../src/components/skeleton/skeleton.styled.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,kBAAkB;;;;CAI9B,CAAC;AAiBF,KAAK,mBAAmB,GAAG;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,cAAc,obA0B1B,CAAC;AAEF,eAAO,MAAM,oBAAoB,kdAMhC,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { theme } from "../../design_system/theme.js";
|
|
2
|
+
import { Box } from "../box/box.js";
|
|
3
|
+
import styled, { keyframes } from "styled-components";
|
|
4
|
+
//#region src/components/skeleton/skeleton.styled.ts
|
|
5
|
+
var skeletonClassNames = {
|
|
6
|
+
ROOT: "Skeleton",
|
|
7
|
+
GROUP: "Skeleton-Group",
|
|
8
|
+
FADE_IN: "Skeleton-FadeIn"
|
|
9
|
+
};
|
|
10
|
+
var WAVE_DURATION = "1600ms";
|
|
11
|
+
var FADE_IN_DURATION = "80ms";
|
|
12
|
+
var wave = keyframes`
|
|
13
|
+
from { transform: translateX(-100%); }
|
|
14
|
+
to { transform: translateX(100%); }
|
|
15
|
+
`;
|
|
16
|
+
var fadeIn = keyframes`
|
|
17
|
+
from { opacity: 0; }
|
|
18
|
+
to { opacity: 1; }
|
|
19
|
+
`;
|
|
20
|
+
var StyledSkeleton = styled(Box)`
|
|
21
|
+
position: relative;
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
flex: 0 1 auto;
|
|
24
|
+
min-width: 0;
|
|
25
|
+
width: ${({ $width }) => $width};
|
|
26
|
+
height: ${({ $height }) => $height};
|
|
27
|
+
border-radius: ${theme.radius.radius4};
|
|
28
|
+
/* Base and highlight are both on-surface: the highlight is a second translucent layer over the
|
|
29
|
+
base, so one token gives a visible sweep on every surface, in light and dark alike. */
|
|
30
|
+
background-color: ${theme.color.neutral.onSurface};
|
|
31
|
+
|
|
32
|
+
&::after {
|
|
33
|
+
content: '';
|
|
34
|
+
position: absolute;
|
|
35
|
+
inset: 0;
|
|
36
|
+
background: linear-gradient(90deg, transparent, ${theme.color.neutral.onSurface}, transparent);
|
|
37
|
+
transform: translateX(-100%);
|
|
38
|
+
animation: ${wave} ${WAVE_DURATION} ease-in-out infinite;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@media (prefers-reduced-motion: reduce) {
|
|
42
|
+
&::after {
|
|
43
|
+
content: none;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
`;
|
|
47
|
+
var StyledSkeletonFadeIn = styled(Box)`
|
|
48
|
+
animation: ${fadeIn} ${FADE_IN_DURATION} ease-out both;
|
|
49
|
+
|
|
50
|
+
@media (prefers-reduced-motion: reduce) {
|
|
51
|
+
animation: none;
|
|
52
|
+
}
|
|
53
|
+
`;
|
|
54
|
+
//#endregion
|
|
55
|
+
export { StyledSkeleton, StyledSkeletonFadeIn, skeletonClassNames };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skeleton.test_ids.d.ts","sourceRoot":"","sources":["../../../src/components/skeleton/skeleton.test_ids.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe;;;;CAI3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skeleton.type-test.d.ts","sourceRoot":"","sources":["../../../src/components/skeleton/skeleton.type-test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { MarginSpacingProps, PaddingSpacingProps } from '../box';
|
|
3
|
+
export interface SkeletonFadeInProps extends Omit<ComponentPropsWithoutRef<'div'>, 'onClick'>, MarginSpacingProps, PaddingSpacingProps {
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Wraps the content that replaces a skeleton, so it fades in once instead of popping in.
|
|
7
|
+
*/
|
|
8
|
+
export declare const SkeletonFadeIn: ({ className, ...rest }: SkeletonFadeInProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=skeleton_fade_in.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skeleton_fade_in.d.ts","sourceRoot":"","sources":["../../../src/components/skeleton/skeleton_fade_in.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAKtE,MAAM,WAAW,mBACb,SAAQ,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,EAAE,kBAAkB,EAAE,mBAAmB;CAAG;AAExG;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,wBAAwB,mBAAmB,4CAMzE,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { StyledSkeletonFadeIn, skeletonClassNames } from "./skeleton.styled.js";
|
|
2
|
+
import { skeletonTestIds } from "./skeleton.test_ids.js";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import clsx$1 from "clsx";
|
|
5
|
+
//#region src/components/skeleton/skeleton_fade_in.tsx
|
|
6
|
+
/**
|
|
7
|
+
* Wraps the content that replaces a skeleton, so it fades in once instead of popping in.
|
|
8
|
+
*/
|
|
9
|
+
var SkeletonFadeIn = ({ className, ...rest }) => /* @__PURE__ */ jsx(StyledSkeletonFadeIn, {
|
|
10
|
+
"data-test": skeletonTestIds.FADE_IN,
|
|
11
|
+
className: clsx$1(skeletonClassNames.FADE_IN, className),
|
|
12
|
+
...rest
|
|
13
|
+
});
|
|
14
|
+
//#endregion
|
|
15
|
+
export { SkeletonFadeIn };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { MarginSpacingProps, PaddingSpacingProps } from '../box';
|
|
3
|
+
export interface SkeletonGroupProps extends Omit<ComponentPropsWithoutRef<'div'>, 'onClick' | 'role' | 'aria-busy' | 'aria-label'>, MarginSpacingProps, PaddingSpacingProps {
|
|
4
|
+
/**
|
|
5
|
+
* What is loading, used as the accessible name of the region, e.g. "Loading Actors".
|
|
6
|
+
*/
|
|
7
|
+
label: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Wraps the skeleton blocks of one loading region, names it and marks it busy for assistive technology.
|
|
11
|
+
*/
|
|
12
|
+
export declare const SkeletonGroup: ({ label, className, ...rest }: SkeletonGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=skeleton_group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skeleton_group.d.ts","sourceRoot":"","sources":["../../../src/components/skeleton/skeleton_group.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,EAAO,KAAK,kBAAkB,EAAE,KAAK,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAKhF,MAAM,WAAW,kBACb,SACI,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,WAAW,GAAG,YAAY,CAAC,EACtF,kBAAkB,EAClB,mBAAmB;IACvB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,+BAA+B,kBAAkB,4CAS9E,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Box } from "../box/box.js";
|
|
2
|
+
import { skeletonClassNames } from "./skeleton.styled.js";
|
|
3
|
+
import { skeletonTestIds } from "./skeleton.test_ids.js";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import clsx$1 from "clsx";
|
|
6
|
+
//#region src/components/skeleton/skeleton_group.tsx
|
|
7
|
+
/**
|
|
8
|
+
* Wraps the skeleton blocks of one loading region, names it and marks it busy for assistive technology.
|
|
9
|
+
*/
|
|
10
|
+
var SkeletonGroup = ({ label, className, ...rest }) => /* @__PURE__ */ jsx(Box, {
|
|
11
|
+
role: "status",
|
|
12
|
+
"aria-busy": true,
|
|
13
|
+
"aria-label": label,
|
|
14
|
+
"data-test": skeletonTestIds.GROUP,
|
|
15
|
+
className: clsx$1(skeletonClassNames.GROUP, className),
|
|
16
|
+
...rest
|
|
17
|
+
});
|
|
18
|
+
//#endregion
|
|
19
|
+
export { SkeletonGroup };
|
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
* Do not edit directly, this file was auto-generated.
|
|
3
3
|
*/
|
|
4
4
|
export declare const darkTheme: {
|
|
5
|
+
readonly thirdPartyAnthropic: "#d97757";
|
|
6
|
+
readonly thirdPartyChatGpt: "#ffffff";
|
|
7
|
+
readonly thirdPartyClaude: "#d97757";
|
|
8
|
+
readonly thirdPartyCursor: "#ffffff";
|
|
9
|
+
readonly thirdPartyDiscord: "#5865f2";
|
|
10
|
+
readonly thirdPartyGithub: "#ffffff";
|
|
11
|
+
readonly thirdPartyLinkedin: "#0a66c2";
|
|
12
|
+
readonly thirdPartyMake: "#6d00cc";
|
|
13
|
+
readonly thirdPartyN8n: "#ea4b71";
|
|
14
|
+
readonly thirdPartyPerplexity: "#20808d";
|
|
15
|
+
readonly thirdPartyTwitter: "#ffffff";
|
|
16
|
+
readonly thirdPartyYoutube: "#ff0000";
|
|
17
|
+
readonly thirdPartyZapier: "#ff4a00";
|
|
5
18
|
readonly magentaDeep: "#694d6b";
|
|
6
19
|
readonly magentaMain: "#9d829f";
|
|
7
20
|
readonly magentaTint: "#fef3ff";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors_theme.dark.d.ts","sourceRoot":"","sources":["../../../../src/design_system/colors/generated/colors_theme.dark.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"colors_theme.dark.d.ts","sourceRoot":"","sources":["../../../../src/design_system/colors/generated/colors_theme.dark.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+IZ,CAAC"}
|
|
@@ -3,6 +3,19 @@
|
|
|
3
3
|
* Do not edit directly, this file was auto-generated.
|
|
4
4
|
*/
|
|
5
5
|
var darkTheme = {
|
|
6
|
+
thirdPartyAnthropic: "#d97757",
|
|
7
|
+
thirdPartyChatGpt: "#ffffff",
|
|
8
|
+
thirdPartyClaude: "#d97757",
|
|
9
|
+
thirdPartyCursor: "#ffffff",
|
|
10
|
+
thirdPartyDiscord: "#5865f2",
|
|
11
|
+
thirdPartyGithub: "#ffffff",
|
|
12
|
+
thirdPartyLinkedin: "#0a66c2",
|
|
13
|
+
thirdPartyMake: "#6d00cc",
|
|
14
|
+
thirdPartyN8n: "#ea4b71",
|
|
15
|
+
thirdPartyPerplexity: "#20808d",
|
|
16
|
+
thirdPartyTwitter: "#ffffff",
|
|
17
|
+
thirdPartyYoutube: "#ff0000",
|
|
18
|
+
thirdPartyZapier: "#ff4a00",
|
|
6
19
|
magentaDeep: "#694d6b",
|
|
7
20
|
magentaMain: "#9d829f",
|
|
8
21
|
magentaTint: "#fef3ff",
|
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
* Do not edit directly, this file was auto-generated.
|
|
3
3
|
*/
|
|
4
4
|
export declare const lightTheme: {
|
|
5
|
+
readonly thirdPartyAnthropic: "#d97757";
|
|
6
|
+
readonly thirdPartyChatGpt: "#000000";
|
|
7
|
+
readonly thirdPartyClaude: "#d97757";
|
|
8
|
+
readonly thirdPartyCursor: "#000000";
|
|
9
|
+
readonly thirdPartyDiscord: "#5865f2";
|
|
10
|
+
readonly thirdPartyGithub: "#181717";
|
|
11
|
+
readonly thirdPartyLinkedin: "#0a66c2";
|
|
12
|
+
readonly thirdPartyMake: "#6d00cc";
|
|
13
|
+
readonly thirdPartyN8n: "#ea4b71";
|
|
14
|
+
readonly thirdPartyPerplexity: "#20808d";
|
|
15
|
+
readonly thirdPartyTwitter: "#000000";
|
|
16
|
+
readonly thirdPartyYoutube: "#ff0000";
|
|
17
|
+
readonly thirdPartyZapier: "#ff4a00";
|
|
5
18
|
readonly magentaDeep: "#694d6b";
|
|
6
19
|
readonly magentaMain: "#9d829f";
|
|
7
20
|
readonly magentaTint: "#fef3ff";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors_theme.light.d.ts","sourceRoot":"","sources":["../../../../src/design_system/colors/generated/colors_theme.light.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"colors_theme.light.d.ts","sourceRoot":"","sources":["../../../../src/design_system/colors/generated/colors_theme.light.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+Ib,CAAC"}
|
|
@@ -3,6 +3,19 @@
|
|
|
3
3
|
* Do not edit directly, this file was auto-generated.
|
|
4
4
|
*/
|
|
5
5
|
var lightTheme = {
|
|
6
|
+
thirdPartyAnthropic: "#d97757",
|
|
7
|
+
thirdPartyChatGpt: "#000000",
|
|
8
|
+
thirdPartyClaude: "#d97757",
|
|
9
|
+
thirdPartyCursor: "#000000",
|
|
10
|
+
thirdPartyDiscord: "#5865f2",
|
|
11
|
+
thirdPartyGithub: "#181717",
|
|
12
|
+
thirdPartyLinkedin: "#0a66c2",
|
|
13
|
+
thirdPartyMake: "#6d00cc",
|
|
14
|
+
thirdPartyN8n: "#ea4b71",
|
|
15
|
+
thirdPartyPerplexity: "#20808d",
|
|
16
|
+
thirdPartyTwitter: "#000000",
|
|
17
|
+
thirdPartyYoutube: "#ff0000",
|
|
18
|
+
thirdPartyZapier: "#ff4a00",
|
|
6
19
|
magentaDeep: "#694d6b",
|
|
7
20
|
magentaMain: "#9d829f",
|
|
8
21
|
magentaTint: "#fef3ff",
|
|
@@ -198,6 +198,19 @@ export declare const theme: {
|
|
|
198
198
|
};
|
|
199
199
|
colorPalette: {
|
|
200
200
|
light: {
|
|
201
|
+
readonly thirdPartyAnthropic: "#d97757";
|
|
202
|
+
readonly thirdPartyChatGpt: "#000000";
|
|
203
|
+
readonly thirdPartyClaude: "#d97757";
|
|
204
|
+
readonly thirdPartyCursor: "#000000";
|
|
205
|
+
readonly thirdPartyDiscord: "#5865f2";
|
|
206
|
+
readonly thirdPartyGithub: "#181717";
|
|
207
|
+
readonly thirdPartyLinkedin: "#0a66c2";
|
|
208
|
+
readonly thirdPartyMake: "#6d00cc";
|
|
209
|
+
readonly thirdPartyN8n: "#ea4b71";
|
|
210
|
+
readonly thirdPartyPerplexity: "#20808d";
|
|
211
|
+
readonly thirdPartyTwitter: "#000000";
|
|
212
|
+
readonly thirdPartyYoutube: "#ff0000";
|
|
213
|
+
readonly thirdPartyZapier: "#ff4a00";
|
|
201
214
|
readonly magentaDeep: "#694d6b";
|
|
202
215
|
readonly magentaMain: "#9d829f";
|
|
203
216
|
readonly magentaTint: "#fef3ff";
|
|
@@ -329,6 +342,19 @@ export declare const theme: {
|
|
|
329
342
|
readonly bambooText: "#007455";
|
|
330
343
|
};
|
|
331
344
|
dark: {
|
|
345
|
+
readonly thirdPartyAnthropic: "#d97757";
|
|
346
|
+
readonly thirdPartyChatGpt: "#ffffff";
|
|
347
|
+
readonly thirdPartyClaude: "#d97757";
|
|
348
|
+
readonly thirdPartyCursor: "#ffffff";
|
|
349
|
+
readonly thirdPartyDiscord: "#5865f2";
|
|
350
|
+
readonly thirdPartyGithub: "#ffffff";
|
|
351
|
+
readonly thirdPartyLinkedin: "#0a66c2";
|
|
352
|
+
readonly thirdPartyMake: "#6d00cc";
|
|
353
|
+
readonly thirdPartyN8n: "#ea4b71";
|
|
354
|
+
readonly thirdPartyPerplexity: "#20808d";
|
|
355
|
+
readonly thirdPartyTwitter: "#ffffff";
|
|
356
|
+
readonly thirdPartyYoutube: "#ff0000";
|
|
357
|
+
readonly thirdPartyZapier: "#ff4a00";
|
|
332
358
|
readonly magentaDeep: "#694d6b";
|
|
333
359
|
readonly magentaMain: "#9d829f";
|
|
334
360
|
readonly magentaTint: "#fef3ff";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/design_system/theme.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/design_system/theme.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAMd,4FAA4F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM/F,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
3a46c7cd8aeb8bd81072666dd24ed3f0edfa1e19
|
package/dist/index.js
CHANGED
|
@@ -83,6 +83,11 @@ import { TAB_CLASSNAMES, Tab } from "./components/tabs/tab.js";
|
|
|
83
83
|
import { Tabs } from "./components/tabs/tabs.js";
|
|
84
84
|
import { ICON_BUTTON_VARIANTS, IconButton } from "./components/icon_button/icon_button.js";
|
|
85
85
|
import { AnthropicBrandIcon, ChatGptBrandIcon, ClaudeBrandIcon, CursorBrandIcon, DiscordBrandIcon, DiscordSolidBrandIcon, GithubBrandIcon, LinkedinBrandIcon, LinkedinSolidBrandIcon, MakeBrandIcon, N8nBrandIcon, PerplexityBrandIcon, TwitterBrandIcon, YoutubeBrandIcon, ZapierBrandIcon } from "./components/brand_icon/brand_icon.js";
|
|
86
|
+
import { skeletonClassNames } from "./components/skeleton/skeleton.styled.js";
|
|
87
|
+
import { skeletonTestIds } from "./components/skeleton/skeleton.test_ids.js";
|
|
88
|
+
import { Skeleton } from "./components/skeleton/skeleton.js";
|
|
89
|
+
import { SkeletonFadeIn } from "./components/skeleton/skeleton_fade_in.js";
|
|
90
|
+
import { SkeletonGroup } from "./components/skeleton/skeleton_group.js";
|
|
86
91
|
import { StoreActorHeader } from "./components/store/store_actor_header.js";
|
|
87
92
|
import { RadioButtonPrimitive } from "./components/radio_button/radio_button.js";
|
|
88
93
|
import { BrowserWindow, classNames } from "./components/browser_window/browser_window.js";
|
|
@@ -105,4 +110,4 @@ import { TableEmptyRow } from "./components/table/table_empty_row.js";
|
|
|
105
110
|
import { TableLoadingRow } from "./components/table/table_loading_row.js";
|
|
106
111
|
import { TableErrorRow } from "./components/table/table_error_row.js";
|
|
107
112
|
import { Breadcrumbs, breadcrumbClassNames } from "./components/breadcrumb/breadcrumb.js";
|
|
108
|
-
export { APIFY_HOSTNAMES, ActionBox, ActionLink, ActorAvatar, ActorAvatarInner, ActorTemplateCard, AnthropicBrandIcon, BADGE_SIZES, BADGE_VARIANTS, BUTTON_COLOR_VARIANTS_CSS, BUTTON_SIZE_VARIANTS_CSS, BackLink, Badge, Banner, BlockSpinner, BlogArticle, BorderedActorAvatar, Box, Breadcrumbs, BrowserWindow, Button, CHIP_SIZES, CHIP_TYPES, CODE_BLOCK_TAB_CATALOG, CODE_BLOCK_WITH_TABS_CLASSNAMES, Card, CardContainer, ChatGptBrandIcon, CheckboxPrimitive, Chip, ClaudeBrandIcon, CodeBlock, CodeBlockWithTabs, CodeHighlighterLineBashPrefix, CodeHighlighterLinePrefix, CollapsibleCard, ColorWheelGradient, CursorBrandIcon, DEVELOPER_BADGE, DROPDOWN_ELEMENT_CLASSES, DangerChip, DangerMessage, DeveloperBadge, DiscordBrandIcon, DiscordSolidBrandIcon, Dropdown, DropdownButton, DropdownMenuBaseComponent, DropdownMenuBaseComponentWithCount, DropdownShell, FLOATING_PLACEMENT, GithubBrandIcon, HeadingShared as Heading, HeadingContent, HeadingMarketing, HorizontalTile, HorizontallyScrollableTableWrapper, ICON_BUTTON_VARIANTS, IconButton, Image, IndeterminateCheckbox, InfoMessage, InlineCode, InlineSpinner, Link, LinkedinBrandIcon, LinkedinSolidBrandIcon, ListMenuComponent, ListMenuItemComponent, MakeBrandIcon, MemoizedMarkdown as Markdown, MarkdownBlockQuote, MarkdownCode, MarkdownHeadingWrapper, MarkdownLink, MarkdownParagraphContent, MarkdownPlainHeading, MarkdownTable, Menu, Message, N8nBrandIcon, NeutralChip, OneLineCode, PaginationButtons, PerplexityBrandIcon, PlainMenuBaseComponent, PrimaryChip, PrismSyntaxHighlighter, RadioButtonPrimitive, Rating, RatingStats, SHARED_TEXT_TYPES, SelectMultiValueRemove, SelectPrimitive, Shortcut, SimpleMarkdown, SingleStarRating, Spinner, SplitButton, StoreActorHeader, StyledAsLink, StyledCardWrapper, SuccessChip, SuccessMessage, SwitchPrimitive, TAB_CLASSNAMES, TAG_SIZES, TAG_VARIANTS, TOOLTIP_SIZES, TOOLTIP_TEXT_ALIGNS, Tab, TabNumberChip, Table, TableBody, TableCell, TableCellLink, TableEmptyRow, TableErrorRow, TableExpansionRow, TableFoot, TableHead, TableHeadCell, TableHeadRow, TableLoadingRow, TableOfContents, TableRow, Tabs, Tag, TextShared as Text, TextShared, TextBaseComponent, TextContent, TextMarketing, Tooltip, TwitterBrandIcon, UiDependencyProvider, UserAvatar, VerticalTile, WarningChip, WarningMessage, YoutubeBrandIcon, ZapierBrandIcon, actorAvatarClassnames, breadcrumbClassNames, classNames as browserWindowClassNames, cardClassNames, cardContainerClassNames, clampLines, classNames$1 as classNames, cleanMarkdown, collapsibleCardClassNames, colorProperties, cssColorsVariablesBrandDark, tokens as cssColorsVariablesDark, tokens$1 as cssColorsVariablesLight, tokens$2 as cssColorsVariablesPaletteDark, tokens$3 as cssColorsVariablesPaletteLight, darkTheme, defaultAllowedElements, defaultRehypePlugins, defaultRemarkPlugins, developerBadgeTestIds, devices, getActorAvatarBorderRadius, getButtonColorStyles, getButtonDisabledStyles, getButtonSizeStyles, getResponsiveStyles, getResponsiveValueAtBreakpoint, gradients, hasUrlHttpProtocol, inlineCodeStyles, isResponsiveObject, isUrlEmail, isUrlExternal, layouts, lightTheme, menuClassNames, messageClassNames, omitDomainAndProtocol, oneLineCodeClassNames, pythonizeValue, radiuses, regularMarkdownSizeComponents, sanitizeUrl, selectDefaultGetIsSelected, shadows, slugifyHeadingChildren, smallMarkdownSizeComponents, spaces, spinnerClassNames, splitButtonClassNames, splitButtonMainActionTestId, splitButtonTriggerTestId, tableClassNames, tableTestIds, theme, transitions, useActorTitleHeadingFilter, useCopyToClipboard, useDefaultUrlTransform, useFloatingMenu, useImageColor, useResizeObserverSsr, useSharedUiDependencies, useShowTableOfContents, userAvatarBaseClassNames, withColor, withGradient, withReactSelectTheme, withSize, withTooltip };
|
|
113
|
+
export { APIFY_HOSTNAMES, ActionBox, ActionLink, ActorAvatar, ActorAvatarInner, ActorTemplateCard, AnthropicBrandIcon, BADGE_SIZES, BADGE_VARIANTS, BUTTON_COLOR_VARIANTS_CSS, BUTTON_SIZE_VARIANTS_CSS, BackLink, Badge, Banner, BlockSpinner, BlogArticle, BorderedActorAvatar, Box, Breadcrumbs, BrowserWindow, Button, CHIP_SIZES, CHIP_TYPES, CODE_BLOCK_TAB_CATALOG, CODE_BLOCK_WITH_TABS_CLASSNAMES, Card, CardContainer, ChatGptBrandIcon, CheckboxPrimitive, Chip, ClaudeBrandIcon, CodeBlock, CodeBlockWithTabs, CodeHighlighterLineBashPrefix, CodeHighlighterLinePrefix, CollapsibleCard, ColorWheelGradient, CursorBrandIcon, DEVELOPER_BADGE, DROPDOWN_ELEMENT_CLASSES, DangerChip, DangerMessage, DeveloperBadge, DiscordBrandIcon, DiscordSolidBrandIcon, Dropdown, DropdownButton, DropdownMenuBaseComponent, DropdownMenuBaseComponentWithCount, DropdownShell, FLOATING_PLACEMENT, GithubBrandIcon, HeadingShared as Heading, HeadingContent, HeadingMarketing, HorizontalTile, HorizontallyScrollableTableWrapper, ICON_BUTTON_VARIANTS, IconButton, Image, IndeterminateCheckbox, InfoMessage, InlineCode, InlineSpinner, Link, LinkedinBrandIcon, LinkedinSolidBrandIcon, ListMenuComponent, ListMenuItemComponent, MakeBrandIcon, MemoizedMarkdown as Markdown, MarkdownBlockQuote, MarkdownCode, MarkdownHeadingWrapper, MarkdownLink, MarkdownParagraphContent, MarkdownPlainHeading, MarkdownTable, Menu, Message, N8nBrandIcon, NeutralChip, OneLineCode, PaginationButtons, PerplexityBrandIcon, PlainMenuBaseComponent, PrimaryChip, PrismSyntaxHighlighter, RadioButtonPrimitive, Rating, RatingStats, SHARED_TEXT_TYPES, SelectMultiValueRemove, SelectPrimitive, Shortcut, SimpleMarkdown, SingleStarRating, Skeleton, SkeletonFadeIn, SkeletonGroup, Spinner, SplitButton, StoreActorHeader, StyledAsLink, StyledCardWrapper, SuccessChip, SuccessMessage, SwitchPrimitive, TAB_CLASSNAMES, TAG_SIZES, TAG_VARIANTS, TOOLTIP_SIZES, TOOLTIP_TEXT_ALIGNS, Tab, TabNumberChip, Table, TableBody, TableCell, TableCellLink, TableEmptyRow, TableErrorRow, TableExpansionRow, TableFoot, TableHead, TableHeadCell, TableHeadRow, TableLoadingRow, TableOfContents, TableRow, Tabs, Tag, TextShared as Text, TextShared, TextBaseComponent, TextContent, TextMarketing, Tooltip, TwitterBrandIcon, UiDependencyProvider, UserAvatar, VerticalTile, WarningChip, WarningMessage, YoutubeBrandIcon, ZapierBrandIcon, actorAvatarClassnames, breadcrumbClassNames, classNames as browserWindowClassNames, cardClassNames, cardContainerClassNames, clampLines, classNames$1 as classNames, cleanMarkdown, collapsibleCardClassNames, colorProperties, cssColorsVariablesBrandDark, tokens as cssColorsVariablesDark, tokens$1 as cssColorsVariablesLight, tokens$2 as cssColorsVariablesPaletteDark, tokens$3 as cssColorsVariablesPaletteLight, darkTheme, defaultAllowedElements, defaultRehypePlugins, defaultRemarkPlugins, developerBadgeTestIds, devices, getActorAvatarBorderRadius, getButtonColorStyles, getButtonDisabledStyles, getButtonSizeStyles, getResponsiveStyles, getResponsiveValueAtBreakpoint, gradients, hasUrlHttpProtocol, inlineCodeStyles, isResponsiveObject, isUrlEmail, isUrlExternal, layouts, lightTheme, menuClassNames, messageClassNames, omitDomainAndProtocol, oneLineCodeClassNames, pythonizeValue, radiuses, regularMarkdownSizeComponents, sanitizeUrl, selectDefaultGetIsSelected, shadows, skeletonClassNames, skeletonTestIds, slugifyHeadingChildren, smallMarkdownSizeComponents, spaces, spinnerClassNames, splitButtonClassNames, splitButtonMainActionTestId, splitButtonTriggerTestId, tableClassNames, tableTestIds, theme, transitions, useActorTitleHeadingFilter, useCopyToClipboard, useDefaultUrlTransform, useFloatingMenu, useImageColor, useResizeObserverSsr, useSharedUiDependencies, useShowTableOfContents, userAvatarBaseClassNames, withColor, withGradient, withReactSelectTheme, withSize, withTooltip };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,uBAAuB,CAAC;AACtC,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,uBAAuB,CAAC;AACtC,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,uBAAuB,CAAC;AACtC,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,uBAAuB,CAAC;AACtC,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { Skeleton, type SkeletonProps } from './skeleton';
|
|
2
|
+
export { SkeletonFadeIn, type SkeletonFadeInProps } from './skeleton_fade_in';
|
|
3
|
+
export { SkeletonGroup, type SkeletonGroupProps } from './skeleton_group';
|
|
4
|
+
export { skeletonClassNames } from './skeleton.styled';
|
|
5
|
+
export { skeletonTestIds } from './skeleton.test_ids';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/skeleton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { Skeleton } from './skeleton';
|
|
2
|
+
export { SkeletonFadeIn } from './skeleton_fade_in';
|
|
3
|
+
export { SkeletonGroup } from './skeleton_group';
|
|
4
|
+
export { skeletonClassNames } from './skeleton.styled';
|
|
5
|
+
export { skeletonTestIds } from './skeleton.test_ids';
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/skeleton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAsB,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,cAAc,EAA4B,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,aAAa,EAA2B,MAAM,kBAAkB,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import type { MarginSpacingProps } from '../box';
|
|
3
|
+
export interface SkeletonProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'onClick'>, MarginSpacingProps {
|
|
4
|
+
/**
|
|
5
|
+
* Any CSS length. Defaults to the full width of the container.
|
|
6
|
+
*/
|
|
7
|
+
width?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Any CSS length. Defaults to `1em`, the font size of the surrounding text.
|
|
10
|
+
*/
|
|
11
|
+
height?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Placeholder block shown only while data is loading. Compose blocks to mirror the layout of the content,
|
|
15
|
+
* inside a `SkeletonGroup`.
|
|
16
|
+
*/
|
|
17
|
+
export declare const Skeleton: ({ width, height, className, ...rest }: SkeletonProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=skeleton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../../../src/components/skeleton/skeleton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAKjD,MAAM,WAAW,aACb,SAAQ,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,EAAE,kBAAkB;IACzF;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,eAAO,MAAM,QAAQ,GAAI,uCAAwD,aAAa,4CAS7F,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import { StyledSkeleton, skeletonClassNames } from './skeleton.styled';
|
|
4
|
+
import { skeletonTestIds } from './skeleton.test_ids';
|
|
5
|
+
/**
|
|
6
|
+
* Placeholder block shown only while data is loading. Compose blocks to mirror the layout of the content,
|
|
7
|
+
* inside a `SkeletonGroup`.
|
|
8
|
+
*/
|
|
9
|
+
export const Skeleton = ({ width = '100%', height = '1em', className, ...rest }) => (_jsx(StyledSkeleton, { "aria-hidden": true, "data-test": skeletonTestIds.ROOT, className: clsx(skeletonClassNames.ROOT, className), "$width": width, "$height": height, ...rest }));
|
|
10
|
+
//# sourceMappingURL=skeleton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skeleton.js","sourceRoot":"","sources":["../../../../src/components/skeleton/skeleton.tsx"],"names":[],"mappings":";AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AAIxB,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAetD;;;GAGG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EAAE,KAAK,GAAG,MAAM,EAAE,MAAM,GAAG,KAAK,EAAE,SAAS,EAAE,GAAG,IAAI,EAAiB,EAAE,EAAE,CAAC,CAC/F,KAAC,cAAc,sCAEA,eAAe,CAAC,IAAI,EAC/B,SAAS,EAAE,IAAI,CAAC,kBAAkB,CAAC,IAAI,EAAE,SAAS,CAAC,YAC3C,KAAK,aACJ,MAAM,KACX,IAAI,GACV,CACL,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const skeletonClassNames: {
|
|
2
|
+
ROOT: string;
|
|
3
|
+
GROUP: string;
|
|
4
|
+
FADE_IN: string;
|
|
5
|
+
};
|
|
6
|
+
type StyledSkeletonProps = {
|
|
7
|
+
$width: string;
|
|
8
|
+
$height: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const StyledSkeleton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<(import("..").BoxProps & import("react").RefAttributes<HTMLElement>) & import("styled-components/dist/types").BaseObject, StyledSkeletonProps>> & string & Omit<import("react").ForwardRefExoticComponent<import("..").BoxProps & import("react").RefAttributes<HTMLElement>>, keyof import("react").Component<any, {}, any>>;
|
|
11
|
+
export declare const StyledSkeletonFadeIn: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<(import("..").BoxProps & import("react").RefAttributes<HTMLElement>) & import("styled-components/dist/types").BaseObject, import("styled-components/dist/types").BaseObject>> & string & Omit<import("react").ForwardRefExoticComponent<import("..").BoxProps & import("react").RefAttributes<HTMLElement>>, keyof import("react").Component<any, {}, any>>;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=skeleton.styled.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skeleton.styled.d.ts","sourceRoot":"","sources":["../../../../src/components/skeleton/skeleton.styled.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,kBAAkB;;;;CAI9B,CAAC;AAiBF,KAAK,mBAAmB,GAAG;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,cAAc,obA0B1B,CAAC;AAEF,eAAO,MAAM,oBAAoB,kdAMhC,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import styled, { keyframes } from 'styled-components';
|
|
2
|
+
import { theme } from '../../design_system/theme';
|
|
3
|
+
import { Box } from '../box';
|
|
4
|
+
export const skeletonClassNames = {
|
|
5
|
+
ROOT: 'Skeleton',
|
|
6
|
+
GROUP: 'Skeleton-Group',
|
|
7
|
+
FADE_IN: 'Skeleton-FadeIn',
|
|
8
|
+
};
|
|
9
|
+
// TODO: move both durations to design tokens (`theme.transition`) once the motion tokens are agreed.
|
|
10
|
+
const WAVE_DURATION = '1600ms';
|
|
11
|
+
const FADE_IN_DURATION = '80ms';
|
|
12
|
+
/* The highlight sweeps each block's own width, so short and long blocks start and end together. */
|
|
13
|
+
const wave = keyframes `
|
|
14
|
+
from { transform: translateX(-100%); }
|
|
15
|
+
to { transform: translateX(100%); }
|
|
16
|
+
`;
|
|
17
|
+
const fadeIn = keyframes `
|
|
18
|
+
from { opacity: 0; }
|
|
19
|
+
to { opacity: 1; }
|
|
20
|
+
`;
|
|
21
|
+
export const StyledSkeleton = styled(Box) `
|
|
22
|
+
position: relative;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
flex: 0 1 auto;
|
|
25
|
+
min-width: 0;
|
|
26
|
+
width: ${({ $width }) => $width};
|
|
27
|
+
height: ${({ $height }) => $height};
|
|
28
|
+
border-radius: ${theme.radius.radius4};
|
|
29
|
+
/* Base and highlight are both on-surface: the highlight is a second translucent layer over the
|
|
30
|
+
base, so one token gives a visible sweep on every surface, in light and dark alike. */
|
|
31
|
+
background-color: ${theme.color.neutral.onSurface};
|
|
32
|
+
|
|
33
|
+
&::after {
|
|
34
|
+
content: '';
|
|
35
|
+
position: absolute;
|
|
36
|
+
inset: 0;
|
|
37
|
+
background: linear-gradient(90deg, transparent, ${theme.color.neutral.onSurface}, transparent);
|
|
38
|
+
transform: translateX(-100%);
|
|
39
|
+
animation: ${wave} ${WAVE_DURATION} ease-in-out infinite;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@media (prefers-reduced-motion: reduce) {
|
|
43
|
+
&::after {
|
|
44
|
+
content: none;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
`;
|
|
48
|
+
export const StyledSkeletonFadeIn = styled(Box) `
|
|
49
|
+
animation: ${fadeIn} ${FADE_IN_DURATION} ease-out both;
|
|
50
|
+
|
|
51
|
+
@media (prefers-reduced-motion: reduce) {
|
|
52
|
+
animation: none;
|
|
53
|
+
}
|
|
54
|
+
`;
|
|
55
|
+
//# sourceMappingURL=skeleton.styled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skeleton.styled.js","sourceRoot":"","sources":["../../../../src/components/skeleton/skeleton.styled.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEtD,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAClD,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAE7B,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAC9B,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,gBAAgB;IACvB,OAAO,EAAE,iBAAiB;CAC7B,CAAC;AAEF,qGAAqG;AACrG,MAAM,aAAa,GAAG,QAAQ,CAAC;AAC/B,MAAM,gBAAgB,GAAG,MAAM,CAAC;AAEhC,mGAAmG;AACnG,MAAM,IAAI,GAAG,SAAS,CAAA;;;CAGrB,CAAC;AAEF,MAAM,MAAM,GAAG,SAAS,CAAA;;;CAGvB,CAAC;AAOF,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAC,CAAqB;;;;;aAKjD,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,MAAM;cACrB,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,OAAO;qBACjB,KAAK,CAAC,MAAM,CAAC,OAAO;;;wBAGjB,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS;;;;;;0DAMK,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS;;qBAElE,IAAI,IAAI,aAAa;;;;;;;;CAQzC,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;iBAC9B,MAAM,IAAI,gBAAgB;;;;;CAK1C,CAAC"}
|