Skip to content

Commit

Permalink
chore(illustations): migrate banner to illustations package
Browse files Browse the repository at this point in the history
  • Loading branch information
philibea committed Apr 25, 2024
1 parent 733952a commit bf49cc3
Show file tree
Hide file tree
Showing 14 changed files with 395 additions and 360 deletions.
6 changes: 6 additions & 0 deletions .changeset/tender-windows-yawn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@ultraviolet/illustrations": patch
"@ultraviolet/ui": patch
---

migration banner illustrations
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"linux"
],
"scripts": {
"build": "pnpm --filter '@ultraviolet/*' recursive run build",
"build": "pnpm -r --filter '@ultraviolet/*' run build ",
"build:profile": "cross-env PROFILE=true pnpm run build",
"build:storybook": "pnpm run build && STORYBOOK_ENVIRONMENT=production storybook build",
"build:storybook:stats": "pnpm run build:storybook --webpack-stats-json",
Expand All @@ -25,7 +25,7 @@
"start": "STORYBOOK_ENVIRONMENT=development storybook dev -p 6006",
"start:production": "STORYBOOK_ENVIRONMENT=production storybook dev -p 6006",
"format": "prettier --write '**/*.{ts,tsx,js,json,md,mdx}'",
"lint:fix": "pnpm run lint --fix",
"lint:fix": "pnpm run linnrt --fix",
"lint": "eslint --report-unused-disable-directives --cache --ext js,mjs,ts,tsx .",
"prebuild": "shx rm -rf dist",
"test:unit": "LC_ALL=en_US.UTF-8 jest --config .jest/unit.config.ts",
Expand Down
96 changes: 48 additions & 48 deletions packages/illustrations/package.json
Original file line number Diff line number Diff line change
@@ -1,63 +1,63 @@
{
"name": "@ultraviolet/illustrations",
"version": "1.7.0",
"description": "Ultraviolet Illustrations",
"homepage": "https://github.com/scaleway/ultraviolet#readme",
"repository": {
"type": "git",
"url": "https://github.com/scaleway/ultraviolet",
"directory": "packages/illustrations"
},
"scripts": {
"build": "rollup -c rollup.config.mjs",
"typecheck": "tsc --noEmit"
},
"keywords": [
"illustrations",
"ui"
],
"license": "Apache-2.0",
"publishConfig": {
"access": "public"
"devDependencies": {
"@ultraviolet/themes": "1.10.0",
"@ultraviolet/ui": "1.48.0"
},
"engines": {
"node": ">=18.x",
"pnpm": ">=8.0.0"
"pnpm": ">=8.x"
},
"os": [
"darwin",
"linux"
],
"sideEffects": false,
"type": "module",
"exports": {
"./products/*": {
"types": "./dist/products/*/index.d.ts",
"default": "./dist/products/*/index.js"
"./components": {
"default": "./dist/components/*/index.js",
"types": "./dist/components/*/index.d.ts"
},
"./components/*": {
"default": "./dist/components/index.js",
"types": "./dist/components/index.d.ts"
},
"./products": {
"types": "./dist/products/index.d.ts",
"default": "./dist/products/index.js"
"default": "./dist/products/index.js",
"types": "./dist/products/index.d.ts"
},
"./various/*": {
"types": "./dist/various/*/index.d.ts",
"default": "./dist/various/*/index.js"
"./products/*": {
"default": "./dist/products/*/index.js",
"types": "./dist/products/*/index.d.ts"
},
"./various": {
"types": "./dist/various/index.d.ts",
"default": "./dist/various/index.js"
"default": "./dist/various/index.js",
"types": "./dist/various/index.d.ts"
},
"./components/*": {
"types": "./dist/components/index.d.ts",
"default": "./dist/components/index.js"
},
"./components": {
"types": "./dist/components/*/index.d.ts",
"default": "./dist/components/*/index.js"
"./various/*": {
"default": "./dist/various/*/index.js",
"types": "./dist/various/*/index.d.ts"
}
},
"devDependencies": {
"@ultraviolet/ui": "workspace:^",
"@ultraviolet/themes": "workspace:^"
}
}
"homepage": "https://github.com/scaleway/ultraviolet#readme",
"keywords": [
"illustrations",
"ui"
],
"license": "Apache-2.0",
"name": "@ultraviolet/illustrations",
"os": [
"darwin",
"linux"
],
"publishConfig": {
"access": "public"
},
"repository": {
"directory": "packages/illustrations",
"type": "git",
"url": "https://github.com/scaleway/ultraviolet"
},
"scripts": {
"build": "rollup -c rollup.config.mjs",
"typecheck": "tsc --noEmit"
},
"sideEffects": false,
"type": "module",
"version": "1.7.0"
}
9 changes: 8 additions & 1 deletion packages/illustrations/src/__stories__/List.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import styled from '@emotion/styled'
import { Button, Expandable, Snippet, Stack, Text } from '@ultraviolet/ui'
import { useReducer } from 'react'
import {
Button,
Expandable,
Snippet,
Stack,
Text,
// eslint-disable-next-line import/no-relative-packages
} from '../../../ui/src/components'
import * as assets from '../index'

type AssetsModule = Record<string, Record<string, Record<string, string>>>
Expand Down
88 changes: 88 additions & 0 deletions packages/illustrations/src/various/banner/default-image-small.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit bf49cc3

Please sign in to comment.