@knapsack/sandbox-components 4.66.3--canary.b1cd7eb.0 → 4.67.0--canary.4368.af45627.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  export type DividerProps = {
3
3
  className?: string;
4
+ spacingBottom?: 'none' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'xxxlarge';
4
5
  };
5
6
  export declare const Divider: React.FC<DividerProps>;
6
7
  //# sourceMappingURL=divider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"divider.d.ts","sourceRoot":"","sources":["../../src/react/divider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,MAAM,YAAY,GAAG;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAE1C,CAAC"}
1
+ {"version":3,"file":"divider.d.ts","sourceRoot":"","sources":["../../src/react/divider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,MAAM,YAAY,GAAG;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EACV,MAAM,GACN,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,SAAS,GACT,UAAU,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAa1C,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import clsx from 'clsx';
3
- export const Divider = ({ className }) => {
4
- return _jsx("hr", { className: clsx('divider', className) });
3
+ export const Divider = ({ className, spacingBottom, }) => {
4
+ return (_jsx("hr", { className: clsx('divider', className, spacingBottom && `divider--spacingBottom--${spacingBottom}`) }));
5
5
  };
6
6
  //# sourceMappingURL=divider.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"divider.js","sourceRoot":"","sources":["../../src/react/divider.tsx"],"names":[],"mappings":";AACA,OAAO,IAAI,MAAM,MAAM,CAAC;AAMxB,MAAM,CAAC,MAAM,OAAO,GAA2B,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE;IAC/D,OAAO,aAAI,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,GAAI,CAAC;AACvD,CAAC,CAAC"}
1
+ {"version":3,"file":"divider.js","sourceRoot":"","sources":["../../src/react/divider.tsx"],"names":[],"mappings":";AACA,OAAO,IAAI,MAAM,MAAM,CAAC;AAexB,MAAM,CAAC,MAAM,OAAO,GAA2B,CAAC,EAC9C,SAAS,EACT,aAAa,GACd,EAAE,EAAE;IACH,OAAO,CACL,aACE,SAAS,EAAE,IAAI,CACb,SAAS,EACT,SAAS,EACT,aAAa,IAAI,2BAA2B,aAAa,EAAE,CAC5D,GACD,CACH,CAAC;AACJ,CAAC,CAAC"}
@@ -4,6 +4,7 @@ interface GridItemProps {
4
4
  columns?: 1 | 2 | 3 | 4;
5
5
  gap?: 'small' | 'medium' | 'large';
6
6
  maxWidth?: string;
7
+ spacingBottom?: 'none' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'xxxlarge';
7
8
  }
8
9
  export declare const Grid: React.FC<GridItemProps>;
9
10
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../src/react/grid.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,aAAa;IACrB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACxB,GAAG,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAkBxC,CAAC"}
1
+ {"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../src/react/grid.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,aAAa;IACrB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACxB,GAAG,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EACV,MAAM,GACN,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,SAAS,GACT,UAAU,CAAC;CAChB;AAED,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAoBxC,CAAC"}
@@ -1,10 +1,11 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import clsx from 'clsx';
3
- export const Grid = ({ children, columns = 2, gap = 'medium', maxWidth, }) => {
3
+ export const Grid = ({ children, columns = 2, gap = 'medium', maxWidth, spacingBottom, }) => {
4
4
  return (_jsx("div", { className: clsx({
5
5
  grid: true,
6
6
  [`grid--columns--${columns}`]: columns,
7
7
  [`grid--gap-${gap}`]: gap,
8
+ [`grid--spacingBottom--${spacingBottom}`]: spacingBottom,
8
9
  }), style: { maxWidth }, children: children }));
9
10
  };
10
11
  //# sourceMappingURL=grid.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"grid.js","sourceRoot":"","sources":["../../src/react/grid.tsx"],"names":[],"mappings":";AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AAUxB,MAAM,CAAC,MAAM,IAAI,GAA4B,CAAC,EAC5C,QAAQ,EACR,OAAO,GAAG,CAAC,EACX,GAAG,GAAG,QAAQ,EACd,QAAQ,GACT,EAAE,EAAE;IACH,OAAO,CACL,cACE,SAAS,EAAE,IAAI,CAAC;YACd,IAAI,EAAE,IAAI;YACV,CAAC,kBAAkB,OAAO,EAAE,CAAC,EAAE,OAAO;YACtC,CAAC,aAAa,GAAG,EAAE,CAAC,EAAE,GAAG;SAC1B,CAAC,EACF,KAAK,EAAE,EAAE,QAAQ,EAAE,YAElB,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"grid.js","sourceRoot":"","sources":["../../src/react/grid.tsx"],"names":[],"mappings":";AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AAmBxB,MAAM,CAAC,MAAM,IAAI,GAA4B,CAAC,EAC5C,QAAQ,EACR,OAAO,GAAG,CAAC,EACX,GAAG,GAAG,QAAQ,EACd,QAAQ,EACR,aAAa,GACd,EAAE,EAAE;IACH,OAAO,CACL,cACE,SAAS,EAAE,IAAI,CAAC;YACd,IAAI,EAAE,IAAI;YACV,CAAC,kBAAkB,OAAO,EAAE,CAAC,EAAE,OAAO;YACtC,CAAC,aAAa,GAAG,EAAE,CAAC,EAAE,GAAG;YACzB,CAAC,wBAAwB,aAAa,EAAE,CAAC,EAAE,aAAa;SACzD,CAAC,EACF,KAAK,EAAE,EAAE,QAAQ,EAAE,YAElB,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -10,4 +10,5 @@ export * from './json-schema-playground.js';
10
10
  export * from './slot-references.js';
11
11
  export * from './starter-template.js';
12
12
  export * from './text.js';
13
+ export * from './callout.js';
13
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/react/index.tsx"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/react/index.tsx"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC"}
@@ -10,4 +10,5 @@ export * from './json-schema-playground.js';
10
10
  export * from './slot-references.js';
11
11
  export * from './starter-template.js';
12
12
  export * from './text.js';
13
+ export * from './callout.js';
13
14
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/react/index.tsx"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/react/index.tsx"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@knapsack/sandbox-components",
3
3
  "description": "",
4
- "version": "4.66.3--canary.b1cd7eb.0",
4
+ "version": "4.67.0--canary.4368.af45627.0",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  "./css": "./dist/css/ks-sandbox-styles.css",
@@ -37,11 +37,11 @@
37
37
  "vue": "^3.4.27"
38
38
  },
39
39
  "devDependencies": {
40
- "@knapsack/eslint-config-starter": "4.66.3--canary.b1cd7eb.0",
41
- "@knapsack/postcss-config-starter": "4.66.3--canary.b1cd7eb.0",
42
- "@knapsack/prettier-config": "4.66.3--canary.b1cd7eb.0",
43
- "@knapsack/sandbox-tokens": "4.66.3--canary.b1cd7eb.0",
44
- "@knapsack/typescript-config-starter": "4.66.3--canary.b1cd7eb.0",
40
+ "@knapsack/eslint-config-starter": "4.67.0--canary.4368.af45627.0",
41
+ "@knapsack/postcss-config-starter": "4.67.0--canary.4368.af45627.0",
42
+ "@knapsack/prettier-config": "4.67.0--canary.4368.af45627.0",
43
+ "@knapsack/sandbox-tokens": "4.67.0--canary.4368.af45627.0",
44
+ "@knapsack/typescript-config-starter": "4.67.0--canary.4368.af45627.0",
45
45
  "@types/node": "^20.12.12",
46
46
  "@types/react": "^18.3.3",
47
47
  "eslint": "^8.57.0",
@@ -59,5 +59,5 @@
59
59
  "directory": "apps/ui/libs/sandbox-components",
60
60
  "type": "git"
61
61
  },
62
- "gitHead": "b1cd7eb5337d013df565a505b93faceab6fdaffe"
62
+ "gitHead": "af456271627a758b3ef5792ace46a1a6ddd77db1"
63
63
  }
@@ -0,0 +1,53 @@
1
+ .callout {
2
+ margin: var(--spacing-xxxlarge) 0;
3
+ text-align: center;
4
+ }
5
+
6
+ .callout-content {
7
+ display: flex;
8
+ flex-direction: column;
9
+ align-items: center;
10
+ max-width: 1200px;
11
+ width: 100%;
12
+ margin: 0 auto;
13
+ box-sizing: border-box;
14
+ }
15
+
16
+ .callout-image {
17
+ width: 100%;
18
+ height: auto;
19
+ max-width: 100%;
20
+ max-height: 400px;
21
+ object-fit: contain;
22
+ margin-bottom: var(--spacing-xxlarge);
23
+ }
24
+
25
+ .callout-text-content {
26
+ display: flex;
27
+ flex-direction: column;
28
+ align-items: center;
29
+ box-sizing: border-box;
30
+ padding: 0 var(--spacing-medium);
31
+ }
32
+
33
+ @media (min-width: 768px) {
34
+ .callout-content {
35
+ flex-direction: row;
36
+ justify-content: center;
37
+ align-items: center;
38
+ }
39
+
40
+ .callout-image {
41
+ margin-bottom: 0;
42
+ margin-right: var(--spacing-large);
43
+ }
44
+
45
+ .callout-text-content {
46
+ align-items: flex-start;
47
+ padding: 0;
48
+ }
49
+
50
+ .callout-text {
51
+ text-align: left;
52
+ }
53
+ }
@@ -19,3 +19,30 @@
19
19
  hsla(0, 0%, 0%, 0) 95%
20
20
  );
21
21
  }
