@yamada-ui/skeleton 0.2.4 → 0.2.5

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.
@@ -0,0 +1,4 @@
1
+ export { Skeleton, SkeletonProps } from './skeleton.mjs';
2
+ export { SkeletonCircle, SkeletonCircleProps } from './skeleton-circle.mjs';
3
+ export { SkeletonText, SkeletonTextProps } from './skeleton-text.mjs';
4
+ import '@yamada-ui/core';
@@ -0,0 +1,7 @@
1
+ import * as _yamada_ui_core from '@yamada-ui/core';
2
+ import { SkeletonProps } from './skeleton.mjs';
3
+
4
+ type SkeletonCircleProps = SkeletonProps;
5
+ declare const SkeletonCircle: _yamada_ui_core.Component<"div", SkeletonProps>;
6
+
7
+ export { SkeletonCircle, SkeletonCircleProps };
@@ -0,0 +1,18 @@
1
+ import * as _yamada_ui_core from '@yamada-ui/core';
2
+ import { UIProps } from '@yamada-ui/core';
3
+ import { SkeletonProps } from './skeleton.mjs';
4
+
5
+ type SkeletonTextOptions = {
6
+ /**
7
+ * The CSS `gap` property.
8
+ */
9
+ gap?: UIProps['gap'];
10
+ /**
11
+ * The CSS `height` property.
12
+ */
13
+ textHeight?: UIProps['height'];
14
+ };
15
+ type SkeletonTextProps = SkeletonProps & SkeletonTextOptions;
16
+ declare const SkeletonText: _yamada_ui_core.Component<"div", SkeletonTextProps>;
17
+
18
+ export { SkeletonText, SkeletonTextProps };
@@ -0,0 +1,41 @@
1
+ import * as _yamada_ui_core from '@yamada-ui/core';
2
+ import { HTMLUIProps, ThemeProps, CSSUIProps } from '@yamada-ui/core';
3
+
4
+ type SkeletonOptions = {
5
+ /**
6
+ * The color at the animation start.
7
+ */
8
+ startColor?: CSSUIProps['color'];
9
+ /**
10
+ * The color at the animation end.
11
+ */
12
+ endColor?: CSSUIProps['color'];
13
+ /**
14
+ * If `true`, it'll render its children with a nice fade transition.
15
+ *
16
+ * @default false
17
+ */
18
+ isLoaded?: boolean;
19
+ /**
20
+ * The animation speed in seconds.
21
+ *
22
+ * @default 0.8
23
+ */
24
+ speed?: string | number;
25
+ /**
26
+ * The fadeIn duration in seconds. Requires `isLoaded` toggled to `true` in order to see the transition.
27
+ *
28
+ * @default 0.4
29
+ */
30
+ fadeDuration?: string | number;
31
+ /**
32
+ * If `true`, the skeleton will take the width of it's children.
33
+ *
34
+ * @default false
35
+ */
36
+ isFitContent?: boolean;
37
+ };
38
+ type SkeletonProps = HTMLUIProps<'div'> & ThemeProps<'Skeleton'> & SkeletonOptions;
39
+ declare const Skeleton: _yamada_ui_core.Component<"div", SkeletonProps>;
40
+
41
+ export { Skeleton, SkeletonProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamada-ui/skeleton",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "Yamada UI skeleton component",
5
5
  "keywords": [
6
6
  "yamada",
@@ -35,11 +35,11 @@
35
35
  "url": "https://github.com/hirotomoyamada/yamada-ui/issues"
36
36
  },
37
37
  "dependencies": {
38
- "@yamada-ui/core": "0.4.3",
39
- "@yamada-ui/use-animation": "0.1.16",
40
- "@yamada-ui/use-value": "0.1.16",
41
- "@yamada-ui/use-previous": "0.1.2",
42
- "@yamada-ui/utils": "0.1.2"
38
+ "@yamada-ui/core": "0.5.0",
39
+ "@yamada-ui/use-animation": "0.1.17",
40
+ "@yamada-ui/use-value": "0.1.17",
41
+ "@yamada-ui/use-previous": "0.1.3",
42
+ "@yamada-ui/utils": "0.1.3"
43
43
  },
44
44
  "devDependencies": {
45
45
  "react": "^18.0.0",