@gobolt/genesis 0.8.2 → 0.8.4

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,2 @@
1
+ declare const TileLogSpacer: () => import("react/jsx-runtime").JSX.Element;
2
+ export default TileLogSpacer;
@@ -22,3 +22,5 @@ export declare const FullTimeline: Story;
22
22
  export declare const VariedContentTimeline: Story;
23
23
  export declare const SingleEntry: Story;
24
24
  export declare const Loading: Story;
25
+ export declare const Spacer: Story;
26
+ export declare const SpacerInTimeline: Story;
@@ -1,3 +1,4 @@
1
1
  export { default } from './TileLog';
2
2
  export type { TileLogProps } from './TileLog';
3
3
  export { default as TileLogSkeleton } from './TileLogSkeleton';
4
+ export { default as TileLogSpacer } from './TileLogSpacer';
@@ -6,10 +6,13 @@ interface TimelineLineProps {
6
6
  $color?: string;
7
7
  }
8
8
  export declare const Wrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('..').TileProps, StyledProps>> & string & Omit<({ children, dataTestId, className, style, isHorizontal, }: import('..').TileProps) => import("react/jsx-runtime").JSX.Element, keyof import('react').Component<any, {}, any>>;
9
+ export declare const SkeletonWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('..').TileProps, "theme"> & StyledProps, never>> & string;
9
10
  export declare const Container: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('..').TileProps, StyledProps>> & string & Omit<({ children, dataTestId, className, style, isHorizontal, }: import('..').TileProps) => import("react/jsx-runtime").JSX.Element, keyof import('react').Component<any, {}, any>>;
10
11
  export declare const TimelineColumn: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('..').TileProps, never>> & string & Omit<({ children, dataTestId, className, style, isHorizontal, }: import('..').TileProps) => import("react/jsx-runtime").JSX.Element, keyof import('react').Component<any, {}, any>>;
11
12
  export declare const TimelineLine: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, TimelineLineProps>> & string;
12
13
  export declare const Dot: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
13
14
  export declare const Content: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('..').TileProps, StyledProps>> & string & Omit<({ children, dataTestId, className, style, isHorizontal, }: import('..').TileProps) => import("react/jsx-runtime").JSX.Element, keyof import('react').Component<any, {}, any>>;
14
15
  export declare const ActionNote: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('..').TileProps, never>> & string & Omit<({ children, dataTestId, className, style, isHorizontal, }: import('..').TileProps) => import("react/jsx-runtime").JSX.Element, keyof import('react').Component<any, {}, any>>;
16
+ export declare const SpacerWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledProps>> & string;
17
+ export declare const SpacerColumn: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
15
18
  export {};
@@ -82,6 +82,8 @@ export { default as Tile } from './Tile';
82
82
  export type { TileProps } from './Tile';
83
83
  export { default as TileLog } from './TileLog';
84
84
  export type { TileLogProps } from './TileLog';
85
+ export { TileLogSkeleton } from './TileLog';
86
+ export { TileLogSpacer } from './TileLog';
85
87
  export { default as Toast } from './Toast';
86
88
  export type { ToastProps } from './Toast';
87
89
  export { default as Tooltip } from './Tooltip';
package/dist/index.cjs CHANGED
@@ -89183,6 +89183,10 @@ const Wrapper = styled(Tile)`
89183
89183
  background-color: #f4f4f4;
89184
89184
  }
89185
89185
  `;
89186
+ const SkeletonWrapper = styled(Wrapper)`
89187
+ height: 80px;
89188
+ overflow: hidden;
89189
+ `;
89186
89190
  const Container = styled(Tile)`
89187
89191
  flex-direction: row;
89188
89192
  justify-content: flex-start;
@@ -89219,6 +89223,21 @@ const Content = styled(Tile)`
89219
89223
  const ActionNote = styled(Tile)`
89220
89224
  padding: 0;
89221
89225
  `;
