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

Release/v0.1.0-develop.0 #100

Merged
merged 103 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
103 commits
Select commit Hold shift + click to select a range
20eaa7b
chore: add gitignore
dannyk3941 Feb 1, 2023
2706483
chore: set up styles package as vanilla vite project
dannyk3941 Feb 1, 2023
0c28afc
chore: added extra scripts for linting
dannyk3941 Feb 1, 2023
2b68ae4
chore: change README for development instructions
dannyk3941 Feb 1, 2023
3929b5c
chore: change README instructions
dannyk3941 Feb 1, 2023
ce119d2
chore: add file and edit package.json
dannyk3941 Feb 2, 2023
ba696db
Feature/accordion story (#5)
dgibson666 Feb 10, 2023
db0f535
Reparented js files into subdirectories for storybook (#6)
dgibson666 Feb 13, 2023
c3adae7
chore: create empty story files and move folders (#7)
dannyk3941 Feb 13, 2023
4e2fed9
Fix/root font size (#8)
dannyk3941 Feb 13, 2023
386927c
Feature/font awesome6 package (#9)
dgibson666 Feb 15, 2023
c79e902
Feature/storybook settings (#10)
dannyk3941 Feb 16, 2023
c789ac6
Removed font awesome 6 from dependencies and build (#11)
dgibson666 Feb 17, 2023
fbd2de6
Feature/univ header story (#12)
dannyk3941 Mar 7, 2023
5a825f7
Feat/implement dark mode (#13)
dannyk3941 Mar 9, 2023
0d92a3a
Created Typography story for testing styles of plain HTML (#14)
dgibson666 Mar 16, 2023
0294613
Feature/token css variables (#15)
dgibson666 Mar 16, 2023
d7ee771
Fix header display by removing bullets, refactor CSS and add design t…
dgibson666 Mar 20, 2023
93faba2
Bugfix/switch css (#17)
dgibson666 Mar 21, 2023
d474610
Chore/styling addon (#18)
dannyk3941 Mar 27, 2023
a350452
Feat/decision card story (#19)
dannyk3941 Apr 3, 2023
08b31ff
Bugfix/app header (#20)
dgibson666 Apr 5, 2023
1143218
Feat/expand component stories (#21)
dannyk3941 Apr 6, 2023
2a9e194
Bugfix/segmented button (#22)
dgibson666 Apr 10, 2023
76c0185
Refactor/footer stories (#23)
dannyk3941 Apr 14, 2023
3fade40
Feature/interactive chips (#24)
dgibson666 Apr 14, 2023
4006d96
Fix/consolidate buttons links (#26)
dannyk3941 Apr 26, 2023
3617d69
Chore/more cleanup (#27)
dannyk3941 Apr 27, 2023
a030584
Bugfix/banner (#25)
dgibson666 May 2, 2023
a6835a1
Fix/input groups (#28)
dannyk3941 May 5, 2023
8efe09e
chore: change package name to vanilla, update commands and readme (#29)
dannyk3941 May 8, 2023
d415c8c
Bugfix/segmentedbutton misc (#30)
dgibson666 May 8, 2023
5963a40
Fix/form control updates (#31)
dannyk3941 May 16, 2023
078aeb0
Feature/tabs (#32)
dgibson666 May 23, 2023
349aee9
fix: update accordion content and css (#33)
dannyk3941 May 30, 2023
32e9ac5
Feat/select element (#34)
dannyk3941 Jun 6, 2023
7a46648
Feature/file input (#35)
dgibson666 Jun 7, 2023
4023ca8
Upgrade vanilla sb (#36)
dannyk3941 Jun 13, 2023
1f766d5
fix: alignment of readme for heading and seal image (#37)
dannyk3941 Jun 13, 2023
5a43635
Refactor/banner cards (#38)
dannyk3941 Jul 6, 2023
3862c66
Bugfix/update tokens june23 (#41)
dgibson666 Jul 6, 2023
a70311d
Feature/menu refactor (#40)
dgibson666 Jul 12, 2023
d1efdb7
Refactor/modal (#39)
dannyk3941 Jul 14, 2023
28f59e0
Bugfix/a11y-updates-July2023 (#42)
dgibson666 Jul 14, 2023
d33d6e2
Updated all color-interactive-neutral tokens and CSS variables to col…
dgibson666 Jul 14, 2023
d44a46e
Bugfix/tabs tokens (#45)
dgibson666 Jul 21, 2023
2d65006
Add 11ty ux guidelines (#43)
dannyk3941 Jul 24, 2023
66b1b07
Feature/tabs roving tabindex (#46)
dgibson666 Jul 24, 2023
5cfdff7
Bugfix/button design (#48)
dgibson666 Jul 31, 2023
74a4b50
Update --cbp-border-radius-softest to softer in component CSS (#49)
dgibson666 Jul 31, 2023
83bac8f
chore: upgrade vanilla storybook to 7.2.0 (#50)
dannyk3941 Aug 1, 2023
4bdaabc
Set focus on clicked tab to correct Safari button behavior (#51)
dgibson666 Aug 2, 2023
b216a87
Add react package (#52)
dannyk3941 Aug 7, 2023
79c3571
Feat/structured list (#47)
dannyk3941 Aug 9, 2023
0a4fd5a
Feature/button link (#53)
dgibson666 Aug 9, 2023
b0771b5
Feat/actions gh pages (#54)
dannyk3941 Aug 15, 2023
7c4b642
Feature/panel (#55)
dgibson666 Aug 17, 2023
37c2e21
Bugfix/accordion css (#56)
dgibson666 Aug 17, 2023
746464f
Fix button-styled anchors' width by making them inline-flex. (#57)
dgibson666 Aug 18, 2023
be59548
Bugfix/expand (#58)
dgibson666 Aug 24, 2023
54da626
Feat/pagination css (#59)
dannyk3941 Aug 25, 2023
01bb038
Bugfix/drawer (#60)
dgibson666 Aug 30, 2023
6365ad7
Bugfix/universal header (#61)
dannyk3941 Aug 30, 2023
0fa02ea
Feat/container utility class (#62)
dannyk3941 Sep 5, 2023
e63f295
Bugfix/banner refactor2 (#63)
dgibson666 Sep 6, 2023
38955af
chore: update root package.json description, author and bump engines …
dannyk3941 Sep 6, 2023
40a8753
Fix/usa banner padding (#65)
dannyk3941 Sep 8, 2023
4f47895
Feat/util class doc (#66)
dannyk3941 Sep 12, 2023
d7ee930
Bugfix/use square buttons (#67)
dgibson666 Sep 12, 2023
c9fbd6a
Chore/update pkg json (#68)
dannyk3941 Sep 14, 2023
6d21cc4
fix: re-order modules for utlity classes in main.scss and breakdown p…
dannyk3941 Sep 18, 2023
a09110b
Feat/axis spacing utilities (#70)
dannyk3941 Sep 19, 2023
c38bfa6
Fix/container spacing (#71)
dannyk3941 Sep 26, 2023
c9f4cf0
Bugfix/component-init (#72)
dgibson666 Sep 26, 2023
ef8f684
Fix/drawer nav content (#73)
dannyk3941 Sep 28, 2023
e4bfc40
fix: color for interactive-focus-dark is blue-warm-70 (#75)
dannyk3941 Sep 28, 2023
2325489
Updates to square button and use in segmented buttons (#76)
dgibson666 Oct 3, 2023
1c21e92
Refactor/decision card updates (#77)
dannyk3941 Oct 4, 2023
d8397bd
Fix dropdown issues mostly around e.target errors, updated chip in mu…
dgibson666 Oct 4, 2023
a216247
Add controls to segmented button stories (#79)
dgibson666 Oct 5, 2023
3787f9e
Bugfix/footer nav (#80)
dgibson666 Oct 5, 2023
f981962
feat: text and fill divider classes (#81)
dannyk3941 Oct 10, 2023
3857553
Chore/react pkg re org (#82)
dannyk3941 Oct 16, 2023
8471c8c
React sb netlify (#83)
dannyk3941 Oct 16, 2023
f37a34a
First cut at normalizing input patterns (#84)
dgibson666 Oct 18, 2023
8cecab9
Bugfix/inputs 508 (#87)
dgibson666 Oct 23, 2023
e9238d7
Fix/link and card (#86)
dannyk3941 Oct 23, 2023
1a9eb69
Feature/create stencil project (#89)
dgibson666 Oct 26, 2023
96af73e
Fix/general card (#88)
dannyk3941 Oct 26, 2023
55e2f21
Fix/banner cards (#90)
dannyk3941 Oct 27, 2023
1985a81
Feature/stencil updates1 (#91)
dgibson666 Nov 2, 2023
d45e476
Fixed loader errors on new install (#92)
dgibson666 Nov 2, 2023
8772284
Bugfix/button variants and anchor (#93)
dgibson666 Nov 3, 2023
f249460
Feat/webc card (#94)
dannyk3941 Nov 8, 2023
7eff95b
Feature/react output target setup (#95)
dannyk3941 Nov 13, 2023
90b9267
Feature/container (#96)
dgibson666 Nov 15, 2023
1d8dfd9
fix: import wrong addon in storybook preview.js for theme (#97)
dannyk3941 Nov 15, 2023
033b92f
chore: update package.json information for npm publishing
dannyk3941 Nov 16, 2023
2b13441
Feature/story decorators (#98)
dgibson666 Nov 16, 2023
e28ef54
fix: remove npm package from web-components
dannyk3941 Nov 16, 2023
673d27b
Merge pull request #99 from US-CBP/fix/update-packages
dannyk3941 Nov 16, 2023
8b61cfb
chore: bump versions for vanilla, react-components, and web-components
dannyk3941 Nov 16, 2023
29b70d3
chore: update ux-guidelines package.json to be private
dannyk3941 Nov 16, 2023
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
  •  
  •  
  •  
9 changes: 9 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#### What's this PR do?
#### Where should the reviewer start?
#### How should this be manually tested?
#### Any background context you want to provide?
#### What are the relevant tickets?
#### Screenshots (if appropriate)
#### Questions:
- Is there a blog post?
- Does the knowledge base need an update?
64 changes: 64 additions & 0 deletions .github/workflows/publish-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Deploy Github Pages
run-name: ${{ github.actor }} is deploying the design system to Github Pages
on:
workflow_dispatch:

push:
branches:
- main


# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
contents: read
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

jobs:
build:
name: build static content
timeout-minutes: 15
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18.x"
cache: npm
- run: npm ci # runs clean-install
- run: npm run build-all # build all static sites in all packages

- name: Archive artifact
shell: sh
if: runner.os == 'Linux'
run: |
tar \
--dereference --hard-dereference \
--directory ".public" \
-cvf "$RUNNER_TEMP/artifact.tar" \
--exclude=.git \
--exclude=.github \
.

- uses: actions/upload-artifact@v3
with:
name: github-pages
path: ${{ runner.temp }}/artifact.tar
retention-days: "1"
if-no-files-found: error

deploy:
needs: build

# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
142 changes: 142 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp
.cache

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# Storybook static generated files
storybook-static/

# 11ty _site build
_site

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# vscode - unless there are project settings we wish to commit.
.vscode/

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# .public folder holds all static builds of /packages for github pages artifact
.public
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
engine-strict=true
legacy-peer-deps=true
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.18.2
6 changes: 6 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
packages/styles/dist/**/*.css
packages/styles/dist/**/*.scss
packages/styles/src/sass/base/_normalize.scss
packages/styles/src/sass/base/_reset.scss
packages/ux-guidelines
kitchen_sink
32 changes: 32 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
As a work of the United States Government, this project is in the
public domain within the United States.

Additionally, we waive copyright and related rights in the work
worldwide through the CC0 1.0 Universal public domain dedication.

## CC0 1.0 Universal Summary

This is a human-readable summary of the
[Legal Code (read the full text)](https://creativecommons.org/publicdomain/zero/1.0/legalcode).

### No Copyright

The person who associated a work with this deed has dedicated the work to
the public domain by waiving all of his or her rights to the work worldwide
under copyright law, including all related and neighboring rights, to the
extent allowed by law.

You can copy, modify, distribute and perform the work, even for commercial
purposes, all without asking permission.

### Other Information

In no way are the patent or trademark rights of any person affected by CC0,
nor are the rights that other persons may have in the work or in how the
work is used, such as publicity or privacy rights.

Unless expressly stated otherwise, the person who associated a work with
this deed makes no warranties about the work, and disclaims liability for
all uses of the work, to the fullest extent permitted by applicable law.
When using or citing the work, you should not imply endorsement by the
author or the affirmer.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<p align="center">
<img src="packages/vanilla/assets/images/CBP_SEAL.svg" height="200" width="200" />
</p>

<h1 align="center">[ALPHA] U.S. Customs and Border Protection (CBP) Design System</h1>

[![License: CC0-1.0](https://img.shields.io/badge/License-CC0_1.0-lightgrey.svg)](/LICENSE)
[![Open-Source: Policy](https://img.shields.io/badge/Open--Source-Policy-f39f37)](https://github.com/US-CBP/open-source-policy/blob/master/policy.md)

The CBP Design System (1.0) exists to provide a unifying user experience and reduce redundant front-end code within the US Customs and Border Protection enterprise suite of applications and websites. This is the next evolution of our first effort, the [CBP Theme (1.X)](https://us-cbp.github.io/cbp-style-guide).

> **⚠️ The CBP Design System (1.0) is still in a stage of very active development.** As such, much of the code base is still somewhat fragile and may break at any time. While we encourage you to explore our offerings, please do so with the knowledge that the codebase in these repositories will change rapidly and with little warning. Use at your own risk. We will communicate when a stable release will be made available.

## Contents

| Package Name | Description |
|---------------------------------|-----------------------------------------------------|
| @cbpds/vanilla (_WIP_) | HTML patterns, css/scss styles and vanilla js |
| @cbpds/react-components (_WIP_) | React components library |
| ux-guidelines (_WIP_) | Guidance for patterns, components and design tokens |

## Contributing

We welcome contributions, please see our [Contribution Policy](https://github.com/US-CBP/open-source-policy/blob/master/CONTRIBUTING.md)

Read and follow the steps in the [Project Setup Wiki](https://github.com/US-CBP/design-system/wiki/Project-Setup) to fork the repo and start contributing!
Loading