Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDS v3 #208

Merged
merged 60 commits into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
1bee06f
v3 colors (#206)
quietbits Jan 17, 2024
9f5355b
V3 icons and logos (#207)
quietbits Jan 17, 2024
e224f68
V3 Button (#209)
quietbits Jan 17, 2024
8ed39cc
Badge (#210)
quietbits Jan 17, 2024
a34c3f4
Notification (#211)
quietbits Jan 18, 2024
a5ade81
Banner (#212)
quietbits Jan 18, 2024
deee0bf
Tooltip (#213)
quietbits Jan 19, 2024
4baf951
Update CSS vars + Toggle + ThemeSwitch (#214)
quietbits Jan 23, 2024
73b5ab1
SDS web: update colors (#215)
quietbits Jan 23, 2024
a7e960f
V3 Checkbox and Radio button updated (#216)
quietbits Jan 26, 2024
b2ae39a
V3 Textarea updated (#217)
quietbits Jan 26, 2024
62abd62
V3 Asset, Avatar, and Profile (#218)
quietbits Feb 5, 2024
619e1fa
V3 Alert + new variants for Link (#219)
quietbits Feb 6, 2024
2cfe232
V3 Modal (#220)
quietbits Feb 8, 2024
2e5d7e8
Support custom anchor elements (#221)
quietbits Feb 12, 2024
6618abf
Bump SDS to v2.0.0-beta.1
quietbits Feb 12, 2024
9d7b160
V3 Select (#222)
quietbits Feb 23, 2024
1b86b32
V3 Input (#223)
quietbits Feb 26, 2024
e986d98
Bump SDS to v2.0.0-beta.1
quietbits Feb 26, 2024
70d1215
Fix Input copy action in form
quietbits Feb 26, 2024
0ae9848
Bump SDS to v2.0.0-beta.3
quietbits Feb 26, 2024
22816a6
Bump SDS to v2.0.0-beta.4
quietbits Feb 26, 2024
74da95a
Update Text component (#224)
quietbits Feb 27, 2024
3d5c988
Bump SDS to v2.0.0-beta.5
quietbits Feb 27, 2024
6cc787e
Add Label suffix (#226)
quietbits Mar 7, 2024
e28ee95
Bump SDS to v2.0.0-beta.6
quietbits Mar 7, 2024
20e0894
Add lime and sky accent colors (#227)
quietbits Mar 13, 2024
0cabefc
Bump SDS to v2.0.0-beta.7
quietbits Mar 13, 2024
1979531
V3 Updated Alert and Notification background color (#228)
quietbits Mar 20, 2024
150b7c8
Bump SDS to v2.0.0-beta.8
quietbits Mar 20, 2024
a70ecfe
V3 Label: update color (#231)
quietbits Mar 26, 2024
ae2feb6
V3 CopyText updated (#232)
quietbits Mar 27, 2024
9f34e21
V3 Update Modal (#234)
quietbits Mar 27, 2024
7bb8656
V3 Use Node v20 + updated dependencies (#235)
quietbits Mar 29, 2024
6c77f53
Fix Textarea outline
quietbits Apr 1, 2024
1014167
Update inputs disabled bg color
quietbits Apr 1, 2024
8eae92e
Bump SDS to v2.0.0-beta.9
quietbits Apr 1, 2024
6936ca9
Accent colors updated + form element success message (#237)
quietbits Apr 15, 2024
165eef8
Bump SDS to v2.0.0-beta.10
quietbits Apr 15, 2024
7af35f4
Textarea copy text button (#238)
quietbits Apr 22, 2024
32dc5bb
Bump SDS to v2.0.0-beta.11
quietbits Apr 22, 2024
a1aa8da
Label info text + updated Tooltip colors (#240)
quietbits Apr 30, 2024
fe09ba0
Bump SDS to v2.0.0-beta.12
quietbits Apr 30, 2024
74dc9c1
Label info link + update Tooltip theme setting (#242)
quietbits Apr 30, 2024
232d848
Bump SDS to v2.0.0-beta.13
quietbits Apr 30, 2024
d9ed1c9
update <textarea/>'s footer to be conditional (#244)
jeesunikim Jun 24, 2024
e9105cb
Update Alert + Button + Floater (#251)
quietbits Jul 26, 2024
c25a257
Bump SDS to v2.0.0-beta.14
quietbits Jul 26, 2024
e00a4fc
Use CopyText in input copy button
quietbits Jul 29, 2024
2a76659
Bump SDS to v2.0.0-beta.15
quietbits Jul 29, 2024
3608637
enable `isFilled` on <Notification/> (#258)
jeesunikim Sep 12, 2024
6f78268
Bump SDS to v2.0.0-beta.16
Sep 12, 2024
470e56f
Code: update line height (#259)
quietbits Sep 27, 2024
48343a2
Fix floater z-index + input and textarea fixes (#260)
quietbits Sep 27, 2024
326ea08
Bump SDS to v2.0.0-beta.17
quietbits Sep 27, 2024
ca2d0ff
Updated dependencies (#261)
quietbits Sep 27, 2024
1404309
Trigger PR Preview
quietbits Nov 6, 2024
dec8428
allow Toggle to be tabbed and add focus styling (#263)
piyalbasu Dec 4, 2024
e223a67
Prep for v3 launch (#267)
quietbits Jan 23, 2025
77151f0
Resolved merge conflicts
quietbits Jan 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
36 changes: 18 additions & 18 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ name: "CodeQL"

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]
schedule:
- cron: '42 14 * * 4'
- cron: "42 14 * * 4"

jobs:
analyze:
Expand All @@ -21,21 +21,21 @@ jobs:
fail-fast: false
matrix:
include:
- language: javascript-typescript
build-mode: none
- language: javascript-typescript
build-mode: none

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

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18.x"
node-version: "20.x"
registry-url: "https://registry.npmjs.org"

- run: yarn install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
- run: yarn install
- run: yarn build
3 changes: 0 additions & 3 deletions .husky/post-merge
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn install-if-package-changed
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn pre-commit
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18
v20
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@ description: "Tooltip is used to display info in a bubble."

```tsx live
<PreviewBlock componentName="Tooltip">
<Tooltip isVisible isContrast triggerEl={<>Tooltip trigger</>}>
Lorem ipsum dolor sit
<Tooltip
isVisible
isContrast
triggerEl={<>Tooltip trigger</>}
title="Lorem ipsum dolor sit"
>
Lorem, ipsum dolor sit amet consectetur adipis elit.
</Tooltip>
</PreviewBlock>
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ description: "Used to trigger an action that is not opening a link."

```tsx live
<PreviewBlock componentName="Button">
<Button variant="primary" size="md">
<Button variant="primary" size="sm">
Button
</Button>
</PreviewBlock>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,11 @@ description: "Copy text component with an optional tooltip."

## Props

<ComponentProps componentName="CopyText" />
<ComponentProps
componentName="CopyText"
relatedType={[
"CopyTextVariantProps",
"CopyTextEllipsisProps",
"CopyTextBaseProps",
]}
/>
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ description: "Button with icon as a label."

```tsx live
<PreviewBlock componentName="IconButton">
<IconButton altText="Default" icon={<Icon.Info />} />
<IconButton altText="Default" icon={<Icon.InfoCircle />} />
</PreviewBlock>
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ description: "Trigger actions like toggle dark mode, close a modal, etc."
```tsx live
<PreviewBlock componentName="NavButton">
<NavButton
icon={<Icon.Menu />}
icon={<Icon.Menu01 />}
id="nav-button"
onClick={() => {}}
title="Menu"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,6 @@ description: "A dialog window with an overlay background."
```tsx live
<PreviewBlock componentName="Modal">
<>
<Modal onClose={() => {}} parentId="preview-block">
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Pariatur eius
beatae sint dolorem, excepturi quos enim, et ullam suscipit voluptates
voluptas accusantium repellendus amet explicabo, iure veritatis aperiam
alias molestiae.
</p>
</Modal>

<Modal onClose={() => {}} parentId="preview-block">
<Modal.Heading>Modal heading</Modal.Heading>
<Modal.Body>
Expand Down Expand Up @@ -49,7 +40,7 @@ description: "A dialog window with an overlay background."
<Button size="sm" variant="primary">
Submit
</Button>
<Button size="sm" variant="secondary">
<Button size="sm" variant="tertiary">
Cancel
</Button>
</Modal.Footer>
Expand Down

This file was deleted.

35 changes: 35 additions & 0 deletions @stellar/design-system-website/docs/components/elements/asset.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
slug: /asset
description: "Asset or asset pair displayed in a circle."
---

# Asset

<ComponentDescription componentName="Asset" />

## Example

```tsx live
<PreviewBlock componentName="Asset">
<Asset
variant="single"
size="sm"
sourceOne={{
image: "https://cryptologos.cc/logos/stellar-xlm-logo.svg?v=024",
altText: "XLM",
}}
/>
</PreviewBlock>
```

## Props

<ComponentProps
componentName="Asset"
relatedType={[
"AssetBaseProps",
"SingleAssetProps",
"MultiAssetProps",
"AssetSource",
]}
/>
13 changes: 10 additions & 3 deletions @stellar/design-system-website/docs/components/elements/avatar.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
slug: /avatar
description: "Identicon as an avatar."
description: "Avatar as an identicon, user initials, or a profile icon."
---

# Avatar
Expand All @@ -11,10 +11,17 @@ description: "Identicon as an avatar."

```tsx live
<PreviewBlock componentName="Avatar">
<Avatar publicAddress="GD4XW236EFCESNO4RKGG5PWML2WNQIJS335XECBW4GRARXKE64VIMOLZ" />
<Avatar size="sm" />
</PreviewBlock>
```

## Props

<ComponentProps componentName="Avatar" />
<ComponentProps
componentName="Avatar"
relatedType={[
"AvatarBaseProps",
"AvatarStellarAddressProps",
"AvatarUserNameProps",
]}
/>
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ description: "Form input for single and multiple selections."

```tsx live
<PreviewBlock componentName="Checkbox">
<Checkbox fieldSize="md" id="checkbox" />
<Checkbox fieldSize="sm" id="checkbox" />
</PreviewBlock>
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ description: "Form input for a single line of text."

```tsx live
<PreviewBlock componentName="Input">
<Input fieldSize="md" id="input" />
<Input fieldSize="sm" id="input" />
</PreviewBlock>
```

## Props

<ComponentProps componentName="Input" />
<ComponentProps componentName="Input" relatedType={["InputCopyButton"]} />
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ description: "Form input for a single selection."

```tsx live
<PreviewBlock componentName="RadioButton">
<RadioButton fieldSize="md" id="radio" label="Label" />
<RadioButton fieldSize="sm" id="radio" label="Label" />
</PreviewBlock>
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ description: "Form input for selecting a single option from a list."

```tsx live
<PreviewBlock componentName="Select">
<Select fieldSize="md" id="select">
<Select fieldSize="sm" id="select">
<option>Option 1</option>
<option>Option 2</option>
</Select>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ description: "Form input for multiple lines of text."

```tsx live
<PreviewBlock componentName="Textarea">
<Textarea fieldSize="md" id="textarea"></Textarea>
<Textarea fieldSize="sm" id="textarea"></Textarea>
</PreviewBlock>
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ description: "Toggle a setting on or off."

```tsx live
<PreviewBlock componentName="Toggle">
<Toggle id="toggle" />
<Toggle id="toggle" fieldSize="sm" />
</PreviewBlock>
```

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
slug: /alert
description: "Display an alert message inline or at the bottom of the page."
---

# Alert

<ComponentDescription componentName="Alert" />

## Example

```tsx live
<PreviewBlock componentName="Alert">
<Alert variant="primary" placement="inline">
Lorem ipsum dolor sit amet consectetur adipisicing elit
</Alert>
</PreviewBlock>
```

## Props

<ComponentProps
componentName="Alert"
relatedType={["AlertBaseProps", "AlertActionButton", "AlertActionLink"]}
/>
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ description: "Display message at the top of the page."

```tsx live
<PreviewBlock componentName="Banner">
<Banner variant="default">Banner message</Banner>
<Banner variant="primary">
Lorem ipsum dolor sit amet consectetur adipisicing elit
</Banner>
</PreviewBlock>
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ description: "Avatar with Stellar address."
<PreviewBlock componentName="Profile">
<Profile
publicAddress="GAVL6PM6TDJ7FBRCRL6GJ5WO2TWSH6ZRNU2HOARQ4RYMDUGSW7XWS57G"
size="md"
size="sm"
/>
</PreviewBlock>
```
Expand Down
Loading
Loading