@gobolt/genesis 0.8.3 → 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 {};
@@ -83,6 +83,7 @@ export type { TileProps } from './Tile';
83
83
  export { default as TileLog } from './TileLog';
84
84
  export type { TileLogProps } from './TileLog';
85
85
  export { TileLogSkeleton } from './TileLog';
86
+ export { TileLogSpacer } from './TileLog';
86
87
  export { default as Toast } from './Toast';
87
88
  export type { ToastProps } from './Toast';
88
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,13 +89381,13 @@ const TileLog = ({
89362
89381
  ] })
89363
89382
  ] }) });
89364
89383
  };
89365
- const GENERIC_COLOR = "#CBCBCB";
89384
+ const GENERIC_COLOR$1 = "#CBCBCB";
89366
89385
  const TileLogSkeleton = () => {
89367
- return /* @__PURE__ */ jsxRuntime.jsx(Wrapper, { children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { children: [
89386
+ return /* @__PURE__ */ jsxRuntime.jsx(SkeletonWrapper, { children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { children: [
89368
89387
  /* @__PURE__ */ jsxRuntime.jsxs(TimelineColumn, { children: [
89369
- /* @__PURE__ */ jsxRuntime.jsx(TimelineLine, { $color: GENERIC_COLOR }),
89388
+ /* @__PURE__ */ jsxRuntime.jsx(TimelineLine, { $color: GENERIC_COLOR$1 }),
89370
89389
  /* @__PURE__ */ jsxRuntime.jsx(Dot, {}),
89371
- /* @__PURE__ */ jsxRuntime.jsx(TimelineLine, { $color: GENERIC_COLOR })
89390
+ /* @__PURE__ */ jsxRuntime.jsx(TimelineLine, { $color: GENERIC_COLOR$1 })
89372
89391
  ] }),
89373
89392
  /* @__PURE__ */ jsxRuntime.jsxs(Content, { children: [
89374
89393
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -89400,6 +89419,8 @@ const TileLogSkeleton = () => {
89400
89419
  ] })
89401
89420
  ] }) });
89402
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 }) }) });
89403
89424
  const GlobalStyles = styled.createGlobalStyle`
89404
89425
  * {
89405
89426
  margin: 0;
@@ -89460,6 +89481,7 @@ exports.Tag = Tag;
89460
89481
  exports.Tile = Tile;
89461
89482
  exports.TileLog = TileLog;
89462
89483
  exports.TileLogSkeleton = TileLogSkeleton;
89484
+ exports.TileLogSpacer = TileLogSpacer;
89463
89485
  exports.Toast = Toast;
89464
89486
  exports.Tooltip = Tooltip2;
89465
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,13 +89363,13 @@ const TileLog = ({
89344
89363
  ] })
89345
89364
  ] }) });
89346
89365
  };
89347
- const GENERIC_COLOR = "#CBCBCB";
89366
+ const GENERIC_COLOR$1 = "#CBCBCB";
89348
89367
  const TileLogSkeleton = () => {
89349
- return /* @__PURE__ */ jsx(Wrapper, { children: /* @__PURE__ */ jsxs(Container, { children: [
89368
+ return /* @__PURE__ */ jsx(SkeletonWrapper, { children: /* @__PURE__ */ jsxs(Container, { children: [
89350
89369
  /* @__PURE__ */ jsxs(TimelineColumn, { children: [
89351
- /* @__PURE__ */ jsx(TimelineLine, { $color: GENERIC_COLOR }),
89370
+ /* @__PURE__ */ jsx(TimelineLine, { $color: GENERIC_COLOR$1 }),
89352
89371
  /* @__PURE__ */ jsx(Dot, {}),
89353
- /* @__PURE__ */ jsx(TimelineLine, { $color: GENERIC_COLOR })
89372
+ /* @__PURE__ */ jsx(TimelineLine, { $color: GENERIC_COLOR$1 })
89354
89373
  ] }),
89355
89374
  /* @__PURE__ */ jsxs(Content, { children: [
89356
89375
  /* @__PURE__ */ jsx(
@@ -89382,6 +89401,8 @@ const TileLogSkeleton = () => {
89382
89401
  ] })
89383
89402
  ] }) });
89384
89403
  };
89404
+ const GENERIC_COLOR = "#CBCBCB";
89405
+ const TileLogSpacer = () => /* @__PURE__ */ jsx(SpacerWrapper, { children: /* @__PURE__ */ jsx(SpacerColumn, { children: /* @__PURE__ */ jsx(TimelineLine, { $color: GENERIC_COLOR }) }) });
89385
89406
  const GlobalStyles = createGlobalStyle`
89386
89407
  * {
89387
89408
  margin: 0;
@@ -89443,6 +89464,7 @@ export {
89443
89464
  Tile,
89444
89465
  TileLog,
89445
89466
  TileLogSkeleton,
89467
+ TileLogSpacer,
89446
89468
  Toast,
89447
89469
  Tooltip2 as Tooltip,
89448
89470
  Typography,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gobolt/genesis",
3
- "version": "0.8.3",
3
+ "version": "0.8.4",
4
4
  "description": "genesis design system",
5
5
  "author": "gobolt",
6
6
  "license": "MIT",