Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add storybook components no history #2021

Merged
merged 178 commits into from
Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
178 commits
Select commit Hold shift + click to select a range
fb1d242
Initial commit
SergeyRoyt Jul 11, 2023
4d18789
Init workflows
SergeyRoyt Jul 13, 2023
59ac14e
Update README.md
SergeyRoyt Jul 13, 2023
f0c94f4
internal: disable tests in prerelease, rename repository in workflows…
SergeyRoyt Jul 13, 2023
94c65a6
Replace npm ci with yarn install (#4)
SergeyRoyt Jul 13, 2023
8449646
Init (#1)
SergeyRoyt Jul 20, 2023
500f192
Fix package.json and rollup issue (#5)
SergeyRoyt Jul 23, 2023
6db6dc9
Fix eslint issues (#6)
SergeyRoyt Jul 23, 2023
03984c8
Remove test:coverage, prerelease, improve eslint (#7)
SergeyRoyt Jul 23, 2023
43de483
Install lerna-changelog (#8)
SergeyRoyt Jul 23, 2023
67c7ee2
Changelog story (#9)
SergeyRoyt Jul 23, 2023
f6d805a
0.0.2
Jul 23, 2023
702be95
Release version 0.0.2
Jul 23, 2023
38c6f1d
Package infrastructure changes (#11)
SergeyRoyt Aug 1, 2023
f85169a
Remove boxt from release.mjs (#12)
SergeyRoyt Aug 1, 2023
5255372
fix: release process - __dirname (#13)
SergeyRoyt Aug 1, 2023
50611a1
Remove require statement from release.mjs script (#14)
SergeyRoyt Aug 1, 2023
19f540d
0.1.0
Aug 1, 2023
f6cc425
Release version 0.1.0
Aug 1, 2023
9d0be31
infra: tests in ci/cd (#15)
SergeyRoyt Aug 1, 2023
6813eea
Chore: storybook infra cleanup + variables cleanup (#16)
SergeyRoyt Aug 15, 2023
7229f1a
Export scss tokens and mixins (#17)
SergeyRoyt Aug 23, 2023
6c097a5
0.2.0
Aug 23, 2023
acb1df4
Release version 0.2.0
Aug 23, 2023
8c305bc
fix: export sb-icon-color (#18)
SergeyRoyt Aug 28, 2023
f72fe0f
0.2.1
Aug 28, 2023
0418c14
Release version 0.2.1
Aug 28, 2023
efc25c8
fix(UsageGuidelines): wrap content in a span (#19)
talkor Oct 1, 2023
38e6d39
0.2.2
Oct 1, 2023
63e093f
Release version 0.2.2
Oct 1, 2023
a77bf14
Add mising color tokens (#20)
SergeyRoyt Oct 1, 2023
831a4c5
0.3.0
Oct 1, 2023
a0d3f98
Release version 0.3.0
Oct 1, 2023
23f7de1
Replace Rubik with Noto Sans Hebrew (#22)
SergeyRoyt Oct 2, 2023
079cca7
0.4.0
Oct 2, 2023
74990f6
Release version 0.4.0
Oct 2, 2023
43a7c29
docs(Storybook): document UsageGuidelines (#23)
talkor Oct 4, 2023
2c4c31b
infra: test-workflow.yml - remove push trigger (#27)
SergeyRoyt Oct 4, 2023
31dd389
docs: contibuting.md + components_documentation_guidelines.md (#26)
SergeyRoyt Oct 4, 2023
d0d949e
feat: createStoryMetaSettings.js add ignoreControlsPropNamesArray (#28)
SergeyRoyt Oct 5, 2023
132ffea
0.5.0
Oct 5, 2023
5563e51
Release version 0.5.0
Oct 5, 2023
f297271
feat: createMetastorySettings - string type for ContentElement contro…
SergeyRoyt Oct 5, 2023
9fca4a6
0.6.0
Oct 5, 2023
dee8012
Release version 0.6.0
Oct 5, 2023
156a0f8
feat: Implement attention box, tip, alpha warning, deprecated warning…
talkor Oct 5, 2023
598a951
feat: add StatusTag (#33)
talkor Oct 5, 2023
3f6d8a2
0.7.0
Oct 5, 2023
429424c
Release version 0.7.0
Oct 5, 2023
353afc0
Export components with static props (#35)
SergeyRoyt Oct 9, 2023
f3aeade
docs: CSS_MODULES_MIGRATION.md (#46)
SergeyRoyt Oct 9, 2023
eef2cde
docs: TYPESCRIPT_MIGRATION.md (#36)
SergeyRoyt Oct 9, 2023
309c513
Export < Tip />, < AlphaWarning />, < DeprecatedWarning />, < StatusT…
SergeyRoyt Oct 9, 2023
afd0748
0.7.1
Oct 9, 2023
c0e5c1c
Release version 0.7.1
Oct 9, 2023
94402d1
feat: mixin sb-basic-text - disable font smoothing (#47)
SergeyRoyt Oct 9, 2023
7bb1bce
0.8.0
Oct 9, 2023
75481e2
Release version 0.8.0
Oct 9, 2023
cbbd6b2
Add sidebar item (#48)
talkor Oct 10, 2023
baf4d2b
0.9.0
Oct 10, 2023
fb45c14
Release version 0.9.0
Oct 10, 2023
24d8991
CSS modules migration: < UsageGuidelines />, < VisualDescription /> (…
Kritik-J Oct 11, 2023
30a7274
CSS modules migration: < UnstyledList />, < UnstyledListItem />, < Ti…
Kritik-J Oct 11, 2023
a22ffc2
chore: prettier cleanup (#53)
SergeyRoyt Oct 11, 2023
6754b1f
CSS modules migration: < SectionName />, < RelatedComponent />, < Rel…
Kritik-J Oct 12, 2023
941369c
Migrate < InformationBox />, < InformationBoxTitle />, < Frame /> to …
balajik Oct 15, 2023
859d81e
Migrated < DocFooter />, < Frame />, < Paragraph /> and also child co…
balajik Oct 16, 2023
5924937
TS migration: < ComponentRule />, < ComponentRules /> (#60)
Kritik-J Oct 16, 2023
a23fd88
Migrated <AnchorListItem>, <ComponentDescription>, <ComponentName> co…
balajik Oct 16, 2023
b37f880
TS migration: < UsageGuidelines />, < VisualDescription /> (#67)
Kritik-J Oct 16, 2023
77cc195
feat: migrated < Paragrapgh />, < MultipleStoryElementsWrapper />, < …
Dhoni77 Oct 16, 2023
160fd66
fix: build issues (#71)
SergeyRoyt Oct 16, 2023
a39f2d1
0.9.1
Oct 16, 2023
0eac1eb
Release version 0.9.1
Oct 16, 2023
50a7b08
infra: add build into test-workflow.yml (#72)
SergeyRoyt Oct 16, 2023
8b8cfd1
TS migration: < SectionName />, < RelatedComponent />, < RelatedCompo…
Kritik-J Oct 16, 2023
251fa03
Convert UnstyledList UnstyledListItem Title to TSX (#65)
Ryan-Biondo Oct 16, 2023
2e49d9c
Migrated < FunctionArgument />, < FunctionArguments />, < MultipleSto…
balajik Oct 16, 2023
43daf7b
Migrated < InformationBox />, < InformationBoxTitle /> to TS (#75)
balajik Oct 16, 2023
5fa912c
feat: Migrate < ComponentRule />, < ComponentRules /> to css modules …
Dhoni77 Oct 17, 2023
39c397d
docs: Add story for < ComponentName /> component (#84)
Dhoni77 Oct 17, 2023
028f8c3
Migrated < TokenTable /> , < ColorDescription /> to TS (#82)
balajik Oct 17, 2023
f789b3a
Migrated < AnchorListItem />, < ComponentName />, < DocFooter /> to C…
balajik Oct 17, 2023
c43e4a0
Feat: add theme switching to storybook (#79)
pedaars Oct 17, 2023
87b669f
chore: fix package-lock.json (#85)
SergeyRoyt Oct 17, 2023
bcae8c7
chore: fix theme switcher type error (#86)
SergeyRoyt Oct 17, 2023
e01d6f9
0.9.2
Oct 17, 2023
a93a075
Release version 0.9.2
Oct 17, 2023
bc53394
fix: < ComponentName /> use text-color-fixed-dark (#87)
SergeyRoyt Oct 18, 2023
88edfe8
0.9.3
Oct 18, 2023
26eaee5
Release version 0.9.3
Oct 18, 2023
1c9e83f
fix: dependency issue, upgrade storybook ^7.5.0 (#88)
SergeyRoyt Oct 18, 2023
4eebf89
0.9.4
Oct 18, 2023
52a3943
Release version 0.9.4
Oct 18, 2023
4e55dbb
docs: Create basic story for < VisualDescription />, < ColorDescripti…
Dhoni77 Oct 22, 2023
7664af9
ci: add storybook and chromatic workflows (#32)
talkor Oct 22, 2023
6a4d0ec
Migrated the createStoryMetaSettings, createComponentTemplate to TS (…
balajik Oct 22, 2023
c18e5f3
Created story from Paragraph and Frame components (#97)
balajik Oct 23, 2023
73a5db5
docs: add story for < TokenTable /> (#95)
Dhoni77 Oct 23, 2023
e1cbc2f
docs: create basic story for < ComponentDescription />, < UnstyledLis…
Dhoni77 Oct 23, 2023
801e62b
fix createStoryMettasettings fix types (#98)
SergeyRoyt Oct 23, 2023
3f4f834
0.9.5
Oct 23, 2023
cb45b43
Release version 0.9.5
Oct 23, 2023
70c2aee
chore: migrate <ColorDescription/> to css modules (#105)
Dhoni77 Oct 23, 2023
017c6d0
feat: Migrate < Link />, < StoryDescription /> to ts (#83)
Dhoni77 Oct 23, 2023
283025a
chore: prettier fix (#106)
SergeyRoyt Oct 23, 2023
de7248f
0.10.0
Oct 23, 2023
0c48b1b
Release version 0.10.0
Oct 23, 2023
f29dbbf
docs: replace logo in storybook (#99)
talkor Oct 23, 2023
3fea35f
fix(SidebarItem): add ellipsis to item name (#100)
talkor Oct 23, 2023
64eda86
0.10.1
Oct 23, 2023
41297a8
Release version 0.10.1
Oct 23, 2023
22aa968
fix(SidebarItem): flex the container (#108)
talkor Oct 23, 2023
f73dc57
0.10.2
Oct 23, 2023
fae08e9
Release version 0.10.2
Oct 23, 2023
dabb702
docs: add story for < ComponentRules />, < DocFooter /> (#109)
Dhoni77 Oct 23, 2023
5925f87
prettier fix + component-name.stories change text (#110)
SergeyRoyt Oct 23, 2023
93430c1
docs: add story for < Link /> and < StoryDescription /> (#111)
Dhoni77 Oct 24, 2023
b5c3dbb
Created basic story for < SectionName />, < AnchorListItem /> (#112)
balajik Oct 25, 2023
a4f5f8b
Add Tip to preview.tsx (#113)
SergeyRoyt Oct 25, 2023
d4aad9d
Add story for < Title /> component (#114)
balajik Oct 29, 2023
0a6e2aa
docs: add story for < FunctionArguments /> and < InformationBox /> (#…
Dhoni77 Oct 29, 2023
6f011ad
chore: cleanup (#116)
SergeyRoyt Oct 30, 2023
3c56f02
0.10.3
Oct 30, 2023
d5bd238
Release version 0.10.3
Oct 30, 2023
c3205de
feat, docs: <GithubContributorsList>, use it on welcome page (#117)
SergeyRoyt Oct 31, 2023
48c65bf
0.11.0
Oct 31, 2023
d91e7ac
Release version 0.11.0
Oct 31, 2023
23dbb1c
fix: <InformationBoxTitle> use <Link> (#119)
SergeyRoyt Nov 12, 2023
a729ce9
docs: remove hacker theme from storybook (#121)
SergeyRoyt Nov 12, 2023
8982ce6
fix: <DocFooter> use <Link> (#120)
SergeyRoyt Nov 12, 2023
68f4aa8
0.11.1
Nov 12, 2023
3054403
Release version 0.11.1
Nov 12, 2023
bd99a12
fix: <InformationBoxTitle> Link withoutSpacing (#122)
SergeyRoyt Nov 12, 2023
b678b3f
0.11.2
Nov 12, 2023
67fa9c1
Release version 0.11.2
Nov 12, 2023
4326974
fix: reduce <InformationBox> line-height from 24px to 20px (#123)
SergeyRoyt Nov 15, 2023
c1dfdc5
0.11.3
Nov 15, 2023
8600f4b
Release version 0.11.3
Nov 15, 2023
9984057
feat: <Link> add target prop (#124)
SergeyRoyt Nov 15, 2023
2cf9b1d
0.12.0
Nov 15, 2023
1662a35
Release version 0.12.0
Nov 15, 2023
80ac3dc
feat: add linkTarget to <RelatedComponents> (#125)
SergeyRoyt Nov 16, 2023
37ea095
0.13.0
Nov 16, 2023
984ce62
Release version 0.13.0
Nov 16, 2023
9b0bbda
feat(DeprecatedWarning): add children (#126)
talkor Nov 20, 2023
9babd6e
0.14.0
Nov 20, 2023
706cf06
Release version 0.14.0
Nov 20, 2023
df841d5
fix: <StoryDescription> make className and headerStyle props not requ…
SergeyRoyt Nov 24, 2023
30c88a9
0.14.1
Nov 24, 2023
67630cd
Release version 0.14.1
Nov 24, 2023
83ea1d4
fix: <Frame> make className, noBorder, noGutter props not required (#…
SergeyRoyt Nov 26, 2023
a15a2c4
0.14.2
Nov 26, 2023
0cba975
Release version 0.14.2
Nov 26, 2023
76640d0
fix(SidebarItem): add margin to the right (#130)
talkor Dec 3, 2023
035b917
0.14.3
Dec 3, 2023
451eb52
Release version 0.14.3
Dec 3, 2023
0a036f8
feat: add storybook-link component (#127)
talkor Dec 3, 2023
3808f41
0.15.0
Dec 3, 2023
fc8dfb2
Release version 0.15.0
Dec 3, 2023
b1b304b
fix: export component (#131)
talkor Dec 3, 2023
21950f5
0.15.1
Dec 3, 2023
fd2528f
Release version 0.15.1
Dec 3, 2023
37ccfa2
feat(StorybookLink): add size prop (#132)
talkor Dec 4, 2023
cf2e519
0.16.0
Dec 4, 2023
f243ab9
Release version 0.16.0
Dec 4, 2023
0de02e2
fix: types (#133)
talkor Dec 5, 2023
bb3861d
0.16.1
Dec 5, 2023
8461b80
Release version 0.16.1
Dec 5, 2023
531bb07
chore: fix hooks related eslint issues (#134)
SergeyRoyt Dec 26, 2023
d4f05fc
changed folder name
shaharzil Mar 18, 2024
e381b6e
removed unused files and changed paths
shaharzil Mar 18, 2024
409809c
deleted wrong script
shaharzil Mar 18, 2024
e34dca7
deleted wrong script
shaharzil Mar 18, 2024
3a7f50d
fixed ppermissions
shaharzil Mar 18, 2024
963ff70
downgrade react and align vibe-storybook-components-verion
shaharzil Mar 18, 2024
0bba3b1
pushed yarn lock
shaharzil Mar 18, 2024
99d7877
edit publish storybook
shaharzil Mar 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ Please go over the checklist and make sure all conditions are met.
- [ ] Styles are added to `NewComponent.modules.scss` file inside the `NewComponent` folder.
- [ ] Component uses CSS Modules.
- [ ] Design is compatible with [Monday Design System](https://design.monday.com/).
- [ ] Styles are defined using [monday-ui-style](https://github.com/mondaycom/monday-ui-react-core/tree/monorepo-style/packages/monday-ui-style) tokens
- [ ] Styles are defined using [monday-ui-style](https://github.com/mondaycom/monday-ui-react-core/tree/master/packages/style) tokens
- [ ] Displays correctly in all the themes

#### Storybook

- [ ] Stories were added to `/src/components/NewComponent/__stories__/NewComponent.mdx` file.
- [ ] Stories include all flows of using the component.
- [ ] Stories implemented using [vibe-storybook-components](https://github.com/mondaycom/vibe-storybook-components) components and tokens.
- [ ] Stories implemented using [vibe-storybook-components](https://github.com/mondaycom/monday-ui-react-core/tree/master/packages/storybook-blocks) components and tokens.

#### Tests

Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/publish-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,24 @@ jobs:
run: |
yarn lerna run build --include-dependencies
yarn lerna run --scope monday-ui-react-core build-storybook
yarn lerna run --scope vibe-storybook-components build-storybook
cd packages/core/static_storybook
echo "style.monday.com" > ./CNAME
env:
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
- name: Push storybook-blocks Storybook to Github Pages
if: success()
uses: JamesIves/github-pages-deploy-action@v4.5.0
with:
folder: packages/storybook-blocks/storybook-static
branch: gh-pages
target-folder: storybook-blocks
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Push core Storybook to Github Pages
uses: JamesIves/github-pages-deploy-action@v4.5.0
with:
clean-exclude: storybook-blocks/*
folder: packages/core/static_storybook
branch: gh-pages
env:
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
"react-window": "^1.8.7",
"react-windowed-select": "^2.0.4",
"style-inject": "^0.3.0",
"vibe-storybook-components": "^0.16.1"
"vibe-storybook-components": "0.17.0"
},
"devDependencies": {
"@babel/core": "^7.23.2",
Expand Down
16 changes: 16 additions & 0 deletions packages/storybook-blocks/.babelrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"sourceType": "unambiguous",
"presets": [
[
"@babel/preset-env",
{
"targets": {
"chrome": 100
}
}
],
"@babel/preset-typescript",
"@babel/preset-react"
],
"plugins": []
}
98 changes: 98 additions & 0 deletions packages/storybook-blocks/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
const commonRules = {
'react/display-name': 'off',
'object-curly-newline': 'off',
'no-debugger': 'error',
'global-require': 'off',
'no-unused-expressions': 'off',
'react/forbid-foreign-prop-types': 'off',
'no-console': 'off',
'consistent-return': 'off',
'no-use-before-define': 'off',
'one-var': 'off',
'default-case': 'off',
'func-names': 'off',
'react/sort-comp': 'off',
'class-methods-use-this': 'off',
radix: 'off',
'no-underscore-dangle': 'off',
'import/prefer-default-export': 'off',
'no-plusplus': 'off',
'react/react-in-jsx-scope': 0,
'react/no-danger': 'error',
'react/jsx-one-expression-per-line': 'off',
'react/prop-types': 0,
'react/forbid-prop-types': 'off',
'react/function-component-definition': 'off',
'default-param-last': 'off',
'react/require-default-props': ['error'],
'react/jsx-props-no-spreading': 0,
'react/jsx-filename-extension': ['error', { extensions: ['.js', '.jsx', '.ts', '.tsx'] }],
'react/default-props-match-prop-types': 'error',
'react/jsx-boolean-value': 'off',
'arrow-parens': 'off',
'implicit-arrow-linebreak': 'off',
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
};
const commonPlugins = ['import', 'react', 'json', 'markdown', 'jest'];
const commonExtends = ['plugin:react/recommended', 'plugin:prettier/recommended', 'plugin:storybook/recommended'];

module.exports = {
overrides: [
{
files: ['*.jest.js', 'jest.setup.js', 'jest.init.js'],
env: {
jest: true,
'jest/globals': true,
},
},
{
files: ['.eslintrc.js', 'scripts/**/*.js', '__mocks__/**/*.js', 'rollup.config.js'],
env: {
node: true,
},
},
{
files: ['*.ts', '*.tsx'],
parser: '@typescript-eslint/parser',
extends: [
...commonExtends,
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
],
plugins: [...commonPlugins, '@typescript-eslint'],
rules: {
...commonRules,
'@typescript-eslint/ban-ts-comment': ['warn'],
'no-unused-vars': 'off',
'react/require-default-props': 'off',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
'@typescript-eslint/no-empty-function': 'off',
},
},
],
env: {
browser: true,
es2021: true,
},
settings: {
jest: {
version: 27,
},
react: {
version: 'detect',
},
},
extends: [...commonExtends, 'eslint:recommended'],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 13,
sourceType: 'module',
},
plugins: [...commonPlugins],
rules: {
...commonRules,
'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
},
};
1 change: 1 addition & 0 deletions packages/storybook-blocks/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18.12.1
5 changes: 5 additions & 0 deletions packages/storybook-blocks/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"printWidth": 120,
"singleQuote": true,
"arrowParens": "avoid"
}
Binary file added packages/storybook-blocks/.storybook/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions packages/storybook-blocks/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import type { StorybookConfig } from '@storybook/react-webpack5';

const config: StorybookConfig = {
stories: ['../src/**/*.mdx', '../src/**/*.stories.tsx', '../storybook/**/*.stories.mdx'],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-themes',
'@storybook/preset-scss',
],
framework: {
name: '@storybook/react-webpack5',
options: {},
},
docs: {
autodocs: true,
},
staticDirs: ['../public'],
};
export default config;
40 changes: 40 additions & 0 deletions packages/storybook-blocks/.storybook/manager-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<link href="https://fonts.googleapis.com/css?family=Roboto:100,200,300,400,500&display=swap" rel="stylesheet" />
<meta property="og:description" content="Vibe storybook components by monday.com" />
<meta property="og:title" content="Vibe Storybook Components" />
<meta property="og:image" content="https://irp.cdn-website.com/33477119/dms3rep/multi/og-banner.jpeg" />
<title>Vibe Storybook Components</title>
<style>
body {
font-family: 'Roboto', sans-serif;
background: #f0f3ff !important;
font-size: 14px;
}

#storybook-explorer-menu svg {
color: #5034ff;
}
#storybook-explorer-menu button[aria-expanded='true'],
#storybook-explorer-menu button:focus,
#storybook-explorer-menu a[data-selected]:hover {
background-color: rgba(80, 52, 255, 0.1);
}

#storybook-explorer-menu a[data-selected='true'],
#storybook-explorer-menu a[data-selected='true']:hover {
background-color: #5034ff;
color: #f0f3ff;
}

#storybook-explorer-menu a[data-selected='true'] svg {
color: #f0f3ff;
}

.os-content button:hover {
background-color: rgba(80, 52, 255, 0.1);
color: #5034ff;
}

.os-content button:hover svg {
color: #5034ff;
}
</style>
6 changes: 6 additions & 0 deletions packages/storybook-blocks/.storybook/manager.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { addons } from '@storybook/manager-api';
import theme from './theme';

addons.setConfig({
theme: theme,
});
106 changes: 106 additions & 0 deletions packages/storybook-blocks/.storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link href="https://fonts.googleapis.com/css?family=Roboto:100,200,300,400,500" rel="stylesheet" />
<link
href="https://fonts.googleapis.com/css2?family=Noto+Sans+Hebrew:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap"
rel="stylesheet"
/>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap" rel="stylesheet" />
<link
href="https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"
rel="stylesheet"
/>
<link href="//fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@300;400;500;700&display=swap" rel="stylesheet" />
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700" rel="stylesheet" />
<link href="https://fonts.cdnfonts.com/css/sofia-pro" rel="stylesheet" />
<style>
body {
font-family: 'Figtree', sans-serif;
box-sizing: border-box;
}
body * {
box-sizing: border-box;
}
.width-35 {
width: 35%;
}
.main-story-title {
font-size: 32px;
color: #323338;
}
.story-title {
color: #323338;
font-size: 18px;
margin-bottom: 48px;
}
#tooltips-container {
position: relative;
white-space: pre-wrap;
z-index: 99999999;
max-width: 50%;
}
.light-app-theme {
background-color: var(--sb-primary-background-color);
}
.dark-app-theme {
background-color: var(--sb-primary-background-color);
}
.black-app-theme {
background-color: var(--sb-primary-background-color);
}
.sbdocs.sbdocs-wrapper,
.sbdocs.sbdocs-content {
background: var(--sb-primary-background-color);
}
.sbdocs.sbdocs-p {
color: var(--sb-primary-text-color);
}

.sbdocs .docs-story {
border: var(--sb-layout-border-color);
}
.sbdocs .docs-story > div {
background: var(--sb-secondary-background-color);
}

.sbdocs {
color: var(--sb-primary-text-color);
}

.sbdocs ul li a {
color: var(--sb-link-color);
}

#docs-root .docblock-argstable {
border: 1px solid var(--sb-layout-border-color);
}

#docs-root .docblock-argstable tr th {
color: var(--sb-primary-text-color);
}

#docs-root .docblock-argstable tr td {
color: var(--sb-primary-text-color);
background: var(--sb-secondary-background-color);
}
#docs-root .docblock-code-toggle {
cursor: pointer;
background-color: var(--sb-secondary-background-color);
border: 1px solid var(--sb-layout-border-color);
color: var(--sb-primary-text-color);
}
#docs-root .docblock-code-toggle.docblock-code-toggle--expanded {
background-color: var(--sb-primary-selected-color);
}
#docs-root .docblock-code-toggle:hover {
background-color: var(--sb-primary-background-hover-color);
}

.os-content button:hover {
background-color: rgba(80, 52, 255, 0.1);
color: #5034ff;
}

.os-content button:hover svg {
color: #5034ff;
}
</style>
13 changes: 13 additions & 0 deletions packages/storybook-blocks/.storybook/preview.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
body {
margin: 0;
padding: 0 !important;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
height: 100vh;
overflow: auto;
}

#storybook-root {
height: 100%;
padding: 1rem;
}
Loading