Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: eleven-labs/design-system
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.5.4
Choose a base ref
...
head repository: eleven-labs/design-system
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Apr 9, 2023

  1. Copy the full SHA
    00894ae View commit details

Commits on Apr 11, 2023

  1. Copy the full SHA
    a1920c5 View commit details

Commits on Jun 21, 2023

  1. Copy the full SHA
    50c5881 View commit details
  2. feat: add github icon (#47)

    fpasquet authored Jun 21, 2023
    Copy the full SHA
    483f863 View commit details

Commits on Oct 18, 2023

  1. feat: add tuto icon (#48)

    fpasquet authored Oct 18, 2023
    Copy the full SHA
    a280261 View commit details

Commits on Oct 26, 2023

  1. Copy the full SHA
    aa85cad View commit details

Commits on Nov 6, 2023

  1. fix: css of link (#50)

    fpasquet authored Nov 6, 2023
    Copy the full SHA
    03b4dde View commit details

Commits on Jan 2, 2024

  1. Copy the full SHA
    91eb164 View commit details
  2. Copy the full SHA
    e2cf5bc View commit details
  3. Copy the full SHA
    a70fb48 View commit details

Commits on Jan 4, 2024

  1. Copy the full SHA
    031bca9 View commit details

Commits on Jan 8, 2024

  1. Copy the full SHA
    d1d4b83 View commit details

Commits on Jan 16, 2024

  1. Copy the full SHA
    454331b View commit details

Commits on Jan 17, 2024

  1. fix: css mobile first (#57)

    fpasquet authored Jan 17, 2024
    Copy the full SHA
    1bd83be View commit details

Commits on Jan 19, 2024

  1. Copy the full SHA
    3c38784 View commit details
  2. Copy the full SHA
    30fa17d View commit details

Commits on Jan 29, 2024

  1. Copy the full SHA
    5578d8c View commit details
  2. Copy the full SHA
    3b0b367 View commit details
  3. Copy the full SHA
    8e07f05 View commit details
  4. Copy the full SHA
    43851a3 View commit details

Commits on Jan 30, 2024

  1. Copy the full SHA
    8902320 View commit details
  2. Copy the full SHA
    b981396 View commit details
  3. Copy the full SHA
    263bff4 View commit details
  4. Copy the full SHA
    6e8efe5 View commit details

Commits on Jan 31, 2024

  1. fix: post cover (#68)

    fpasquet authored Jan 31, 2024
    Copy the full SHA
    9360377 View commit details

Commits on Mar 5, 2024

  1. fix: feedback ui (#70)

    fpasquet authored Mar 5, 2024
    Copy the full SHA
    4c85271 View commit details
  2. Prepare 0.30.1 (#71)

    fpasquet authored Mar 5, 2024
    Copy the full SHA
    3eb0cfc View commit details

Commits on Mar 8, 2024

  1. Copy the full SHA
    0f2e217 View commit details
  2. Copy the full SHA
    ed1fb33 View commit details
  3. Copy the full SHA
    a115aa9 View commit details

Commits on Mar 9, 2024

  1. Copy the full SHA
    fea2942 View commit details
  2. Copy the full SHA
    eae00d6 View commit details

Commits on Mar 12, 2024

  1. fix: feedback ui (#76)

    fpasquet authored Mar 12, 2024
    Copy the full SHA
    ce82f9c View commit details

Commits on Mar 26, 2024

  1. Copy the full SHA
    fe1b5b2 View commit details

Commits on Mar 28, 2024

  1. Copy the full SHA
    b8637f3 View commit details

Commits on Apr 10, 2024

  1. Copy the full SHA
    8d4a868 View commit details

Commits on Apr 11, 2024

  1. Copy the full SHA
    84f8e3d View commit details

Commits on Apr 16, 2024

  1. Copy the full SHA
    cb88676 View commit details
  2. fix: add ui for table (#82)

    fpasquet authored Apr 16, 2024
    Copy the full SHA
    672d6b7 View commit details

Commits on May 3, 2024

  1. Copy the full SHA
    aec8b57 View commit details
  2. Copy the full SHA
    3166f41 View commit details
  3. release 0.37.3

    fpasquet committed May 3, 2024
    Copy the full SHA
    724e78e View commit details
Showing 397 changed files with 29,487 additions and 12,956 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
1 change: 0 additions & 1 deletion .env

This file was deleted.

4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
vite.config.ts
vitest.config.ts
src/constants/tokenVariables.ts
src/constants/tokenVariablesDesktop.ts
src/components/Atoms/Svgs
bin
13 changes: 12 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
{
"extends": "@elevenlabs/eslint-config"
"env": {
"jest": true
},
"extends": [
"@eleven-labs/eslint-config/typescript",
"@eleven-labs/eslint-config/react"
],
"rules": {
"unicorn/prevent-abbreviations": "off",
"no-unused-vars": "off",
"react/no-unescaped-entities": ["error", {"forbid": [">", "}"]}]
}
}
14 changes: 14 additions & 0 deletions .github/actions/restore-npm-cache/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: restore-npm-cache
description: Restore NPM Cache
runs:
using: composite
steps:
- name: Restore NPM Cache
uses: actions/cache@v3
with:
path: "**/node_modules"
key: cache-node-modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: cache-node-modules-npm run
- name: Prepare project
shell: bash
run: npm run prepare
98 changes: 98 additions & 0 deletions .github/workflows/checks-and-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
name: Run checks and tests

on: [pull_request]

jobs:
setup:
uses: ./.github/workflows/setup-nodejs-and-install-dependencies.yml

commitlint:
runs-on: ubuntu-latest
needs: setup
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Restore NPM Cache
uses: ./.github/actions/restore-npm-cache

- name: Lint commit
run: npx commitlint --from=HEAD

eslint:
runs-on: ubuntu-latest
needs: setup
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Restore NPM Cache
uses: ./.github/actions/restore-npm-cache

- name: Lint code
run: npm run lint:es

stylelint:
runs-on: ubuntu-latest
needs: setup
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Restore NPM Cache
uses: ./.github/actions/restore-npm-cache

- name: Lint code
run: npm run lint:style

compile:
runs-on: ubuntu-latest
needs: setup
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Restore NPM Cache
uses: ./.github/actions/restore-npm-cache

- name: Run Compile TypeScript
run: npx tsc

test:
runs-on: ubuntu-latest
needs: setup
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Restore NPM Cache
uses: ./.github/actions/restore-npm-cache

- name: Run Tests
run: npm run test

build:
runs-on: ubuntu-latest
needs: setup
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Restore NPM Cache
uses: ./.github/actions/restore-npm-cache

- name: Build Design System
run: npm run build

build-storybook:
runs-on: ubuntu-latest
needs: setup
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Restore NPM Cache
uses: ./.github/actions/restore-npm-cache

- name: Build Storybook
run: npm run build:storybook
34 changes: 0 additions & 34 deletions .github/workflows/ci.yml

This file was deleted.

29 changes: 14 additions & 15 deletions .github/workflows/deploy-storybook.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,31 @@
name: Build and Deploy Storybook

on:
push:
branches:
- master

jobs:
setup:
uses: ./.github/workflows/setup-nodejs-and-install-dependencies.yml

build-and-deploy-storybook:
runs-on: ubuntu-latest
needs: setup
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install modules
run: yarn install --frozen-lockfile
- name: Checkout Repository
uses: actions/checkout@v4

- name: Restore NPM Cache
uses: ./.github/actions/restore-npm-cache

- name: Build Storybook
run: yarn build:storybook
run: npm run build:storybook

- name: Deploy Storybook
uses: peaceiris/actions-gh-pages@v3
with:
32 changes: 16 additions & 16 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
name: Publish package to NPM

on:
release:
types: [created]

jobs:
setup:
uses: ./.github/workflows/setup-nodejs-and-install-dependencies.yml

publish-package:
runs-on: ubuntu-latest
needs: setup
permissions:
contents: read
packages: write
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install modules
run: yarn install --frozen-lockfile
- name: Checkout Repository
uses: actions/checkout@v4

- name: Restore NPM Cache
uses: ./.github/actions/restore-npm-cache

- name: Build Library
run: yarn build
run: npm run build

- uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
scope: '@eleven-labs'

- name: Publish package
run: yarn publish --access public
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
40 changes: 40 additions & 0 deletions .github/workflows/setup-nodejs-and-install-dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Setup Node.js and install dependencies

on:
workflow_call:
inputs:
node-version:
required: false
description: Node version to setup
type: string
default: 20.x
runner:
required: false
description: Job runner
type: string
default: ubuntu-latest

jobs:
setup-nodejs-and-install-dependencies:
runs-on: ${{ inputs.runner }}

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Setup Node.js ${{ inputs.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
cache: npm

- name: Cache dependencies
uses: actions/cache@v3
id: manager-cache-node-modules
with:
path: "**/node_modules"
key: cache-node-modules-${{ hashFiles('**/package-lock.json') }}

- name: Install dependencies
if: steps.manager-cache-node-modules.outputs.cache-hit != 'true'
run: npm ci
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -2,15 +2,12 @@
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local
coverage

# Editor directories and files
.vscode/*
@@ -24,11 +21,14 @@ dist-ssr
*.sw?

# Custom
reports/*
storybook-static
public/svgs
src/components/Atoms/Svgs
src/styles/_token-custom-properties.scss
src/styles/_token-custom-properties-desktop.scss
src/styles/abstracts/variables/_token-variables.scss
src/styles/abstracts/variables/_variables.scss
src/styles/_fonts.scss
src/constants/tokenVariables.ts
src/constants/tokenVariablesDesktop.ts
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn commitlint --edit
npx commitlint --edit
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn lint-staged
npx lint-staged
2 changes: 1 addition & 1 deletion .storybook/components/Layout/Layout.tsx
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ export const Layout: React.FC<LayoutProps> = ({ title, description, children })
<Canvas>
<main>
{title && (
<Box bg="navy" color="white" px="l" py="xxl">
<Box bg="primary" color="white" px="l" py="xxl">
<Heading as="p" size="xl">
{title}
</Heading>
4 changes: 2 additions & 2 deletions .storybook/components/SystemPropsTable/SystemPropsTable.tsx
Original file line number Diff line number Diff line change
@@ -25,10 +25,10 @@ const getStoryTitleAndDesignTokenLabelByPropName = (
if (Object.keys(spacingSystemProps).includes(propName) || ['gap', 'gapX', 'gapY'].includes(propName)) {
designTokenName = 'spacing';
}
if (['width', 'minWidth', 'maxWidth'].includes(propName)) {
if (['width'].includes(propName)) {
designTokenName = 'width';
}
if (['height', 'minHeight', 'maxHeight'].includes(propName)) {
if (['height'].includes(propName)) {
designTokenName = 'height';
}

2 changes: 1 addition & 1 deletion .storybook/components/Table/Table.tsx
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@ export const Table: React.FC<TableProps> = ({ title, columns, rows, ...boxProps
} as React.CSSProperties
}
>
<Box py="xs" bg="ultra-light-grey" color="grey" className="storybook-table__head">
<Box py="xs" bg="secondary" color="primary-light" className="storybook-table__head">
{columns.map((column) => (
<Box key={column.name} px="xxs">
{column.label}
Loading