89226
+ const SpacerWrapper = styled.div`
89227
+ flex: 1;
89228
+ display: flex;
89229
+ flex-direction: row;
89230
+ padding: 0 ${({ theme }) => theme.sizing.Size6}px;
89231
+ background-color: #fff;
89232
+ `;
89233
+ const SpacerColumn = styled.div`
89234
+ display: flex;
89235
+ flex-direction: column;
89236
+ align-items: center;
89237
+ align-self: stretch;
89238
+ flex-shrink: 0;
89239
+ width: 26px;
89240
+ `;
89222
89241
  const TileLog = ({
89223
89242
  timestamp,
89224
89243
  action,
@@ -89362,6 +89381,46 @@ const TileLog = ({
89362
89381
  ] })
89363
89382
  ] }) });
89364
89383
  };
89384
+ const GENERIC_COLOR$1 = "#CBCBCB";
89385
+ const TileLogSkeleton = () => {
89386
+ return /* @__PURE__ */ jsxRuntime.jsx(SkeletonWrapper, { children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { children: [
89387
+ /* @__PURE__ */ jsxRuntime.jsxs(TimelineColumn, { children: [
89388
+ /* @__PURE__ */ jsxRuntime.jsx(TimelineLine, { $color: GENERIC_COLOR$1 }),
89389
+ /* @__PURE__ */ jsxRuntime.jsx(Dot, {}),
89390
+ /* @__PURE__ */ jsxRuntime.jsx(TimelineLine, { $color: GENERIC_COLOR$1 })
89391
+ ] }),
89392
+ /* @__PURE__ */ jsxRuntime.jsxs(Content, { children: [
89393
+ /* @__PURE__ */ jsxRuntime.jsx(
89394
+ Skeleton$1,
89395
+ {
89396
+ active: true,
89397
+ title: false,
89398
+ paragraph: { rows: 1, width: "30%" },
89399
+ style: { marginBottom: 2 }
89400
+ }
89401
+ ),
89402
+ /* @__PURE__ */ jsxRuntime.jsx(
89403
+ Skeleton$1,
89404
+ {
89405
+ active: true,
89406
+ title: false,
89407
+ paragraph: { rows: 1, width: "70%" },
89408
+ style: { marginBottom: 2 }
89409
+ }
89410
+ ),
89411
+ /* @__PURE__ */ jsxRuntime.jsx(
89412
+ Skeleton$1,
89413
+ {
89414
+ active: true,
89415
+ title: false,
89416
+ paragraph: { rows: 1, width: "40%" }
89417
+ }
89418
+ )
89419
+ ] })
89420
+ ] }) });
89421
+ };
89422
+ const GENERIC_COLOR = "#CBCBCB";
89423
+ const TileLogSpacer = () => /* @__PURE__ */ jsxRuntime.jsx(SpacerWrapper, { children: /* @__PURE__ */ jsxRuntime.jsx(SpacerColumn, { children: /* @__PURE__ */ jsxRuntime.jsx(TimelineLine, { $color: GENERIC_COLOR }) }) });
89365
89424
  const GlobalStyles = styled.createGlobalStyle`
89366
89425
  * {
89367
89426
  margin: 0;
@@ -89421,6 +89480,8 @@ exports.Tabs = Tabs;
89421
89480
  exports.Tag = Tag;
89422
89481
  exports.Tile = Tile;
89423
89482
  exports.TileLog = TileLog;
89483
+ exports.TileLogSkeleton = TileLogSkeleton;
89484
+ exports.TileLogSpacer = TileLogSpacer;
89424
89485
  exports.Toast = Toast;
89425
89486
  exports.Tooltip = Tooltip2;
89426
89487
  exports.Typography = Typography;
package/dist/index.js CHANGED
@@ -89165,6 +89165,10 @@ const Wrapper = styled(Tile)`
89165
89165
  background-color: #f4f4f4;
89166
89166
  }
