├── .nvmrc
├── .husky
├── .gitignore
├── pre-commit
└── prepare-commit-msg
├── packages
├── type-utils
│ ├── .npmignore
│ ├── tsconfig.json
│ ├── tsconfig.build.json
│ ├── README.md
│ ├── .gitignore
│ ├── vite.config.js
│ └── package.json
├── solid-doc-site
│ ├── src
│ │ ├── pages
│ │ │ ├── CenterPage
│ │ │ │ ├── index.tsx
│ │ │ │ ├── argTypes.ts
│ │ │ │ ├── maxWidth.tsx
│ │ │ │ ├── centerText.tsx
│ │ │ │ ├── playground.tsx
│ │ │ │ └── centerChildren.tsx
│ │ │ ├── CoverPage
│ │ │ │ ├── index.tsx
│ │ │ │ ├── minHeight.tsx
│ │ │ │ ├── topAndBottom.tsx
│ │ │ │ ├── playground.tsx
│ │ │ │ ├── noStretch.tsx
│ │ │ │ └── argTypes.ts
│ │ │ ├── FramePage
│ │ │ │ ├── index.tsx
│ │ │ │ ├── ratioArray.tsx
│ │ │ │ ├── ratioString.tsx
│ │ │ │ ├── position.tsx
│ │ │ │ ├── withoutRatio.tsx
│ │ │ │ ├── playground.tsx
│ │ │ │ └── argTypes.ts
│ │ │ ├── GridPage
│ │ │ │ ├── index.tsx
│ │ │ │ ├── minItemWidth.tsx
│ │ │ │ ├── playground.tsx
│ │ │ │ └── argTypes.ts
│ │ │ ├── InlinePage
│ │ │ │ ├── index.tsx
│ │ │ │ ├── minItemWidth.tsx
│ │ │ │ ├── switchAt.tsx
│ │ │ │ ├── playground.tsx
│ │ │ │ ├── inlineClusterProps.tsx
│ │ │ │ ├── stretch.tsx
│ │ │ │ └── argTypes.ts
│ │ │ ├── PadBoxPage
│ │ │ │ ├── index.tsx
│ │ │ │ ├── argTypes.ts
│ │ │ │ ├── playground.tsx
│ │ │ │ ├── paddingObject.tsx
│ │ │ │ └── paddingArray.tsx
│ │ │ ├── ReelPage
│ │ │ │ ├── index.tsx
│ │ │ │ ├── colors.ts
│ │ │ │ ├── playground.tsx
│ │ │ │ ├── argTypes.ts
│ │ │ │ └── snap.tsx
│ │ │ ├── SplitPage
│ │ │ │ ├── index.tsx
│ │ │ │ ├── switchAt.tsx
│ │ │ │ ├── playground.tsx
│ │ │ │ ├── minItemWidth.tsx
│ │ │ │ ├── argTypes.ts
│ │ │ │ └── fractions.tsx
│ │ │ ├── StackPage
│ │ │ │ ├── index.tsx
│ │ │ │ ├── playground.tsx
│ │ │ │ ├── argTypes.ts
│ │ │ │ └── align.tsx
│ │ │ ├── ColumnsPage
│ │ │ │ ├── index.tsx
│ │ │ │ ├── columns.tsx
│ │ │ │ ├── switchAt.tsx
│ │ │ │ ├── playground.tsx
│ │ │ │ ├── column-playground.tsx
│ │ │ │ ├── span.tsx
│ │ │ │ ├── offset.tsx
│ │ │ │ └── argTypes.ts
│ │ │ ├── ColumnDropPage
│ │ │ │ ├── index.tsx
│ │ │ │ ├── basis.tsx
│ │ │ │ ├── playground.tsx
│ │ │ │ ├── noStretch.tsx
│ │ │ │ └── argTypes.ts
│ │ │ ├── InlineClusterPage
│ │ │ │ ├── index.tsx
│ │ │ │ ├── playground.tsx
│ │ │ │ ├── argTypes.ts
│ │ │ │ ├── align.tsx
│ │ │ │ └── justify.tsx
│ │ │ └── MasonryGridPage
│ │ │ │ ├── index.tsx
│ │ │ │ └── argTypes.ts
│ │ ├── global-styles.css
│ │ ├── components
│ │ │ ├── Heading.tsx
│ │ │ ├── Box.tsx
│ │ │ ├── PageSection.tsx
│ │ │ ├── Button.tsx
│ │ │ └── Story.tsx
│ │ ├── types
│ │ │ └── argType.d.ts
│ │ └── index.tsx
│ ├── tsconfig.json
│ ├── babel.config.js
│ ├── tsconfig.build.json
│ ├── vite.config.js
│ ├── index.html
│ └── README.md
├── css
│ ├── tsconfig.json
│ ├── postcss.config.js
│ ├── tsconfig.build.json
│ ├── README.md
│ ├── package.json
│ └── src
│ │ ├── reset.css
│ │ └── components
│ │ └── frame.css
├── center
│ ├── tsconfig.json
│ ├── tsconfig.build.json
│ ├── vite.config.js
│ ├── README.md
│ ├── package.json
│ └── src
│ │ └── index.tsx
├── columns
│ ├── tsconfig.json
│ ├── tsconfig.build.json
│ ├── vite.config.js
│ └── package.json
├── cover
│ ├── tsconfig.json
│ ├── tsconfig.build.json
│ ├── vite.config.js
│ └── package.json
├── frame
│ ├── tsconfig.json
│ ├── tsconfig.build.json
│ ├── vite.config.js
│ ├── README.md
│ └── package.json
├── grid
│ ├── tsconfig.json
│ ├── tsconfig.build.json
│ ├── vite.config.js
│ ├── README.md
│ └── package.json
├── inline
│ ├── tsconfig.json
│ ├── tsconfig.build.json
│ ├── vite.config.js
│ └── package.json
├── padbox
│ ├── tsconfig.json
│ ├── tsconfig.build.json
│ ├── vite.config.js
│ ├── README.md
│ └── package.json
├── reel
│ ├── tsconfig.json
│ ├── tsconfig.build.json
│ ├── vite.config.js
│ ├── README.md
│ ├── src
│ │ └── index.tsx
│ └── package.json
├── solid
│ ├── tsconfig.json
│ ├── babel.config.js
│ ├── tsconfig.build.json
│ ├── src
│ │ ├── index.tsx
│ │ ├── theme-provider.tsx
│ │ ├── open-props.d.ts
│ │ ├── create-container-query.tsx
│ │ ├── stack.tsx
│ │ ├── center.tsx
│ │ └── reel.tsx
│ ├── vite.config.js
│ └── README.md
├── split
│ ├── tsconfig.json
│ ├── tsconfig.build.json
│ ├── vite.config.js
│ └── package.json
├── stack
│ ├── tsconfig.json
│ ├── tsconfig.build.json
│ ├── vite.config.js
│ ├── README.md
│ ├── src
│ │ └── index.tsx
│ └── package.json
├── appboundary
│ ├── tsconfig.json
│ ├── README.md
│ ├── tsconfig.build.json
│ ├── vite.config.js
│ └── src
│ │ └── index.tsx
├── column-drop
│ ├── tsconfig.json
│ ├── tsconfig.build.json
│ ├── vite.config.js
│ └── README.md
├── masonry-grid
│ ├── tsconfig.json
│ ├── README.md
│ ├── tsconfig.build.json
│ └── vite.config.js
├── primitives
│ ├── tsconfig.json
│ ├── __tests__
│ │ └── primitives.test.jsx
│ ├── tsconfig.build.json
│ ├── README.md
│ ├── src
│ │ └── index.tsx
│ └── vite.config.js
├── inline-cluster
│ ├── tsconfig.json
│ ├── tsconfig.build.json
│ ├── vite.config.js
│ └── README.md
└── spacing-constants
│ ├── tsconfig.json
│ ├── tsconfig.build.json
│ ├── vite.config.js
│ ├── __tests__
│ └── __snapshots__
│ │ └── spacing-constants.test.tsx.snap
│ └── package.json
├── public
├── locales
│ ├── fr
│ │ └── contributing.json
│ └── es
│ │ └── contributing.json
├── robots.txt
├── favicon.ico
├── people.jpeg
├── Full logo.png
└── Logo only.png
├── .storybook
├── assets
│ ├── grid.png
│ ├── Full logo.png
│ ├── Logo only.png
│ ├── data-pic.jpg
│ ├── jacket-pic.jpg
│ ├── menu-start.png
│ ├── newsletter.png
│ ├── card-initial.png
│ ├── card-styled.png
│ ├── column-drop.png
│ ├── hero-example.png
│ ├── masonry-grid.png
│ ├── menu-mobile.png
│ ├── hero-breakdown.png
│ ├── initial-setup.png
│ ├── hero-page-initial.png
│ ├── menu-just-inline.png
│ ├── newsletter-after.png
│ ├── newsletter-before.png
│ ├── hero-page-with-cover.png
│ └── hero-page-with-center.png
├── manager-styles.css
├── ui-components
│ ├── Avatar.tsx
│ ├── Heading.tsx
│ ├── SwitchToDocs.tsx
│ ├── Intl.tsx
│ └── Button.ts
├── manager-head.html
├── manager.ts
├── i18n.ts
├── preview.ts
└── main.ts
├── .vscode
├── mcp.json
└── settings.json
├── .github
├── FUNDING.yml
├── workflows
│ ├── stale.yml
│ ├── chromatic.yml
│ └── verify.yml
├── dependabot.yml
└── ISSUE_TEMPLATE
│ ├── feature_request.md
│ └── bug_report.md
├── stories
├── inline
│ ├── Component.tsx
│ └── argTypes.ts
├── split
│ ├── Component.tsx
│ └── argTypes.ts
├── stack
│ ├── Component.tsx
│ └── argTypes.ts
├── column-drop
│ ├── Component.tsx
│ └── argTypes.ts
├── frame
│ └── argTypes.ts
├── center
│ ├── argTypes.ts
│ └── Component.tsx
├── inline-cluster
│ ├── Component.tsx
│ └── argTypes.ts
├── columns
│ ├── Component.tsx
│ └── argTypes.ts
├── appboundary
│ ├── Component.tsx
│ └── argTypes.ts
├── css
│ └── css-reset.mdx
├── reel
│ ├── colors.ts
│ └── argTypes.ts
├── cover
│ ├── Component.tsx
│ └── argTypes.ts
├── grid
│ └── argTypes.ts
├── use-stateful-ref
│ └── useStatefulRef.mdx
├── primitives
│ └── primitives.mdx
├── use-container-query
│ └── useContainerQuery.mdx
├── use-resize-observer
│ └── useReseizeObserver.mdx
└── use-forwarded-ref
│ └── useForwardedRef.mdx
├── examples
├── Component.tsx
└── plans.ts
├── lerna.json
├── setupTest.js
├── nx.json
├── .eslintrc
├── knip.json
├── vite.config.js
├── README.md
├── tsconfig.build.json
├── LICENSE
├── netlify.toml
├── tsconfig.json
└── CONTRIBUTING.md
/.nvmrc:
--------------------------------------------------------------------------------
1 | lts/jod
--------------------------------------------------------------------------------
/.husky/.gitignore:
--------------------------------------------------------------------------------
1 | _
2 |
--------------------------------------------------------------------------------
/packages/type-utils/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
--------------------------------------------------------------------------------
/public/locales/fr/contributing.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/public/robots.txt:
--------------------------------------------------------------------------------
1 | User-agent: * Disallow:
--------------------------------------------------------------------------------
/packages/solid-doc-site/src/pages/CenterPage/index.tsx:
--------------------------------------------------------------------------------
1 | export * from "./CenterPage";
2 |
--------------------------------------------------------------------------------
/packages/solid-doc-site/src/pages/CoverPage/index.tsx:
--------------------------------------------------------------------------------
1 | export * from "./CoverPage";
2 |
--------------------------------------------------------------------------------
/packages/solid-doc-site/src/pages/FramePage/index.tsx:
--------------------------------------------------------------------------------
1 | export * from "./FramePage";
2 |
--------------------------------------------------------------------------------
/packages/solid-doc-site/src/pages/GridPage/index.tsx:
--------------------------------------------------------------------------------
1 | export * from "./GridPage";
2 |
--------------------------------------------------------------------------------
/packages/solid-doc-site/src/pages/InlinePage/index.tsx:
--------------------------------------------------------------------------------
1 | export * from "./InlinePage";
2 |
--------------------------------------------------------------------------------
/packages/solid-doc-site/src/pages/PadBoxPage/index.tsx:
--------------------------------------------------------------------------------
1 | export * from "./PadBoxPage";
2 |
--------------------------------------------------------------------------------
/packages/solid-doc-site/src/pages/ReelPage/index.tsx:
--------------------------------------------------------------------------------
1 | export * from "./ReelPage";
2 |
--------------------------------------------------------------------------------
/packages/solid-doc-site/src/pages/SplitPage/index.tsx:
--------------------------------------------------------------------------------
1 | export * from "./SplitPage";
2 |
--------------------------------------------------------------------------------
/packages/solid-doc-site/src/pages/StackPage/index.tsx:
--------------------------------------------------------------------------------
1 | export * from "./StackPage";
2 |
--------------------------------------------------------------------------------
/packages/solid-doc-site/src/pages/ColumnsPage/index.tsx:
--------------------------------------------------------------------------------
1 | export * from "./ColumnsPage";
2 |
--------------------------------------------------------------------------------
/packages/solid-doc-site/src/pages/ColumnDropPage/index.tsx:
--------------------------------------------------------------------------------
1 | export * from "./ColumnDropPage";
2 |
--------------------------------------------------------------------------------
/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bedrock-Layouts/Bedrock/HEAD/public/favicon.ico
--------------------------------------------------------------------------------
/public/people.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bedrock-Layouts/Bedrock/HEAD/public/people.jpeg
--------------------------------------------------------------------------------
/packages/solid-doc-site/src/pages/InlineClusterPage/index.tsx:
--------------------------------------------------------------------------------
1 | export * from "./InlineClusterPage";
2 |
--------------------------------------------------------------------------------
/packages/solid-doc-site/src/pages/MasonryGridPage/index.tsx:
--------------------------------------------------------------------------------
1 | export * from "./MasonaryGridPage";
2 |
--------------------------------------------------------------------------------
/public/Full logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bedrock-Layouts/Bedrock/HEAD/public/Full logo.png
--------------------------------------------------------------------------------
/public/Logo only.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bedrock-Layouts/Bedrock/HEAD/public/Logo only.png
--------------------------------------------------------------------------------
/.husky/pre-commit:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | . "$(dirname "$0")/_/husky.sh"
3 |
4 | # npx lint-staged
5 | yarn verify
6 |
--------------------------------------------------------------------------------
/.storybook/assets/grid.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bedrock-Layouts/Bedrock/HEAD/.storybook/assets/grid.png
--------------------------------------------------------------------------------
/.storybook/assets/Full logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bedrock-Layouts/Bedrock/HEAD/.storybook/assets/Full logo.png
--------------------------------------------------------------------------------
/.storybook/assets/Logo only.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bedrock-Layouts/Bedrock/HEAD/.storybook/assets/Logo only.png
--------------------------------------------------------------------------------
/.storybook/assets/data-pic.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bedrock-Layouts/Bedrock/HEAD/.storybook/assets/data-pic.jpg
--------------------------------------------------------------------------------
/.storybook/assets/jacket-pic.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bedrock-Layouts/Bedrock/HEAD/.storybook/assets/jacket-pic.jpg
--------------------------------------------------------------------------------
/.storybook/assets/menu-start.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bedrock-Layouts/Bedrock/HEAD/.storybook/assets/menu-start.png
--------------------------------------------------------------------------------
/.storybook/assets/newsletter.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bedrock-Layouts/Bedrock/HEAD/.storybook/assets/newsletter.png
--------------------------------------------------------------------------------
/.storybook/assets/card-initial.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bedrock-Layouts/Bedrock/HEAD/.storybook/assets/card-initial.png
--------------------------------------------------------------------------------
/.storybook/assets/card-styled.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bedrock-Layouts/Bedrock/HEAD/.storybook/assets/card-styled.png
--------------------------------------------------------------------------------
/.storybook/assets/column-drop.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bedrock-Layouts/Bedrock/HEAD/.storybook/assets/column-drop.png
--------------------------------------------------------------------------------
/.storybook/assets/hero-example.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bedrock-Layouts/Bedrock/HEAD/.storybook/assets/hero-example.png
--------------------------------------------------------------------------------
/.storybook/assets/masonry-grid.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bedrock-Layouts/Bedrock/HEAD/.storybook/assets/masonry-grid.png
--------------------------------------------------------------------------------
/.storybook/assets/menu-mobile.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bedrock-Layouts/Bedrock/HEAD/.storybook/assets/menu-mobile.png
--------------------------------------------------------------------------------
/.storybook/assets/hero-breakdown.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bedrock-Layouts/Bedrock/HEAD/.storybook/assets/hero-breakdown.png
--------------------------------------------------------------------------------
/.storybook/assets/initial-setup.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bedrock-Layouts/Bedrock/HEAD/.storybook/assets/initial-setup.png
--------------------------------------------------------------------------------
/.husky/prepare-commit-msg:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | . "$(dirname "$0")/_/husky.sh"
3 |
4 | exec < /dev/tty && node_modules/.bin/cz --hook || true
5 |
--------------------------------------------------------------------------------
/.storybook/assets/hero-page-initial.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bedrock-Layouts/Bedrock/HEAD/.storybook/assets/hero-page-initial.png
--------------------------------------------------------------------------------
/.storybook/assets/menu-just-inline.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bedrock-Layouts/Bedrock/HEAD/.storybook/assets/menu-just-inline.png
--------------------------------------------------------------------------------
/.storybook/assets/newsletter-after.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bedrock-Layouts/Bedrock/HEAD/.storybook/assets/newsletter-after.png
--------------------------------------------------------------------------------
/.storybook/assets/newsletter-before.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bedrock-Layouts/Bedrock/HEAD/.storybook/assets/newsletter-before.png
--------------------------------------------------------------------------------
/packages/css/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig.build.json",
3 | "compilerOptions": {
4 | "baseUrl": "."
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/.storybook/assets/hero-page-with-cover.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bedrock-Layouts/Bedrock/HEAD/.storybook/assets/hero-page-with-cover.png
--------------------------------------------------------------------------------
/packages/center/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig.build.json",
3 | "compilerOptions": {
4 | "baseUrl": "."
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/packages/columns/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig.build.json",
3 | "compilerOptions": {
4 | "baseUrl": "."
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/packages/cover/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig.build.json",
3 | "compilerOptions": {
4 | "baseUrl": "."
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/packages/frame/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig.build.json",
3 | "compilerOptions": {
4 | "baseUrl": "."
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/packages/grid/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig.build.json",
3 | "compilerOptions": {
4 | "baseUrl": "."
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/packages/inline/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig.build.json",
3 | "compilerOptions": {
4 | "baseUrl": "."
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/packages/padbox/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig.build.json",
3 | "compilerOptions": {
4 | "baseUrl": "."
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/packages/reel/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig.build.json",
3 | "compilerOptions": {
4 | "baseUrl": "."
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/packages/solid/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig.build.json",
3 | "compilerOptions": {
4 | "baseUrl": "."
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/packages/split/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig.build.json",
3 | "compilerOptions": {
4 | "baseUrl": "."
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/packages/stack/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig.build.json",
3 | "compilerOptions": {
4 | "baseUrl": "."
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/.storybook/assets/hero-page-with-center.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bedrock-Layouts/Bedrock/HEAD/.storybook/assets/hero-page-with-center.png
--------------------------------------------------------------------------------
/packages/appboundary/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig.build.json",
3 | "compilerOptions": {
4 | "baseUrl": "."
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/packages/column-drop/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig.build.json",
3 | "compilerOptions": {
4 | "baseUrl": "."
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/packages/masonry-grid/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig.build.json",
3 | "compilerOptions": {
4 | "baseUrl": "."
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/packages/primitives/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig.build.json",
3 | "compilerOptions": {
4 | "baseUrl": "."
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/packages/type-utils/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig.build.json",
3 | "compilerOptions": {
4 | "baseUrl": "."
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/.vscode/mcp.json:
--------------------------------------------------------------------------------
1 | {
2 | "servers": {
3 | "nx-mcp": {
4 | "type": "sse",
5 | "url": "http://localhost:9505/sse"
6 | }
7 | }
8 | }
--------------------------------------------------------------------------------
/packages/inline-cluster/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig.build.json",
3 | "compilerOptions": {
4 | "baseUrl": "."
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/packages/solid-doc-site/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig.build.json",
3 | "compilerOptions": {
4 | "baseUrl": "."
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4 | github: Bedrock-Layouts
5 |
--------------------------------------------------------------------------------
/packages/spacing-constants/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig.build.json",
3 | "compilerOptions": {
4 | "baseUrl": ".",
5 | "types": ["vitest/globals"]
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/stories/inline/Component.tsx:
--------------------------------------------------------------------------------
1 | import styled from "styled-components";
2 | export const Component = styled.div`
3 | background: black;
4 | min-height: 50px;
5 | min-width: 50px;
6 | `;
7 |
--------------------------------------------------------------------------------
/stories/split/Component.tsx:
--------------------------------------------------------------------------------
1 | import styled from "styled-components";
2 | export const Component = styled.div`
3 | background: black;
4 | min-height: 50px;
5 | min-width: 50px;
6 | `;
7 |
--------------------------------------------------------------------------------
/stories/stack/Component.tsx:
--------------------------------------------------------------------------------
1 | import styled from "styled-components";
2 | export const Component = styled.div`
3 | background: black;
4 | min-height: 50px;
5 | min-width: 50px;
6 | `;
7 |
--------------------------------------------------------------------------------
/stories/column-drop/Component.tsx:
--------------------------------------------------------------------------------
1 | import styled from "styled-components";
2 | export const Component = styled.div`
3 | background: black;
4 | min-height: 50px;
5 | min-width: 50px;
6 | `;
7 |
--------------------------------------------------------------------------------
/packages/solid/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: [
3 | ["@babel/preset-env", { targets: { node: "current" } }],
4 | "solid",
5 | "@babel/preset-typescript",
6 | ],
7 | };
8 |
--------------------------------------------------------------------------------
/packages/solid-doc-site/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: [
3 | ["@babel/preset-env", { targets: { node: "current" } }],
4 | "solid",
5 | "@babel/preset-typescript",
6 | ],
7 | };
8 |
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "typescript.tsdk": "node_modules/typescript/lib",
3 | "editor.defaultFormatter": "esbenp.prettier-vscode",
4 | "editor.formatOnSave": true,
5 | "nxConsole.generateAiAgentRules": true
6 | }
7 |
--------------------------------------------------------------------------------
/packages/appboundary/README.md:
--------------------------------------------------------------------------------
1 | # `@bedrock-layout/appboundary`
2 |
3 | Full docs at [bedrock-layout.dev](https://bedrock-layout.dev/)
4 |
5 | **Note:** This hook is deprecated and will be removed in the next major version.
6 |
--------------------------------------------------------------------------------
/packages/css/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: [
3 | // eslint-disable-next-line @typescript-eslint/no-var-requires
4 | require("cssnano")({
5 | preset: "default",
6 | }),
7 | ],
8 | };
9 |
--------------------------------------------------------------------------------
/stories/frame/argTypes.ts:
--------------------------------------------------------------------------------
1 | export const argTypes = {
2 | ratio: {
3 | control: "text",
4 | },
5 | position: {
6 | control: "text",
7 | },
8 | children: {
9 | control: "none",
10 | },
11 | };
12 |
--------------------------------------------------------------------------------
/packages/center/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.build.json",
3 | "include": ["src", "types", "../../types"],
4 | "compilerOptions": {
5 | "outDir": "./lib",
6 | "declaration": true
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/packages/cover/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.build.json",
3 | "include": ["src", "types", "../../types"],
4 | "compilerOptions": {
5 | "outDir": "./lib",
6 | "declaration": true
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/packages/css/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.build.json",
3 | "include": ["src", "types", "../../types"],
4 | "compilerOptions": {
5 | "outDir": "./lib",
6 | "declaration": true
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/packages/frame/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.build.json",
3 | "include": ["src", "types", "../../types"],
4 | "compilerOptions": {
5 | "outDir": "./lib",
6 | "declaration": true
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/packages/grid/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.build.json",
3 | "include": ["src", "types", "../../types"],
4 | "compilerOptions": {
5 | "outDir": "./lib",
6 | "declaration": true
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/packages/inline/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.build.json",
3 | "include": ["src", "types", "../../types"],
4 | "compilerOptions": {
5 | "outDir": "./lib",
6 | "declaration": true
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/packages/masonry-grid/README.md:
--------------------------------------------------------------------------------
1 | # `@bedrock-layout/masonry-grid`
2 |
3 | Full docs at [bedrock-layout.dev](https://bedrock-layout.dev/)
4 |
5 | **Note:** This hook is deprecated and will be removed in the next major version.
6 |
--------------------------------------------------------------------------------
/packages/padbox/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.build.json",
3 | "include": ["src", "types", "../../types"],
4 | "compilerOptions": {
5 | "outDir": "./lib",
6 | "declaration": true
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/packages/reel/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.build.json",
3 | "include": ["src", "types", "../../types"],
4 | "compilerOptions": {
5 | "outDir": "./lib",
6 | "declaration": true
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/packages/split/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.build.json",
3 | "include": ["src", "types", "../../types"],
4 | "compilerOptions": {
5 | "outDir": "./lib",
6 | "declaration": true
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/packages/stack/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.build.json",
3 | "include": ["src", "types", "../../types"],
4 | "compilerOptions": {
5 | "outDir": "./lib",
6 | "declaration": true
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/packages/appboundary/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.build.json",
3 | "include": ["src", "types", "../../types"],
4 | "compilerOptions": {
5 | "outDir": "./lib",
6 | "declaration": true
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/packages/column-drop/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.build.json",
3 | "include": ["src", "types", "../../types"],
4 | "compilerOptions": {
5 | "outDir": "./lib",
6 | "declaration": true
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/packages/columns/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.build.json",
3 | "include": ["src", "types", "../../types"],
4 | "compilerOptions": {
5 | "outDir": "./lib",
6 | "declaration": true
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/packages/primitives/__tests__/primitives.test.jsx:
--------------------------------------------------------------------------------
1 | import * as primitives from "../src";
2 |
3 | describe("primitives", () => {
4 | test("primitives snapshot", () => {
5 | expect(primitives).toMatchSnapshot();
6 | });
7 | });
8 |
--------------------------------------------------------------------------------
/packages/primitives/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.build.json",
3 | "include": ["src", "types", "../../types"],
4 | "compilerOptions": {
5 | "outDir": "./lib",
6 | "declaration": true
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/packages/type-utils/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.build.json",
3 | "include": ["src", "types", "../../types"],
4 | "compilerOptions": {
5 | "outDir": "./lib",
6 | "declaration": true
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/packages/inline-cluster/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.build.json",
3 | "include": ["src", "types", "../../types"],
4 | "compilerOptions": {
5 | "outDir": "./lib",
6 | "declaration": true
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/packages/masonry-grid/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.build.json",
3 | "include": ["src", "types", "../../types"],
4 | "compilerOptions": {
5 | "outDir": "./lib",
6 | "declaration": true
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/packages/solid-doc-site/src/global-styles.css:
--------------------------------------------------------------------------------
1 | body {
2 | font-family: var(--font-sans);
3 | background-color: var(--gray-8);
4 | }
5 |
6 | h2 {
7 | font-size: var(--font-size-6);
8 | font-weight: var(--font-weight-9);
9 | }
10 |
--------------------------------------------------------------------------------
/stories/center/argTypes.ts:
--------------------------------------------------------------------------------
1 | export const argTypes = {
2 | maxWidth: {
3 | control: "text",
4 | },
5 | centerText: {
6 | control: "boolean",
7 | },
8 | centerChildren: {
9 | control: "boolean",
10 | },
11 | };
12 |
--------------------------------------------------------------------------------
/packages/solid-doc-site/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.build.json",
3 | "include": ["src", "types", "../../types"],
4 | "compilerOptions": {
5 | "jsx": "preserve",
6 | "jsxImportSource": "solid-js"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/stories/inline-cluster/Component.tsx:
--------------------------------------------------------------------------------
1 | import styled from "styled-components";
2 | export const Component = styled.div<{ widthLevel?: number }>`
3 | background: black;
4 | min-height: 50px;
5 | min-width: ${({ widthLevel = 2 }) => widthLevel * 50}px;
6 | `;
7 |
--------------------------------------------------------------------------------
/.storybook/manager-styles.css:
--------------------------------------------------------------------------------
1 | a[href="#storybook-preview-wrapper"] {
2 | top: 0;
3 | }
4 |
5 | a[title="Bedrock Layout Primitives"] {
6 | filter: invert(90%);
7 | }
8 |
9 | [data-is-storybook][data-is-storybook] {
10 | background-color: var(--gray-10);
11 | }
12 |
--------------------------------------------------------------------------------
/packages/spacing-constants/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.build.json",
3 | "include": ["src", "types", "../../types"],
4 | "compilerOptions": {
5 | "outDir": "./lib",
6 | "declaration": true,
7 | "types": ["vitest/globals"]
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/.storybook/ui-components/Avatar.tsx:
--------------------------------------------------------------------------------
1 | import { Frame } from "../../packages/frame/src";
2 | import React from "react";
3 |
4 | export const Avatar = (props) => (
5 |
6 |
7 |
8 | );
9 |
--------------------------------------------------------------------------------
/examples/Component.tsx:
--------------------------------------------------------------------------------
1 | import { PadBox } from "@bedrock-layout/padbox";
2 | import styled from "styled-components";
3 |
4 | export const Component = styled.div.attrs(() => ({
5 | as: PadBox,
6 | padding: "size3",
7 | }))`
8 | border: 1px solid black;
9 | text-align: center;
10 | `;
11 |
--------------------------------------------------------------------------------
/packages/solid-doc-site/vite.config.js:
--------------------------------------------------------------------------------
1 | import { defineConfig } from "vite";
2 | import solidPlugin from "vite-plugin-solid";
3 |
4 | module.exports = defineConfig({
5 | plugins: [solidPlugin()],
6 | build: {
7 | target: "esnext",
8 | polyfillDynamicImport: false,
9 | },
10 | });
11 |
--------------------------------------------------------------------------------
/packages/type-utils/README.md:
--------------------------------------------------------------------------------
1 | # `@bedrock-layout/type-util`
2 |
3 | This is a utility package for building bedrock layout primitives in React. This package does not follow semver and should not be used directly by anyone. If you want to use it, I recommend forking it and using it in your code base.
4 |
--------------------------------------------------------------------------------
/.storybook/manager-head.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
10 |
{/* */}
31 |{/* */}
31 |{/* */}
31 |
10 |
11 | {JSON.stringify(
12 | { top: "size3", inlineEnd: "size7", blockEnd: "size1" },
13 | null,
14 | 3,
15 | )}
16 |
17 |
18 | scroll to the right to see the next item
13 |scroll to the right to see the next item
20 |scroll to the right to see the next item
27 |(The first box has a width of 100px)
36 |(The second box has a width of 100px)
42 |{/* */}
35 |["size2", "size7"]10 |
["size3", "size1", "size7"]18 |
["size3", "size1", "size1", "size7"]29 |