@instructure/ui-skeleton 0.0.0-stage → 0.0.1-bootstrap-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/CHANGELOG.md +0 -0
- package/LICENSE.md +28 -0
- package/README.md +50 -2
- package/es/SkeletonCircle/index.js +68 -0
- package/es/SkeletonCircle/props.js +26 -0
- package/es/SkeletonCircle/styles.js +47 -0
- package/es/SkeletonLoader/index.js +104 -0
- package/es/SkeletonLoader/props.js +26 -0
- package/es/SkeletonLoader/styles.js +45 -0
- package/es/SkeletonRectangle/index.js +74 -0
- package/es/SkeletonRectangle/props.js +26 -0
- package/es/SkeletonRectangle/styles.js +52 -0
- package/es/SkeletonText/index.js +76 -0
- package/es/SkeletonText/props.js +26 -0
- package/es/SkeletonText/styles.js +95 -0
- package/es/index.js +25 -0
- package/es/utils/shimmer.js +81 -0
- package/lib/SkeletonCircle/index.js +75 -0
- package/lib/SkeletonCircle/props.js +31 -0
- package/lib/SkeletonCircle/styles.js +53 -0
- package/lib/SkeletonLoader/index.js +110 -0
- package/lib/SkeletonLoader/props.js +31 -0
- package/lib/SkeletonLoader/styles.js +51 -0
- package/lib/SkeletonRectangle/index.js +81 -0
- package/lib/SkeletonRectangle/props.js +31 -0
- package/lib/SkeletonRectangle/styles.js +58 -0
- package/lib/SkeletonText/index.js +83 -0
- package/lib/SkeletonText/props.js +31 -0
- package/lib/SkeletonText/styles.js +101 -0
- package/lib/index.js +12 -0
- package/lib/package.json +1 -0
- package/lib/utils/shimmer.js +87 -0
- package/package.json +70 -3
- package/src/SkeletonCircle/index.tsx +71 -0
- package/src/SkeletonCircle/props.ts +58 -0
- package/src/SkeletonCircle/styles.ts +61 -0
- package/src/SkeletonLoader/README.md +237 -0
- package/src/SkeletonLoader/index.tsx +126 -0
- package/src/SkeletonLoader/props.ts +100 -0
- package/src/SkeletonLoader/styles.ts +51 -0
- package/src/SkeletonRectangle/index.tsx +71 -0
- package/src/SkeletonRectangle/props.ts +81 -0
- package/src/SkeletonRectangle/styles.ts +69 -0
- package/src/SkeletonText/index.tsx +74 -0
- package/src/SkeletonText/props.ts +91 -0
- package/src/SkeletonText/styles.ts +115 -0
- package/src/index.ts +38 -0
- package/src/utils/shimmer.ts +101 -0
- package/tsconfig.build.json +32 -0
- package/tsconfig.build.tsbuildinfo +1 -0
- package/tsconfig.json +4 -0
- package/types/SkeletonCircle/index.d.ts +18 -0
- package/types/SkeletonCircle/index.d.ts.map +1 -0
- package/types/SkeletonCircle/props.d.ts +23 -0
- package/types/SkeletonCircle/props.d.ts.map +1 -0
- package/types/SkeletonCircle/styles.d.ts +13 -0
- package/types/SkeletonCircle/styles.d.ts.map +1 -0
- package/types/SkeletonLoader/index.d.ts +27 -0
- package/types/SkeletonLoader/index.d.ts.map +1 -0
- package/types/SkeletonLoader/props.d.ts +52 -0
- package/types/SkeletonLoader/props.d.ts.map +1 -0
- package/types/SkeletonLoader/styles.d.ts +11 -0
- package/types/SkeletonLoader/styles.d.ts.map +1 -0
- package/types/SkeletonRectangle/index.d.ts +18 -0
- package/types/SkeletonRectangle/index.d.ts.map +1 -0
- package/types/SkeletonRectangle/props.d.ts +36 -0
- package/types/SkeletonRectangle/props.d.ts.map +1 -0
- package/types/SkeletonRectangle/styles.d.ts +16 -0
- package/types/SkeletonRectangle/styles.d.ts.map +1 -0
- package/types/SkeletonText/index.d.ts +17 -0
- package/types/SkeletonText/index.d.ts.map +1 -0
- package/types/SkeletonText/props.d.ts +43 -0
- package/types/SkeletonText/props.d.ts.map +1 -0
- package/types/SkeletonText/styles.d.ts +16 -0
- package/types/SkeletonText/styles.d.ts.map +1 -0
- package/types/index.d.ts +7 -0
- package/types/index.d.ts.map +1 -0
- package/types/utils/shimmer.d.ts +28 -0
- package/types/utils/shimmer.d.ts.map +1 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { SharedTokens } from '@instructure/ui-themes';
|
|
2
|
+
import type { SkeletonLoaderTheme } from '../utils/shimmer';
|
|
3
|
+
import type { SkeletonTextProps, SkeletonTextStyle } from './props';
|
|
4
|
+
type StyleParams = {
|
|
5
|
+
animate: SkeletonTextProps['animate'];
|
|
6
|
+
lineHeight: SkeletonTextProps['lineHeight'];
|
|
7
|
+
lines: SkeletonTextProps['lines'];
|
|
8
|
+
size: SkeletonTextProps['size'];
|
|
9
|
+
width: SkeletonTextProps['width'];
|
|
10
|
+
textDirection: 'ltr' | 'rtl' | 'auto';
|
|
11
|
+
};
|
|
12
|
+
declare const generateStyle: (componentTheme: SkeletonLoaderTheme, params: StyleParams, _sharedTokens?: SharedTokens) => SkeletonTextStyle;
|
|
13
|
+
export default generateStyle;
|
|
14
|
+
export { generateStyle };
|
|
15
|
+
export type { StyleParams };
|
|
16
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/SkeletonText/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAG1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAC3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAEnE,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAA;IACrC,UAAU,EAAE,iBAAiB,CAAC,YAAY,CAAC,CAAA;IAC3C,KAAK,EAAE,iBAAiB,CAAC,OAAO,CAAC,CAAA;IACjC,IAAI,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAA;IAC/B,KAAK,EAAE,iBAAiB,CAAC,OAAO,CAAC,CAAA;IACjC,aAAa,EAAE,KAAK,GAAG,KAAK,GAAG,MAAM,CAAA;CACtC,CAAA;AAOD,QAAA,MAAM,aAAa,mBACD,mBAAmB,UAC3B,WAAW,kBACH,YAAY,KAC3B,iBA8DF,CAAA;eAEc,aAAa;AAC5B,OAAO,EAAE,aAAa,EAAE,CAAA;AACxB,YAAY,EAAE,WAAW,EAAE,CAAA"}
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { SkeletonLoader } from './SkeletonLoader/index.js';
|
|
2
|
+
export type { SkeletonLoaderProps, SkeletonShapeType } from './SkeletonLoader/props';
|
|
3
|
+
export type { SkeletonTextProps, SkeletonSize, SkeletonLineHeight } from './SkeletonText/props';
|
|
4
|
+
export type { SkeletonRectangleProps } from './SkeletonRectangle/props';
|
|
5
|
+
export type { SkeletonCircleProps } from './SkeletonCircle/props';
|
|
6
|
+
export type { SkeletonLoaderTheme } from './utils/shimmer';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE1D,YAAY,EACV,mBAAmB,EACnB,iBAAiB,EAClB,MAAM,wBAAwB,CAAA;AAC/B,YAAY,EACV,iBAAiB,EACjB,YAAY,EACZ,kBAAkB,EACnB,MAAM,sBAAsB,CAAA;AAC7B,YAAY,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAA;AACvE,YAAY,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AACjE,YAAY,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { NewComponentTypes } from '@instructure/ui-themes';
|
|
2
|
+
type SkeletonLoaderTheme = ReturnType<NewComponentTypes['SkeletonLoader']>;
|
|
3
|
+
/**
|
|
4
|
+
* The fill shared by every shape: a base color with a highlight that sweeps
|
|
5
|
+
* across it. The gradient fades back to the base color rather than to
|
|
6
|
+
* `transparent`, which would show a dark band in some browsers.
|
|
7
|
+
*/
|
|
8
|
+
declare const shimmerStyles: (componentTheme: SkeletonLoaderTheme, isRtl: boolean, animate: boolean) => {
|
|
9
|
+
backgroundColor: string;
|
|
10
|
+
backgroundImage: string;
|
|
11
|
+
backgroundRepeat: string;
|
|
12
|
+
backgroundSize: string;
|
|
13
|
+
backgroundPosition: string;
|
|
14
|
+
'@media (prefers-reduced-motion: no-preference)'?: {
|
|
15
|
+
animationName: {
|
|
16
|
+
name: string;
|
|
17
|
+
styles: string;
|
|
18
|
+
anim: 1;
|
|
19
|
+
toString: () => string;
|
|
20
|
+
} & string;
|
|
21
|
+
animationDuration: string;
|
|
22
|
+
animationTimingFunction: string;
|
|
23
|
+
animationIterationCount: string;
|
|
24
|
+
} | undefined;
|
|
25
|
+
};
|
|
26
|
+
export { shimmerStyles };
|
|
27
|
+
export type { SkeletonLoaderTheme };
|
|
28
|
+
//# sourceMappingURL=shimmer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shimmer.d.ts","sourceRoot":"","sources":["../../src/utils/shimmer.ts"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAE/D,KAAK,mBAAmB,GAAG,UAAU,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC,CAAA;AAoC1E;;;;GAIG;AACH,QAAA,MAAM,aAAa,mBACD,mBAAmB,SAC5B,OAAO,WACL,OAAO;;;;;;;;;;;;;;;;;CA0BjB,CAAA;AAED,OAAO,EAAE,aAAa,EAAE,CAAA;AACxB,YAAY,EAAE,mBAAmB,EAAE,CAAA"}
|