diff --git a/packages/search-package/.gitignore b/packages/search-package/.gitignore new file mode 100644 index 0000000000..430675afe5 --- /dev/null +++ b/packages/search-package/.gitignore @@ -0,0 +1,2 @@ +dist/ +.out/ diff --git a/packages/search-package/.storybook/main.js b/packages/search-package/.storybook/main.js new file mode 100644 index 0000000000..67ff1d56aa --- /dev/null +++ b/packages/search-package/.storybook/main.js @@ -0,0 +1,39 @@ +module.exports = { + stories: ["../src/components/**/*.stories.@(js|jsx|ts|tsx|mdx)"], + addons: [ + { + name: "@storybook/addon-docs", + options: { + configureJSX: true, + babelOptions: {}, + sourceLoaderOptions: null, + transcludeMarkdown: true + } + } + ], + babel: async (options) => ({ + ...options, + + "plugins": [ + "@babel/plugin-proposal-optional-chaining", + "@babel/plugin-transform-runtime", + ] + }), + webpackFinal: async (config) => { + config.module.rules[0].use[0].options.plugins[1] = [ + '@babel/plugin-proposal-class-properties', + { loose: true } + ] + + config.module.rules.push({ + test: /\.(stories|story)\.[tj]sx?$/, + loader: require.resolve("@storybook/source-loader"), + exclude: [/node_modules/], + enforce: "pre" + }); + + config.resolve.extensions.push(".ts", ".tsx", ".mdx") + + return config + } +} diff --git a/packages/search-package/.storybook/preview-head.html b/packages/search-package/.storybook/preview-head.html new file mode 100644 index 0000000000..a05ce31fa3 --- /dev/null +++ b/packages/search-package/.storybook/preview-head.html @@ -0,0 +1 @@ + diff --git a/packages/search-package/.storybook/preview.js b/packages/search-package/.storybook/preview.js new file mode 100644 index 0000000000..cdb3a20801 --- /dev/null +++ b/packages/search-package/.storybook/preview.js @@ -0,0 +1,24 @@ +import { DocsPage, DocsContainer } from "@storybook/addon-docs"; +import { GlobalStyle } from '@saasquatch/visual-dev'; +import React from "react"; + +export const parameters = { + docs: { + container: DocsContainer, + page: DocsPage, + }, + options: { + enableShortcuts: false, + }, + viewMode: "docs", +}; + +const withGlobalStyles = (Story, context) => { + return ( + <> + + + + ); +}; +export const decorators = [withGlobalStyles]; diff --git a/packages/search-package/CHANGELOG.md b/packages/search-package/CHANGELOG.md new file mode 100644 index 0000000000..aaedbe54f3 --- /dev/null +++ b/packages/search-package/CHANGELOG.md @@ -0,0 +1,65 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased] + +## [1.0.2] - 2022-08-02 + +### Changed + +- Update global CSS variables to match new portal design system variables + +## [1.0.1] - 2022-07-21 + +### Changed + +- Fix icons in safari by adding width to svg +- Make Modal buttons more configurable +- More SVG icon options added +- Remove stopPropagation from select list to prevent conflict with Popper.js + +### Added + +## [1.0.0] - 2022-06-01 + +### Added + +- New visual-dev components: + - \ + - \ + - \ + - \ + - \ + - \