paris 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/package.json +6 -1
  3. package/.changeset/README.md +0 -8
  4. package/.changeset/config.json +0 -11
  5. package/.eslintrc.json +0 -22
  6. package/.github/workflows/publish.yml +0 -54
  7. package/.husky/pre-commit +0 -2
  8. package/.idea/inspectionProfiles/Project_Default.xml +0 -7
  9. package/.idea/jsLibraryMappings.xml +0 -6
  10. package/.idea/jsLinters/eslint.xml +0 -6
  11. package/.idea/modules.xml +0 -8
  12. package/.idea/paris.iml +0 -13
  13. package/.idea/vcs.xml +0 -6
  14. package/.idea/watcherTasks.xml +0 -4
  15. package/.storybook/main.ts +0 -43
  16. package/.storybook/manager-head.html +0 -16
  17. package/.storybook/manager.ts +0 -6
  18. package/.storybook/preview.ts +0 -74
  19. package/.storybook/themes.ts +0 -30
  20. package/cat +0 -2
  21. package/global.d.ts +0 -2
  22. package/next.config.js +0 -6
  23. package/public/favicon.ico +0 -0
  24. package/public/fira/fira_code.css +0 -48
  25. package/public/fira/woff/FiraCode-Bold.woff +0 -0
  26. package/public/fira/woff/FiraCode-Light.woff +0 -0
  27. package/public/fira/woff/FiraCode-Medium.woff +0 -0
  28. package/public/fira/woff/FiraCode-Regular.woff +0 -0
  29. package/public/fira/woff/FiraCode-SemiBold.woff +0 -0
  30. package/public/fira/woff/FiraCode-VF.woff +0 -0
  31. package/public/fira/woff2/FiraCode-Bold.woff2 +0 -0
  32. package/public/fira/woff2/FiraCode-Light.woff2 +0 -0
  33. package/public/fira/woff2/FiraCode-Medium.woff2 +0 -0
  34. package/public/fira/woff2/FiraCode-Regular.woff2 +0 -0
  35. package/public/fira/woff2/FiraCode-SemiBold.woff2 +0 -0
  36. package/public/fira/woff2/FiraCode-VF.woff2 +0 -0
  37. package/public/graphik/GraphikSS-Black.woff +0 -0
  38. package/public/graphik/GraphikSS-Black.woff2 +0 -0
  39. package/public/graphik/GraphikSS-BlackItalic.woff +0 -0
  40. package/public/graphik/GraphikSS-BlackItalic.woff2 +0 -0
  41. package/public/graphik/GraphikSS-Bold.woff +0 -0
  42. package/public/graphik/GraphikSS-Bold.woff2 +0 -0
  43. package/public/graphik/GraphikSS-BoldItalic.woff +0 -0
  44. package/public/graphik/GraphikSS-BoldItalic.woff2 +0 -0
  45. package/public/graphik/GraphikSS-Extralight.woff +0 -0
  46. package/public/graphik/GraphikSS-Extralight.woff2 +0 -0
  47. package/public/graphik/GraphikSS-ExtralightItalic.woff +0 -0
  48. package/public/graphik/GraphikSS-ExtralightItalic.woff2 +0 -0
  49. package/public/graphik/GraphikSS-Light.woff +0 -0
  50. package/public/graphik/GraphikSS-Light.woff2 +0 -0
  51. package/public/graphik/GraphikSS-LightItalic.woff +0 -0
  52. package/public/graphik/GraphikSS-LightItalic.woff2 +0 -0
  53. package/public/graphik/GraphikSS-Medium.woff +0 -0
  54. package/public/graphik/GraphikSS-Medium.woff2 +0 -0
  55. package/public/graphik/GraphikSS-MediumItalic.woff +0 -0
  56. package/public/graphik/GraphikSS-MediumItalic.woff2 +0 -0
  57. package/public/graphik/GraphikSS-Regular.woff +0 -0
  58. package/public/graphik/GraphikSS-Regular.woff2 +0 -0
  59. package/public/graphik/GraphikSS-RegularItalic.woff +0 -0
  60. package/public/graphik/GraphikSS-RegularItalic.woff2 +0 -0
  61. package/public/graphik/GraphikSS-Semibold.woff +0 -0
  62. package/public/graphik/GraphikSS-Semibold.woff2 +0 -0
  63. package/public/graphik/GraphikSS-SemiboldItalic.woff +0 -0
  64. package/public/graphik/GraphikSS-SemiboldItalic.woff2 +0 -0
  65. package/public/graphik/GraphikSS-Super.woff +0 -0
  66. package/public/graphik/GraphikSS-Super.woff2 +0 -0
  67. package/public/graphik/GraphikSS-SuperItalic.woff +0 -0
  68. package/public/graphik/GraphikSS-SuperItalic.woff2 +0 -0
  69. package/public/graphik/GraphikSS-Thin.woff +0 -0
  70. package/public/graphik/GraphikSS-Thin.woff2 +0 -0
  71. package/public/graphik/GraphikSS-ThinItalic.woff +0 -0
  72. package/public/graphik/GraphikSS-ThinItalic.woff2 +0 -0
  73. package/public/graphik/graphik.css +0 -174
  74. package/public/next.svg +0 -1
  75. package/public/pte.css +0 -219
  76. package/public/thirteen.svg +0 -1
  77. package/public/vercel.svg +0 -1
  78. package/scripts/createComponent.js +0 -100
  79. package/scripts/generateEntry.js +0 -35
  80. package/scripts/text.ts +0 -118
  81. package/tsconfig.json +0 -27
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # paris
2
2
 
