Skip to content

Commit

Permalink
Merge pull request #23 from tonyghiani/refactor/restore-icons
Browse files Browse the repository at this point in the history
Refactor/restore icons
  • Loading branch information
tonyghiani authored Feb 6, 2024
2 parents 297a494 + 903a6cc commit 75214e8
Show file tree
Hide file tree
Showing 3,651 changed files with 29,700 additions and 21,902 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
"@commitlint/cli": "^18.6.0",
"@commitlint/config-conventional": "^18.6.0",
"@commitlint/config-lerna-scopes": "^18.4.4",
"@types/jest": "^29.5.11",
"@typescript-eslint/eslint-plugin": "^6.20.0",
"@typescript-eslint/parser": "^6.20.0",
"@types/jest": "^29.5.12",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"@vitejs/plugin-react": "^4.2.1",
"babel-loader": "^9.1.3",
"commitlint": "^18.6.0",
Expand All @@ -46,15 +46,15 @@
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-simple-import-sort": "^10.0.0",
"git-cz": "^4.9.0",
"husky": "^9.0.7",
"husky": "^9.0.10",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-localstorage-mock": "^2.4.26",
"lerna": "^8.0.2",
"lerna": "^8.1.2",
"lerna-changelog": "^2.2.0",
"lint-staged": "^15.2.0",
"lint-staged": "^15.2.2",
"npm-check-updates": "^16.14.14",
"prettier": "^3.2.4",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"sort-package-json": "^2.7.0",
"ts-jest": "^29.1.2",
Expand Down
3 changes: 3 additions & 0 deletions packages/icons/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "../../.eslintrc.json"
}
21 changes: 21 additions & 0 deletions packages/icons/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { dirname, join } from 'path';
import type { StorybookConfig } from '@storybook/react-vite';

const config: StorybookConfig = {
stories: ['../src/**/*.stories.@(js|jsx|mjs|ts|tsx|mdx)'],
addons: [
getAbsolutePath('@storybook/addon-links'),
getAbsolutePath('@storybook/addon-essentials'),
getAbsolutePath('@storybook/addon-interactions'),
getAbsolutePath('@storybook/addon-a11y')
],
framework: getAbsolutePath('@storybook/react-vite'),
docs: {
autodocs: 'tag'
}
};
export default config;

function getAbsolutePath(value: string): any {
return dirname(require.resolve(join(value, 'package.json')));
}
13 changes: 13 additions & 0 deletions packages/icons/.storybook/manager.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { addons } from '@storybook/manager-api';
import { create } from '@storybook/theming/create';

addons.setConfig({
theme: create({
base: 'light',
fontBase: '"Avenir", sans-serif',
fontCode: 'monaco',
brandTitle: 'Mountain UI',
brandUrl: 'https://react-components.mountain-ui.com',
brandTarget: '_self'
})
});
25 changes: 25 additions & 0 deletions packages/icons/.storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import type { Preview } from '@storybook/react';

import '../src/styles/tailwind.base.css';

const preview: Preview = {
parameters: {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
exclude: ['as', 'ref', 'key'],
expanded: true,
matchers: {
date: /Date$/
}
},
backgrounds: {
default: 'light',
values: [
{ name: 'light', value: 'hsl(0, 0%, 98%)' },
{ name: 'dark', value: 'hsl(210, 14%, 9%)' }
]
}
}
};

export default preview;
19 changes: 19 additions & 0 deletions packages/icons/.storybook/test-runner.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { injectAxe, checkA11y } from 'axe-playwright';

import type { TestRunnerConfig } from '@storybook/test-runner';

const a11yConfig: TestRunnerConfig = {
async preRender(page) {
await injectAxe(page);
},
async postRender(page) {
await checkA11y(page, '#storybook-root', {
detailedReport: true,
detailedReportOptions: {
html: true
}
});
}
};