89167
89167
  `;
89168
+ const SkeletonWrapper = styled(Wrapper)`
89169
+ height: 80px;
89170
+ overflow: hidden;
89171
+ `;
89168
89172
  const Container = styled(Tile)`
89169
89173
  flex-direction: row;
89170
89174
  justify-content: flex-start;
@@ -89201,6 +89205,21 @@ const Content = styled(Tile)`
89201
89205
  const ActionNote = styled(Tile)`
89202
89206
  padding: 0;
89203
89207
  `;
89208
+ const SpacerWrapper = styled.div`
89209
+ flex: 1;
89210
+ display: flex;
89211
+ flex-direction: row;
89212
+ padding: 0 ${({ theme }) => theme.sizing.Size6}px;
89213
+ background-color: #fff;
89214
+ `;
89215
+ const SpacerColumn = styled.div`
89216
+ display: flex;
89217
+ flex-direction: column;
89218
+ align-items: center;
89219
+ align-self: stretch;
89220
+ flex-shrink: 0;
89221
+ width: 26px;
89222
+ `;
89204
89223
  const TileLog = ({
89205
89224
  timestamp,
89206
89225
  action,
@@ -89344,6 +89363,46 @@ const TileLog = ({
89344
89363
  ] })
89345
89364
  ] }) });
89346
89365
  };
89366
+ const GENERIC_COLOR$1 = "#CBCBCB";
89367
+ const TileLogSkeleton = () => {
89368
+ return /* @__PURE__ */ jsx(SkeletonWrapper, { children: /* @__PURE__ */ jsxs(Container, { children: [
89369
+ /* @__PURE__ */ jsxs(TimelineColumn, { children: [
89370
+ /* @__PURE__ */ jsx(TimelineLine, { $color: GENERIC_COLOR$1 }),
89371
+ /* @__PURE__ */ jsx(Dot, {}),
89372
+ /* @__PURE__ */ jsx(TimelineLine, { $color: GENERIC_COLOR$1 })
89373
+ ] }),
89374
+ /* @__PURE__ */ jsxs(Content, { children: [
89375
+ /* @__PURE__ */ jsx(
89376
+ Skeleton$1,
89377
+ {
89378
+ active: true,
89379
+ title: false,
89380
+ paragraph: { rows: 1, width: "30%" },
89381
+ style: { marginBottom: 2 }
89382
+ }
89383
+ ),
89384
+ /* @__PURE__ */ jsx(
89385
+ Skeleton$1,
89386
+ {
89387
+ active: true,
89388
+ title: false,
89389
+ paragraph: { rows: 1, width: "70%" },
89390
+ style: { marginBottom: 2 }
89391
+ }
89392
+ ),
89393
+ /* @__PURE__ */ jsx(
89394
+ Skeleton$1,
89395
+ {
89396
+ active: true,
89397
+ title: false,
89398
+ paragraph: { rows: 1, width: "40%" }
89399
+ }
89400
+ )
89401
+ ] })
89402
+ ] }) });
89403
+ };
89404
+ const GENERIC_COLOR = "#CBCBCB";
89405
+ const TileLogSpacer = () => /* @__PURE__ */ jsx(SpacerWrapper, { children: /* @__PURE__ */ jsx(SpacerColumn, { children: /* @__PURE__ */ jsx(TimelineLine, { $color: GENERIC_COLOR }) }) });
89347
89406
  const GlobalStyles = createGlobalStyle`
89348
89407
  * {
89349
89408
  margin: 0;
@@ -89404,6 +89463,8 @@ export {
89404
89463
  Tag,
89405
89464
  Tile,
89406
89465
  TileLog,
89466
+ TileLogSkeleton,
89467
+ TileLogSpacer,
89407
89468
  Toast,
89408
89469
  Tooltip2 as Tooltip,
89409
89470
  Typography,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gobolt/genesis",
3
- "version": "0.8.2",
3
+ "version": "0.8.4",
4
4
  "description": "genesis design system",
5
5
  "author": "gobolt",
6
6
  "license": "MIT",