3
+ ## 0.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 0387f1d: Exclude unnecessary files from NPM package
8
+
3
9
  ## 0.2.1
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -2,13 +2,18 @@
2
2
  "name": "paris",
3
3
  "author": "Sanil Chawla <sanil@slingshot.fm> (https://sanil.co)",
4
4
  "description": "Paris is Slingshot's React design system. It's a collection of reusable components, design tokens, and guidelines that help us build consistent, accessible, and performant user interfaces.",
5
- "version": "0.2.1",
5
+ "version": "0.2.2",
6
6
  "homepage": "https://paris.slingshot.fm",
7
7
  "license": "MIT",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "https://github.com/slingshot/paris"
11
11
  },
12
+ "files": [
13
+ "src",
14
+ "README.md",
15
+ "CHANGELOG.md"
16
+ ],
12
17
  "keywords": [
13
18
  "react",
14
19
  "design system",
@@ -1,8 +0,0 @@
1
- # Changesets
2
-
3
- Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4
- with multi-package repos, or single-package repos to help you version and publish your code. You can
5
- find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6
-
7
- We have a quick list of common questions to get you started engaging with this project in
8
- [our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
@@ -1,11 +0,0 @@
1
- {
2
- "$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json",
3
- "changelog": "@changesets/cli/changelog",
4
- "commit": false,
5
- "fixed": [],
6
- "linked": [],
7
- "access": "public",
8
- "baseBranch": "main",
9
- "updateInternalDependencies": "patch",
10
- "ignore": []
11
- }
package/.eslintrc.json DELETED
@@ -1,22 +0,0 @@
1
- {
2
- "root": true,
3
- "extends": [
4
- "@ssh",
5
- "plugin:storybook/recommended",
6
- "plugin:css/recommended"
7
- ],
8
- "plugins": [
9
- "css"
10
- ],
11
- "parserOptions": {
12
- "project": "./tsconfig.json"
13
- },
14
- "ignorePatterns": [
15
- "dist/",
16
- "node_modules/"
17
- ],
18
- "rules": {
19
- "react/button-has-type": "off",
20
- "react/jsx-props-no-spreading": "off"
21
- }
22
- }
@@ -1,54 +0,0 @@
1
- name: Publish
2
- on:
3
- push:
4
- branches:
5
- - "main"
6
-
7
- concurrency: ${{ github.workflow }}-${{ github.ref }}
8
-
9
- jobs:
10
- release:
11
- runs-on: ubuntu-latest
12
- steps:
13
- - name: Checkout
14
- uses: actions/checkout@v3
15
-
16
- - name: Install Node.js
17
- uses: actions/setup-node@v3
18
- with:
19
- node-version: 18.x
20
-
21
- - uses: pnpm/action-setup@v2
22
- name: Install pnpm
23
- id: pnpm-install
24
- with:
25
- version: ^8.x
26
- run_install: false
27
-
28
- - name: Get pnpm store directory
29
- id: pnpm-cache
30
- shell: bash
31
- run: |
32
- echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
33
-
34
- - uses: actions/cache@v3
35
- name: Setup pnpm cache
36
- with:
37
- path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
38
- key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
39
- restore-keys: |
40
- ${{ runner.os }}-pnpm-store-
41
-
42
- - name: Install dependencies
43
- run: pnpm install
44
-
45
- - name: Create Release Pull Request or Publish
46
- id: changesets
47
- uses: changesets/action@v1
48
- with:
49
- publish: pnpm release
50
- title: "chore(release): publish"
51
- commit: "chore(release): publish"
52
- env:
53
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
package/.husky/pre-commit DELETED
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env sh
2
- . "$(dirname -- "$0")/_/husky.sh"
@@ -1,7 +0,0 @@
1
- <component name="InspectionProjectProfileManager">
2
- <profile version="1.0">
3
- <option name="myName" value="Project Default" />
4
- <inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
5
- <inspection_tool class="JSLastCommaInObjectLiteral" enabled="false" level="WARNING" enabled_by_default="false" />
6
- </profile>
7
- </component>
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="JavaScriptLibraryMappings">
4
- <includedPredefinedLibrary name="Node.js Core" />
5
- </component>
6
- </project>
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="EslintConfiguration">
4
- <option name="fix-on-save" value="true" />
5
- </component>
6
- </project>
package/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/paris.iml" filepath="$PROJECT_DIR$/.idea/paris.iml" />
6
- </modules>
7
- </component>
8
- </project>
package/.idea/paris.iml DELETED
@@ -1,13 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="WEB_MODULE" version="4">
3
- <component name="NewModuleRootManager">
4
- <content url="file://$MODULE_DIR$">
5
- <excludeFolder url="file://$MODULE_DIR$/.tmp" />
6
- <excludeFolder url="file://$MODULE_DIR$/temp" />
7
- <excludeFolder url="file://$MODULE_DIR$/tmp" />
8
- <excludeFolder url="file://$MODULE_DIR$/storybook-static" />
9
- </content>
10
- <orderEntry type="inheritedJdk" />
11
- <orderEntry type="sourceFolder" forTests="false" />
12
- </component>
13
- </module>
package/.idea/vcs.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="" vcs="Git" />
5
- </component>
6
- </project>
@@ -1,4 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectTasksOptions" suppressed-tasks="SCSS" />
4
- </project>
@@ -1,43 +0,0 @@
1
- import type { StorybookConfig } from "@storybook/nextjs";
2
- import { TsconfigPathsPlugin } from 'tsconfig-paths-webpack-plugin';
3
-
4
- const config: StorybookConfig = {
5
- stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
6
- addons: [
7
- "@storybook/addon-links",
8
- "@storybook/addon-essentials",
9
- "@storybook/addon-interactions",
10
- "storybook-dark-mode",
11
- ],
12
- framework: {
13
- name: "@storybook/nextjs",
14
- options: {},
15
- },
16
- docs: {
17
- autodocs: "tag",
18
- },
19
- staticDirs: [
20
- '../public'
21
- ],
22
- previewHead: (head) => (
23
- `${head}
24
- <style>
25
- body {
26
- color: var(--pte-colors-contentPrimary);
27
- background-color: var(--pte-colors-backgroundPrimary);
28
- transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
29
- }
30
-
31
- h2#stories {
32
- letter-spacing: var(--pte-typography-styles-labelMedium-letterSpacing);
33
- }
34
- </style>`
35
- ),
36
- webpackFinal: async (config) => {
37
- config.resolve.plugins = [
38
- new TsconfigPathsPlugin()
39
- ];
40
- return config;
41
- }
42
- };
43
- export default config;
@@ -1,16 +0,0 @@
1
- <link rel="stylesheet" href="/graphik/graphik.css" />
2
- <link rel="stylesheet" href="/fira/fira_code.css" />
3
-
4
- <style>
5
- .sidebar-subheading button {
6
- letter-spacing: 0.1rem !important;
7
- }
8
-
9
- * {
10
- transition: color 0.2s ease, background-color 0.2s ease;
11
- }
12
-
13
- #storybook-explorer-searchfield {
14
- border-radius: 0;
15
- }
16
- </style>
@@ -1,6 +0,0 @@
1
- import { addons } from '@storybook/manager-api';
2
- import { Light, Dark } from './themes';
3
-
4
- addons.setConfig({
5
- theme: Light,
6
- });
@@ -1,74 +0,0 @@
1
- import type { Preview } from '@storybook/react';
2
- import { Dark, Light } from './themes';
3
- import { DocsContainer } from '@storybook/blocks';
4
- import { useDarkMode } from 'storybook-dark-mode';
5
- import { createElement, useEffect } from 'react';
6
- import { injectTheme, LightTheme, DarkTheme } from '../src/stories/theme';
7
-
8
- import '../public/graphik/graphik.css';
9
- import '../public/fira/fira_code.css';
10
- import '../src/styles/globals.css';
11
- import '../src/styles/tw-preflight.css';
12
-
13
- const Wrapper = (props: any) => {
14
- const isDark = useDarkMode();
15
-
16
- useEffect(() => {
17
- injectTheme(!isDark ? LightTheme : DarkTheme);
18
- }, [isDark]);
19
-
20
- return props.children;
21
- }
22
-
23
- export const decorators = [
24
- (renderStory) => createElement(Wrapper, {}, renderStory()),
25
- ];
26
-
27
- const preview: Preview = {
28
- parameters: {
29
- actions: { argTypesRegex: "^on[A-Z].*" },
30
- backgrounds: { disable: true },
31
- controls: {
32
- matchers: {
33
- color: /(background|color)$/i,
34
- date: /Date$/,
35
- },
36
- },
37
- docs: {
38
- container: (context: any) => {
39
- const isDark = useDarkMode();
40
-
41
- const props = {
42
- ...context,
43
- theme: isDark ? Dark : Light,
44
- };
45
-
46
- useEffect(() => {
47
- injectTheme(!isDark ? LightTheme : DarkTheme);
48
- }, [isDark]);
49
-
50
- return createElement(DocsContainer, props);
51
- },
52
- },
53
- options: {
54
- storySort: {
55
- order: [
56
- 'Welcome',
57
- 'Tokens',
58
- 'Inputs',
59
- 'Content',
60
- 'Uncategorized'
61
- ],
62
- }
63
- },
64
- darkMode: {
65
- stylePreview: true,
66
- // Override the default dark theme
67
- dark: Dark,
68
- // Override the default light theme
69
- light: Light
70
- }
71
- },
72
- };
73
-
74
- export default preview;
@@ -1,30 +0,0 @@
1
- import { create, ThemeVars } from '@storybook/theming';
2
- import { LightTheme, DarkTheme, pvar } from '../src/stories/theme';
3
-
4
- /**
5
- * Shared theme variables across light and dark themes.
6
- */
7
- const sharedConfig: Partial<ThemeVars> = {
8
- brandTitle: 'Paris',
9
- brandUrl: 'https://slingshot.fm',
10
- brandTarget: '_blank',
11
- colorSecondary: '#FB46BE',
12
- fontBase: '"Graphik Web", sans-serif',
13
- fontCode: '"Fira Code VF", monospace',
14
- inputBorderRadius: 0,
15
- };
16
-
17
- export const Light = create({
18
- ...sharedConfig,
19
- base: 'light',
20
- brandImage: 'https://fast.slingshot.fm/sling/logo/paris-sb.png',
21
- appBg: LightTheme.colors.backgroundPrimary,
22
- });
23
-
24
- export const Dark = create({
25
- ...sharedConfig,
26
- base: 'dark',
27
- brandImage: 'https://fast.slingshot.fm/sling/logo/paris-sb-white.png',
28
- appBg: DarkTheme.colors.backgroundPrimary,
29
- appContentBg: DarkTheme.colors.backgroundPrimary,
30
- });
package/cat DELETED
@@ -1,2 +0,0 @@
1
- /Users/sanil/Projects/Slingshot/paris/node_modules/.bin/pte
2
- /Users/sanil/Projects/Slingshot/paris/node_modules/.bin/pte
package/global.d.ts DELETED
@@ -1,2 +0,0 @@
1
- declare module '*.module.css';
2
- declare module '*.module.scss';
package/next.config.js DELETED
@@ -1,6 +0,0 @@
1
- /** @type {import('next').NextConfig} */
2
- const nextConfig = {
3
- reactStrictMode: true,
4
- };
5
-
6
- module.exports = nextConfig;
Binary file
@@ -1,48 +0,0 @@
1
- @font-face {
2
- font-family: 'Fira Code';
3
- src: url('woff2/FiraCode-Light.woff2') format('woff2'),
4
- url("woff/FiraCode-Light.woff") format("woff");
5
- font-weight: 300;
6
- font-style: normal;
7
- }
8
-
9
- @font-face {
10
- font-family: 'Fira Code';
11
- src: url('woff2/FiraCode-Regular.woff2') format('woff2'),
12
- url("woff/FiraCode-Regular.woff") format("woff");
13
- font-weight: 400;
14
- font-style: normal;
15
- }
16
-
17
- @font-face {
18
- font-family: 'Fira Code';
19
- src: url('woff2/FiraCode-Medium.woff2') format('woff2'),
20
- url("woff/FiraCode-Medium.woff") format("woff");
21
- font-weight: 500;
22
- font-style: normal;
23
- }
24
-
25
- @font-face {
26
- font-family: 'Fira Code';
27
- src: url('woff2/FiraCode-SemiBold.woff2') format('woff2'),
28
- url("woff/FiraCode-SemiBold.woff") format("woff");
29
- font-weight: 600;
30
- font-style: normal;
31
- }
32
-
33
- @font-face {
34
- font-family: 'Fira Code';
35
- src: url('woff2/FiraCode-Bold.woff2') format('woff2'),
36
- url("woff/FiraCode-Bold.woff") format("woff");
37
- font-weight: 700;
38
- font-style: normal;
39
- }
40
-
41
- @font-face {
42
- font-family: 'Fira Code VF';
43
- src: url('woff2/FiraCode-VF.woff2') format('woff2-variations'),
44
- url('woff/FiraCode-VF.woff') format('woff-variations');
45
- /* font-weight requires a range: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide#Using_a_variable_font_font-face_changes */
46
- font-weight: 300 700;
47
- font-style: normal;
48
- }
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file