22
+
23
+ .divider--spacingBottom {
24
+ &--none {
25
+ margin-bottom: 0;
26
+ }
27
+ &--xsmall {
28
+ margin-bottom: var(--spacing-xsmall);
29
+ }
30
+ &--small {
31
+ margin-bottom: var(--spacing-small);
32
+ }
33
+ &--medium {
34
+ margin-bottom: var(--spacing-medium);
35
+ }
36
+ &--large {
37
+ margin-bottom: var(--spacing-large);
38
+ }
39
+ &--xlarge {
40
+ margin-bottom: var(--spacing-xlarge);
41
+ }
42
+ &--xxlarge {
43
+ margin-bottom: var(--spacing-xxlarge);
44
+ }
45
+ &--xxxlarge {
46
+ margin-bottom: var(--spacing-xxxlarge);
47
+ }
48
+ }
@@ -7,6 +7,5 @@ body {
7
7
  }
8
8
 
9
9
  .demo-wrapper {
10
- padding: var(--spacing-xlarge);
11
10
  align-items: center;
12
11
  }
package/src/css/grid.css CHANGED
@@ -29,3 +29,30 @@
29
29
  }
30
30
  }
31
31
  }
32
+
33
+ .grid--spacingBottom {
34
+ &--none {
35
+ margin-bottom: 0;
36
+ }
37
+ &--xsmall {
38
+ margin-bottom: var(--spacing-xsmall);
39
+ }
40
+ &--small {
41
+ margin-bottom: var(--spacing-small);
42
+ }
43
+ &--medium {
44
+ margin-bottom: var(--spacing-medium);
45
+ }
46
+ &--large {
47
+ margin-bottom: var(--spacing-large);
48
+ }
49
+ &--xlarge {
50
+ margin-bottom: var(--spacing-xlarge);
51
+ }
52
+ &--xxlarge {
53
+ margin-bottom: var(--spacing-xxlarge);
54
+ }
55
+ &--xxxlarge {
56
+ margin-bottom: var(--spacing-xxxlarge);
57
+ }
58
+ }
package/src/css/hero.css CHANGED
@@ -40,4 +40,5 @@
40
40
  .hero-image {
41
41
  max-width: var(--breakpoint-xlarge);
42
42
  height: auto;
43
+ margin: auto;
43
44
  }
package/src/css/index.css CHANGED
@@ -10,3 +10,4 @@
10
10
  @import './hero.css';
11
11
  @import './divider.css';
12
12
  @import './text.css';
13
+ @import './callout.css';