module.exports = a11yConfig;
175 changes: 175 additions & 0 deletions packages/icons/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [1.0.0](https://github.com/tonyghiani/mountain-ui/compare/@mountain-ui/[email protected]...@mountain-ui/[email protected]) (2024-02-06)

### Features

- **icons:** 🎸 promote to v1 ([37cadc9](https://github.com/tonyghiani/mountain-ui/commit/37cadc9dd0bc488c5950f008baf00410ffe18294))
- **icons:** 🎸 restore icons package ([92916ce](https://github.com/tonyghiani/mountain-ui/commit/92916ceee8790a0de5b2139d3783d9fa033a2990))

### BREAKING CHANGES

- **icons:** 🧨 restore icons

## [0.2.2](https://github.com/tonyghiani/mountain-ui/compare/@mountain-ui/[email protected]...@mountain-ui/[email protected]) (2022-10-19)

**Note:** Version bump only for package @mountain-ui/icons

## [0.2.1](https://github.com/tonyghiani/mountain-ui/compare/@mountain-ui/[email protected]...@mountain-ui/[email protected]) (2022-04-22)

**Note:** Version bump only for package @mountain-ui/icons

# [0.2.0](https://github.com/tonyghiani/mountain-ui/compare/@mountain-ui/[email protected]...@mountain-ui/[email protected]) (2022-01-18)

### Features

- **icons:** 🎸 switch to doc-tools ([6b9eb1f](https://github.com/tonyghiani/mountain-ui/commit/6b9eb1f49039d16bec51ede74720091aeecf1d32))

## [0.1.33](https://github.com/tonyghiani/mountain-ui/compare/@mountain-ui/[email protected]...@mountain-ui/[email protected]) (2022-01-14)

**Note:** Version bump only for package @mountain-ui/icons

## [0.1.32](https://github.com/tonyghiani/mountain-ui/compare/@mountain-ui/[email protected]...@mountain-ui/[email protected]) (2022-01-14)

**Note:** Version bump only for package @mountain-ui/icons

## [0.1.31](https://github.com/tonyghiani/mountain-ui/compare/@mountain-ui/[email protected]...@mountain-ui/[email protected]) (2022-01-13)

**Note:** Version bump only for package @mountain-ui/icons

## [0.1.30](https://github.com/tonyghiani/mountain-ui/compare/@mountain-ui/[email protected]...@mountain-ui/[email protected]) (2021-12-27)

**Note:** Version bump only for package @mountain-ui/icons

## [0.1.29](https://github.com/tonyghiani/mountain-ui/compare/@mountain-ui/[email protected]...@mountain-ui/[email protected]) (2021-12-26)

**Note:** Version bump only for package @mountain-ui/icons

## [0.1.28](https://github.com/tonyghiani/mountain-ui/compare/@mountain-ui/[email protected]...@mountain-ui/[email protected]) (2021-12-26)

**Note:** Version bump only for package @mountain-ui/icons

## [0.1.27](https://github.com/tonyghiani/mountain-ui/compare/@mountain-ui/[email protected]...@mountain-ui/[email protected]) (2021-12-14)

**Note:** Version bump only for package @mountain-ui/icons

## [0.1.26](https://github.com/tonyghiani/mountain-ui/compare/@mountain-ui/[email protected]...@mountain-ui/[email protected]) (2021-12-08)

**Note:** Version bump only for package @mountain-ui/icons

## [0.1.25](https://github.com/tonyghiani/mountain-ui/compare/@mountain-ui/[email protected]...@mountain-ui/[email protected]) (2021-11-17)

**Note:** Version bump only for package @mountain-ui/icons

## [0.1.24](https://github.com/tonyghiani/mountain-ui/compare/@mountain-ui/[email protected]...@mountain-ui/[email protected]) (2021-11-17)

**Note:** Version bump only for package @mountain-ui/icons

## [0.1.23](https://github.com/tonyghiani/mountain-ui/compare/@mountain-ui/[email protected]...@mountain-ui/[email protected]) (2021-11-15)

**Note:** Version bump only for package @mountain-ui/icons

## [0.1.22](https://github.com/tonyghiani/mountain-ui/compare/@mountain-ui/[email protected]...@mountain-ui/[email protected]) (2021-11-14)

**Note:** Version bump only for package @mountain-ui/icons

## [0.1.21](https://github.com/tonyghiani/mountain-ui/compare/@mountain-ui/[email protected]...@mountain-ui/[email protected]) (2021-11-14)

**Note:** Version bump only for package @mountain-ui/icons

## [0.1.20](https://github.com/tonyghiani/mountain-ui/compare/@mountain-ui/[email protected]...@mountain-ui/[email protected]) (2021-11-12)

**Note:** Version bump only for package @mountain-ui/icons

## [0.1.19](https://github.com/tonyghiani/mountain-ui/compare/@mountain-ui/[email protected]...@mountain-ui/[email protected]) (2021-11-12)

**Note:** Version bump only for package @mountain-ui/icons

## [0.1.18](https://github.com/tonyghiani/mountain-ui/compare/@mountain-ui/[email protected]...@mountain-ui/[email protected]) (2021-11-12)

**Note:** Version bump only for package @mountain-ui/icons

## [0.1.17](https://github.com/tonyghiani/mountain-ui/compare/@mountain-ui/[email protected]...@mountain-ui/[email protected]) (2021-11-01)

**Note:** Version bump only for package @mountain-ui/icons

## [0.1.16](https://github.com/tonyghiani/mountain-ui/compare/@mountain-ui/[email protected]...@mountain-ui/[email protected]) (2021-10-31)

**Note:** Version bump only for package @mountain-ui/icons

## [0.1.15](https://github.com/tonyghiani/mountain-ui/compare/@mountain-ui/[email protected]...@mountain-ui/[email protected]) (2021-10-12)

**Note:** Version bump only for package @mountain-ui/icons

## [0.1.14](https://github.com/tonyghiani/mountain-ui/compare/@mountain-ui/[email protected]...@mountain-ui/[email protected]) (2021-09-28)

**Note:** Version bump only for package @mountain-ui/icons

## [0.1.13](https://github.com/tonyghiani/mountain-ui/compare/@mountain-ui/[email protected]...@mountain-ui/[email protected]) (2021-09-28)

**Note:** Version bump only for package @mountain-ui/icons

## [0.1.12](https://github.com/tonyghiani/mountain-ui/compare/@mountain-ui/[email protected]...@mountain-ui/[email protected]) (2021-09-28)

**Note:** Version bump only for package @mountain-ui/icons

## [0.1.11](https://github.com/tonyghiani/mountain-ui/compare/@mountain-ui/[email protected]...@mountain-ui/[email protected]) (2021-08-04)

**Note:** Version bump only for package @mountain-ui/icons

## [0.1.10](https://github.com/tonyghiani/mountain-ui/compare/@mountain-ui/[email protected]...@mountain-ui/[email protected]) (2021-08-03)

**Note:** Version bump only for package @mountain-ui/icons

## [0.1.9](https://github.com/tonyghiani/mountain-ui/compare/@mountain-ui/[email protected]...@mountain-ui/[email protected]) (2021-07-07)

**Note:** Version bump only for package @mountain-ui/icons

## [0.1.8](https://github.com/tonyghiani/mountain-ui/compare/@mountain-ui/[email protected]...@mountain-ui/[email protected]) (2021-07-07)

**Note:** Version bump only for package @mountain-ui/icons

## [0.1.7](https://github.com/tonyghiani/mountain-ui/compare/@mountain-ui/[email protected]...@mountain-ui/[email protected]) (2021-05-21)

**Note:** Version bump only for package @mountain-ui/icons

## [0.1.6](https://github.com/tonyghiani/mountain-ui/compare/@mountain-ui/[email protected]...@mountain-ui/[email protected]) (2021-05-18)

**Note:** Version bump only for package @mountain-ui/icons

## [0.1.5](https://github.com/tonyghiani/mountain-ui/compare/@mountain-ui/[email protected]...@mountain-ui/[email protected]) (2021-05-13)

**Note:** Version bump only for package @mountain-ui/icons

## [0.1.4](https://github.com/tonyghiani/mountain-ui/compare/@mountain-ui/[email protected]...@mountain-ui/[email protected]) (2021-04-28)

**Note:** Version bump only for package @mountain-ui/icons

## [0.1.3](https://github.com/tonyghiani/mountain-ui/compare/@mountain-ui/[email protected]...@mountain-ui/[email protected]) (2021-04-23)

**Note:** Version bump only for package @mountain-ui/icons

## [0.1.2](https://github.com/tonyghiani/mountain-ui/compare/@mountain-ui/[email protected]...@mountain-ui/[email protected]) (2021-04-23)

**Note:** Version bump only for package @mountain-ui/icons

## [0.1.1](https://github.com/tonyghiani/mountain-ui/compare/@mountain-ui/[email protected]...@mountain-ui/[email protected]) (2021-04-23)

### Bug Fixes

- **icons:** 🐛 match dep version ([8774e8f](https://github.com/tonyghiani/mountain-ui/commit/8774e8f696890795e3696023df929835f0d48568))

# 0.1.0 (2021-04-23)

### Bug Fixes

- **react-components:** 🐛 remove dependency cycle ([fbe1964](https://github.com/tonyghiani/mountain-ui/commit/fbe1964d15e964b12053ff41db749ee151da0699))

### Features

- **icons:** 🎸 add icon assets ([2e5f1f1](https://github.com/tonyghiani/mountain-ui/commit/2e5f1f1c75a24c7da9b20a533f56fdec0234444a))
- **icons:** 🎸 add icon pack ([fc53eb6](https://github.com/tonyghiani/mountain-ui/commit/fc53eb6d31014bb7ed5b1e3186f0178c3a88a1ad))
- **icons:** 🎸 add utils to convert icons ([52ebc89](https://github.com/tonyghiani/mountain-ui/commit/52ebc89a85a6014af09c83d311e26822443429d3))
11 changes: 11 additions & 0 deletions packages/icons/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# `icons`

> TODO: description
## Usage

```
const icons = require('icons');
// TODO: DEMONSTRATE API
```
1 change: 1 addition & 0 deletions packages/icons/assets/0-plus.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading

0 comments on commit 75214e8

Please sign in to comment.