@mittwald/flow-react-components 0.1.0-alpha.183 → 0.1.0-alpha.185

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,7 @@
1
+ import { ComponentProps, FC } from 'react';
2
+
3
+ export interface SkeletonProps extends ComponentProps<"div"> {
4
+ width?: string;
5
+ }
6
+ export declare const Skeleton: FC<SkeletonProps>;
7
+ export default Skeleton;
@@ -0,0 +1,4 @@
1
+ import { Skeleton } from './SkeletonText';
2
+
3
+ export { Skeleton, type SkeletonProps } from './SkeletonText';
4
+ export default Skeleton;
@@ -0,0 +1,9 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as SkeletonText } from '../SkeletonText';
3
+
4
+ declare const meta: Meta<typeof SkeletonText>;
5
+ export default meta;
6
+ type Story = StoryObj<typeof SkeletonText>;
7
+ export declare const Default: Story;
8
+ export declare const OnDarkBackground: Story;
9
+ export declare const WithWidth: Story;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/flow-react-components",
3
- "version": "0.1.0-alpha.183",
3
+ "version": "0.1.0-alpha.185",
4
4
  "type": "module",
5
5
  "description": "A React implementation of Flow, mittwald’s design system",
6
6
  "homepage": "https://mittwald.github.io/flow",
@@ -280,7 +280,7 @@
280
280
  "dependencies": {
281
281
  "@chakra-ui/live-region": "^2.1.0",
282
282
  "@internationalized/string-compiler": "^3.2.4",
283
- "@mittwald/react-tunnel": "^0.1.0-alpha.183",
283
+ "@mittwald/react-tunnel": "^0.1.0-alpha.185",
284
284
  "@mittwald/react-use-promise": "^2.3.13",
285
285
  "@react-aria/utils": "^3.24.1",
286
286
  "@react-types/shared": "^3.23.1",
@@ -307,7 +307,7 @@
307
307
  },
308
308
  "devDependencies": {
309
309
  "@faker-js/faker": "^8.4.1",
310
- "@mittwald/flow-design-tokens": "^0.1.0-alpha.183",
310
+ "@mittwald/flow-design-tokens": "^0.1.0-alpha.185",
311
311
  "@mittwald/react-use-promise": "^2.3.13",
312
312
  "@nx/storybook": "^19.5.0",
313
313
  "@storybook/addon-a11y": "^8.2.4",
@@ -384,5 +384,5 @@
384
384
  "optional": true
385
385
  }
386
386
  },
387
- "gitHead": "3cb9e8febea284d02970e087f9fb468c99b49455"
387
+ "gitHead": "6c0826c9fa1eab71cf4d029be5e53c6a57397d1d"
388
388
  }
@@ -1,14 +0,0 @@
1
- "use client"
2
- /* */
3
- import e from "react";
4
- import m from "clsx";
5
- const a = "flow--skeleton", c = "flow--skeleton--shimmer", i = {
6
- skeleton: a,
7
- shimmer: c
8
- }, d = (t) => {
9
- const { width: s, height: o, className: l, ...n } = t, r = m(i.skeleton, l);
10
- return /* @__PURE__ */ e.createElement("div", { "aria-hidden": !0, style: { height: o, width: s }, ...n }, /* @__PURE__ */ e.createElement("div", { className: r }));
11
- };
12
- export {
13
- d as S
14
- };