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

feat: 🎸 add press events to Tab #6817

Open
wants to merge 229 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
229 commits
Select commit Hold shift + click to select a range
1125c2b
Initial commit
snowystinger Nov 21, 2023
31c8beb
RAC storybook
snowystinger Nov 22, 2023
86ea039
RAC Storybook
snowystinger Nov 22, 2023
d02a63b
Got tailwind working!
snowystinger Nov 23, 2023
3db0978
Start work on button
snowystinger Nov 23, 2023
12f3a9e
Get Spectrum styles working
snowystinger Nov 27, 2023
97d640a
remove unused files
snowystinger Nov 27, 2023
253ed1f
Add perspective scaling for press
snowystinger Nov 27, 2023
78ced29
Update README.md
snowystinger Nov 27, 2023
7d0534e
remove docs, support theme swapping
snowystinger Nov 27, 2023
c14205b
get back our controls
snowystinger Nov 29, 2023
a363251
Add ActionButton, fix corner radius, add figma
snowystinger Dec 1, 2023
cdcb680
Add lint
snowystinger Dec 1, 2023
6b948a4
Add an icon, slot provider, static colors, sizes
snowystinger Dec 4, 2023
20b884b
fix outline, add actiongroup for exploration
snowystinger Dec 5, 2023
178f0d4
remove actiongroup, better press scale
snowystinger Dec 6, 2023
d6bbb26
Add our wrapper elements for basic slots
snowystinger Dec 6, 2023
331fc60
Fix font
snowystinger Dec 14, 2023
99feb19
Merge pull request #1 from React/fix-font
snowystinger Dec 14, 2023
a444091
Update dependencies
snowystinger Jan 2, 2024
dd89da0
Merge pull request #3 from React/update-deps
snowystinger Jan 2, 2024
e8ea5bc
Remove Tailwind
snowystinger Jan 11, 2024
f848b20
Merge pull request #5 from React/remove-tailwind
snowystinger Jan 11, 2024
d9a5b9c
fix lint
snowystinger Jan 11, 2024
8fb4a2e
Merge pull request #6 from React/fix-lint
snowystinger Jan 11, 2024
c45777d
setup macros
devongovett Jan 12, 2024
feff108
fix patch
devongovett Jan 12, 2024
ddfb669
dark mode
devongovett Jan 12, 2024
d13fa7f
s2 wf icons (#7)
snowystinger Jan 12, 2024
7d5d2ef
icons
devongovett Jan 12, 2024
9c6ef4b
press scale
devongovett Jan 13, 2024
4a0035c
add parcel plugin for react-docgen-typescript
devongovett Jan 13, 2024
c251bc9
Add UI icons and checkbox implementation (#8)
devongovett Jan 17, 2024
7567377
Implement more ActionButton and ToggleButton variants (#10)
devongovett Jan 23, 2024
367e795
Implement TextField, TextArea, SearchField, CheckboxGroup, and Form (…
devongovett Jan 26, 2024
5c50931
Add Switch (#15)
devongovett Jan 26, 2024
31236f2
Inline Alert (#12)
Jan 26, 2024
5ee3a43
Bump parcel, update font, add keyframes macro (#16)
devongovett Jan 29, 2024
172fbaf
Initial implementation of dialog (#17)
devongovett Feb 2, 2024
6e04f41
Implementing Divider with macros (#11)
ktabors Feb 2, 2024
7cf0d6b
Initial version of Radio (#14)
ktabors Feb 5, 2024
20ff9a3
Initial version of Tooltip (#18)
ktabors Feb 5, 2024
daa207c
Followup improvements for Tooltip and Radio (#24)
ktabors Feb 6, 2024
4bf3df4
Progress circle (#19)
LFDanLu Feb 8, 2024
4d2212e
Initial commit of Avatar (#23)
ktabors Feb 8, 2024
c9cffec
Setup DialogTrigger and DialogContainer (#20)
devongovett Feb 8, 2024
487962e
Bump parcel, fix press scale (#27)
devongovett Feb 8, 2024
57b3e4a
inline alert follow-ups (#25)
Feb 8, 2024
e8a3ebc
Initial implementation of Dropzone and IllustratedMessage (#21)
Feb 8, 2024
78b90c2
TagGroup (#9)
snowystinger Feb 14, 2024
5cc9494
Update RAC (#30)
snowystinger Feb 15, 2024
f3917a9
Buttongroup (#29)
snowystinger Feb 19, 2024
838cbbb
Setup npm build and codemods (#22)
devongovett Feb 22, 2024
96f029f
Fix lint and ts (#35)
LFDanLu Feb 23, 2024
e11353d
Adding tsc to yarn lint (#37)
LFDanLu Feb 23, 2024
420af50
use light-dark() and color-scheme to implement dark mode (#36)
devongovett Feb 23, 2024
b97651b
ProgressBar (#26)
Feb 26, 2024
e445bdc
Setup i18n fonts (#34)
devongovett Feb 26, 2024
6cabecb
Link (#40)
devongovett Feb 26, 2024
3ae9002
Remove some events from storybook actions
devongovett Feb 26, 2024
6c5dffd
Precommit hook (#39)
snowystinger Feb 28, 2024
488fa8a
Fix lint and ts (#43)
snowystinger Feb 28, 2024
8ac8f0f
remove focus behavior from Avatar (#42)
Feb 28, 2024
ce37bad
TagGroup fixes from testing (#41)
Feb 28, 2024
d58af25
Picker input field styling (#32)
ktabors Feb 28, 2024
e5857d0
Fixing look of touch events on iOS (#44)
ktabors Feb 28, 2024
cdca4df
Update IllustratedMessage to use ButtonGroup (#46)
Feb 28, 2024
541f5ce
initial ref support (#33)
Feb 29, 2024
a372d92
Fix disabled, emphasized, selected ToggleButton style (#47)
LFDanLu Feb 29, 2024
e9d00dd
Remove V3 styleProps in InlineAlert (#45)
Mar 1, 2024
e020394
Wf icons (#48)
snowystinger Mar 1, 2024
38ea317
add disabled to button group (#49)
Mar 1, 2024
dc72275
fix link in taggroup empty state (#54)
Mar 4, 2024
d1516ab
Popover and Menu (#31)
snowystinger Mar 5, 2024
13d1ceb
Add StatusLight and bump spectrum tokens (#51)
devongovett Mar 6, 2024
05b252a
Add isEmphasized to CheckboxGroup (#50)
Mar 6, 2024
e754213
Add css prop and unsafe style support (#52)
devongovett Mar 6, 2024
5678af7
Use default cursor for help text on disabled elements (#55)
LFDanLu Mar 8, 2024
bd89829
Add LinkButton component (#58)
devongovett Mar 8, 2024
b5fcffa
Fix missing type in module (#59)
Mar 9, 2024
9561f2f
Theme audit (#63)
devongovett Mar 11, 2024
f9276d2
Remove V3 StyleProps from IllustratedMessage (#57)
Mar 12, 2024
ebdf8f9
ActionMenu and positioning props for Menu (#61)
snowystinger Mar 12, 2024
ba5341d
Static backgrounds that don't interfere with state (#56)
snowystinger Mar 12, 2024
5c3ec65
Move Popover padding and add ref (#60)
snowystinger Mar 12, 2024
1c63b44
setup chromatic (#65)
devongovett Mar 13, 2024
0c86c7e
Audit T components (#68)
devongovett Mar 14, 2024
b4cc790
fix outline button disabled and keyboard focus styles (#69)
LFDanLu Mar 14, 2024
892d7c7
nextjs, macros, and components example app (#64)
ktabors Mar 14, 2024
54c7eba
A-C audit (#66)
LFDanLu Mar 15, 2024
aaa295c
I-P Audit (#70)
snowystinger Mar 15, 2024
a2cedc3
I-P exports and descriptions (#74)
snowystinger Mar 16, 2024
c480260
Menu has its own Divider so we can ensure style merge order (#76)
snowystinger Mar 16, 2024
ff3f463
Use wficons for inline alert (#53)
snowystinger Mar 18, 2024
ff7d944
D-F audit (#67)
Mar 18, 2024
c156532
Menu placement fixes (#71)
snowystinger Mar 18, 2024
4eaf766
Icon fixes from testing (#79)
snowystinger Mar 19, 2024
ea7ec82
Adding ActionButton truncation, fixing TagGroup icon color when selec…
LFDanLu Mar 19, 2024
d245a42
Update Divider min sizes and story (#77)
Mar 19, 2024
2db28b9
Icons move fallback color out of page (#82)
snowystinger Mar 20, 2024
3fb81a6
R-S audit (#75)
ktabors Mar 20, 2024
1e65bb9
Remove border radius for fullscreen takeover dialogs (#78)
LFDanLu Mar 20, 2024
93c00c5
Audit Menu/Dialog/StatusLight Components (#80)
Mar 20, 2024
939f8fd
Dialog: Fixing header and close button position (#81)
ktabors Mar 20, 2024
a4f7b8c
Setup build to publish package (#73)
devongovett Mar 20, 2024
ccd8619
Build icons with parcel (#85)
devongovett Mar 20, 2024
466083f
Fix popover tip separation (#86)
snowystinger Mar 21, 2024
6c21561
Minor menu fixes (#89)
snowystinger Mar 21, 2024
6ebe56d
Publish fixes (#90)
devongovett Mar 21, 2024
a4c4460
swap vertical and horizontal (#91)
Mar 21, 2024
b3f3a6a
Update menu popover alignment (#92)
devongovett Mar 21, 2024
8e98a15
Adding TooltipTrigger (#88)
ktabors Mar 21, 2024
c54ff4d
Switch to data-color-scheme and move iOS highlight override (#87)
LFDanLu Mar 22, 2024
6c9d6aa
css rename to styles (#94)
snowystinger Mar 22, 2024
2c0eaa4
Another audit (#95)
Mar 22, 2024
daab120
Setup storybook docs (#84)
Mar 22, 2024
cbc4129
Add missing jsdoc to DropZone (#98)
snowystinger Mar 22, 2024
a6d178f
Propagate color scheme into portals (#97)
devongovett Mar 22, 2024
e7e1685
Change style prop (#93)
snowystinger Mar 22, 2024
8f21852
Remove font (#102)
Mar 22, 2024
f554054
Fix command for running chromatic (#96)
LFDanLu Mar 22, 2024
e4d9434
Rollup example app (#106)
ktabors Mar 23, 2024
d186db6
Fix main (#111)
snowystinger Mar 25, 2024
dec9bfb
Add vite example app (#109)
LFDanLu Mar 25, 2024
be4e626
updating to use rainbow from artifactory (#110)
ktabors Mar 25, 2024
1f283a5
SearchField remove clear button with read only(v3) (#117)
ktabors Mar 26, 2024
0b5581a
Make Dialog square when scrollbars are present and revert Field chang…
LFDanLu Mar 26, 2024
2670c8c
Add readme (#116)
devongovett Mar 26, 2024
5994c9a
Design fixes for fields (#101)
devongovett Mar 26, 2024
e4587dd
Add Webpack 5 example (#107)
Mar 26, 2024
9d93b70
Improve Storybook docs build (#114)
Mar 26, 2024
6427c04
Add logo to storybook build (#122)
Mar 26, 2024
9ea0fbd
Make storybook docs respect dark mode setting (#124)
devongovett Mar 26, 2024
7cd1e05
Update Submenu props to get rid of delay (#123)
LFDanLu Mar 26, 2024
15c5546
Fix 'Show code' button to show behind overlays (#125)
Mar 26, 2024
70b6406
center overlay arrow position (#121)
Mar 26, 2024
e2de7a2
Renaming prop treatment to fillStyle (#128)
ktabors Mar 26, 2024
9ae6f25
Remove hover props support from components (#127)
LFDanLu Mar 26, 2024
a98e0c4
Fix chromatic publish to storybook (#126)
LFDanLu Mar 26, 2024
d116a6d
Combine popover stories with Dialog (#118)
snowystinger Mar 26, 2024
5cdfb1b
update shadows (#129)
devongovett Mar 27, 2024
b91bc3d
Group rules by layer so they are not nested (#120)
devongovett Mar 27, 2024
b0d7dfb
Fixing icon only ActionButton width to keep square (#119)
ktabors Mar 27, 2024
d970699
Add missing dialog title to docs example (#131)
devongovett Mar 27, 2024
77caa7d
Adjust submenu cross offset to account for border (#130)
devongovett Mar 27, 2024
60cce1c
Remove contextualHelp prop and show help text error icon for checkbox…
devongovett Mar 27, 2024
3f70126
Add dark mode logo (#133)
devongovett Mar 27, 2024
718f5c1
remove hero on popover examples for now
devongovett Mar 27, 2024
a302f8f
change default selection mode of publish and export menu example
devongovett Mar 27, 2024
c8210a1
Add API diff (#103)
devongovett Mar 27, 2024
95761a7
Fix SubmenuTrigger/dynamic code sample rendering in storybook docs (#…
LFDanLu Mar 27, 2024
b4dafe3
more code cleanup (#134)
Mar 27, 2024
4021609
v0.0.0
devongovett Mar 27, 2024
c272e70
Update example apps to use v0.0.0 (#136)
Mar 27, 2024
a362480
Add parcel example (#137)
dannify Mar 27, 2024
9cb98b8
Cleanup and standardize example apps (#138)
Mar 27, 2024
d360192
Meter (#140)
ktabors Apr 19, 2024
ccd13df
Badge (#141)
Apr 22, 2024
d72204a
Picker Dropdown using rainbow Popover (#62)
snowystinger May 13, 2024
43fd43e
Update tag group (#143)
May 14, 2024
73aa784
RAC upgrade and testing followup (#147)
snowystinger May 15, 2024
574842f
Prevent global styles from leaking into RSP elements (#150)
devongovett May 15, 2024
8ced914
Error when calling the style macro without import attribute (#152)
devongovett May 15, 2024
a0e7dc2
Rendering and styling of picker selected item (#151)
snowystinger May 15, 2024
a0b5511
Remove unnecessary layer from Picker (#153)
snowystinger May 16, 2024
db53d67
Update API diff (#154)
devongovett May 16, 2024
418d392
0.1.0
devongovett May 16, 2024
f557538
Add missing exports to index.ts
devongovett May 16, 2024
921e869
Add Picker to storybook docs
devongovett May 16, 2024
ae9c491
Update lightningcss (#155)
devongovett May 17, 2024
a592dce
Update to latest Spectrum Tokens (#157)
devongovett May 20, 2024
11fe2bb
Fix custom field width (#146)
ktabors May 22, 2024
1048928
Add color picker components (#158)
devongovett May 22, 2024
ef933d8
Esbuild starter (#112)
snowystinger May 27, 2024
98dc37b
Remove figma references (#164)
snowystinger May 30, 2024
438dddf
Update InlineAlert (#163)
snowystinger May 30, 2024
7c39cdf
should be able to apply width to tag group + truncate behavior (#149)
May 30, 2024
ee4eb6f
clean up stories (#166)
Jun 4, 2024
44ab3ca
Initialize Slider (#156)
Jun 6, 2024
dd306f9
Add license (#171)
Jun 7, 2024
386dcc4
Fix inline alert notice variant icon color (#174)
devongovett Jun 11, 2024
eab002f
ContextualHelp (#162)
ktabors Jun 12, 2024
c401600
Adding react-aria/i18n to package for Slider (build fix) (#179)
ktabors Jun 13, 2024
34e3fa0
fix default size mentioned in description for ContextualHelp (#180)
LFDanLu Jun 13, 2024
ad7e38e
Breadcrumbs (#148)
Jun 13, 2024
601da3a
Slider follow-up from testing (#176)
Jun 13, 2024
3a39778
Limit the ContextualHelp ActionButton size to S and XS (#183)
ktabors Jun 13, 2024
4386b21
Clean up docs build props tables (#182)
Jun 13, 2024
208cfb4
remove isMultiline variant from Breadcrumbs (#184)
Jun 13, 2024
bd39f29
Fix InlineAlert heading render in Dialog and use contexts from s2 (#185)
LFDanLu Jun 13, 2024
60cdad6
Adding ContextualHelp to Slider, RangeSlider, TagGroup, and ColorSlid…
ktabors Jun 13, 2024
2bf4761
Update API diff (#186)
devongovett Jun 13, 2024
8409541
Fix output styles in ProgressBar and Meter (#188)
devongovett Jun 14, 2024
af3f5c4
Fix field width with long labels (#189)
devongovett Jun 14, 2024
d2d46ca
Fix ColorSlider and RangeSlider bugs (#190)
devongovett Jun 14, 2024
c360e01
0.2.0
devongovett Jun 14, 2024
7b0e2f8
Adding contextual help stories to docs build (#191)
LFDanLu Jun 14, 2024
841928c
Fix menu zindex issue (#194)
snowystinger Jun 18, 2024
371f22f
NumberField (#168)
jluyau Jun 24, 2024
c34631a
update dash sizes (#198)
jluyau Jun 28, 2024
d0986d8
Upgrade assistant CLI (#144)
Jun 28, 2024
c7516c8
fix lint (#199)
Jul 9, 2024
f4c37b7
Alert dialog (#195)
Jul 10, 2024
25caaac
Fix overlay trigger press scaling and menu description color (#196)
devongovett Jul 15, 2024
52c048e
Publish
devongovett Jul 23, 2024
291033b
Fix rendering TagGroup inside GridList (#6758)
reidbarber Jul 23, 2024
05a37a0
Fix TagGroup docs example (#6759)
devongovett Jul 23, 2024
f0aa6aa
Merge branch 'main' of github.com:adobe/react-spectrum
devongovett Jul 23, 2024
976604a
Yarn 4 (#6215)
snowystinger Jul 24, 2024
52104c0
Codemod follow-up (#200)
Jul 25, 2024
12c81d4
Merge branch 'main' into s2
devongovett Jul 25, 2024
48af5db
Implement autofix for eslint sort imports rule (#6766)
devongovett Jul 25, 2024
0d77626
Merge branch 'main' of github.com:adobe/react-spectrum into s2
devongovett Jul 25, 2024
32d4c0e
Fix verdaccio build (#6769)
snowystinger Jul 25, 2024
320061b
Spectrum 2
devongovett Jul 25, 2024
82adcfc
Merge branch 'main' of github.com:adobe/react-spectrum into spectrum-2
devongovett Jul 26, 2024
14f324f
RSP nested tabs story (#6756)
ktabors Jul 26, 2024
41be55b
Add Spectrum 2 docs to storybook
devongovett Jul 26, 2024
c795330
Merge branch 'main' of github.com:adobe/react-spectrum into spectrum-2
devongovett Jul 29, 2024
10a469d
Spectrum 2 (#6777)
devongovett Jul 29, 2024
1de2739
Keep focus inside of ComboboxInput (#6783)
chirokas Jul 29, 2024
efe2f80
Yarn plugin to detect multiple versions of packages (#6792)
devongovett Jul 30, 2024
826d9d4
Fix S2 ComboBox and NumberField custom width (#6782)
devongovett Jul 30, 2024
6dfa366
fix(RAC): support hover events for Tabs (#6742)
lithdew Jul 30, 2024
7aadd66
Fix type regression on useControlledState signature (#6789)
snowystinger Jul 31, 2024
1dcc870
Update Picker placeholder to be shorter (#6796)
snowystinger Jul 31, 2024
ee4326d
feat: 🎸 add press events to Tab
ArrayKnight Jul 31, 2024
617ad2e
test(docs): add script to test docs for warnings/errors (#6763)
reidbarber Aug 1, 2024
1febd5e
Merge branch 'main' into feat/tab-press
ArrayKnight Aug 1, 2024
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
  •  
  •  
  •  
4 changes: 3 additions & 1 deletion .circleci/comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ async function run() {
[Publish stats](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/verdaccio/publish-stats/publish.json)
[Size diff since last release](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/verdaccio/publish-stats/size-diff.txt)
[Docs](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/verdaccio/docs/index.html)
[Storybook](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/storybook/index.html)`
[Storybook](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/storybook/index.html)
[S2 Storybook](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/storybook-s2/index.html)`
});
}
} catch (error) {
Expand All @@ -79,6 +80,7 @@ async function run() {
* [View the storybook-19](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/storybook-19/index.html)
* [View the storybook-17](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/storybook-17/index.html)
* [View the storybook-16](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/storybook-16/index.html)
* [View the S2 storybook](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/storybook-s2/index.html)
* [View the documentation](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/docs/index.html)`
});
} catch (err) {
Expand Down
77 changes: 46 additions & 31 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,6 @@ jobs:
executor: rsp-large
steps:
- checkout
- restore_cache:
keys:
- rsp-yarn-{{ .Environment.CACHE_VERSION }}-{{ .Branch }}-{{ checksum "yarn.lock" }}
- rsp-yarn-{{ .Environment.CACHE_VERSION }}-{{ .Branch }}-
- rsp-yarn-{{ .Environment.CACHE_VERSION }}-

- run:
name: Write npmrc
Expand All @@ -69,12 +64,7 @@ jobs:
- run:
name: build
command: |
yarn --pure-lockfile --cache-folder ~/.cache/yarn

- save_cache:
paths:
- ~/.cache/yarn
key: rsp-yarn-{{ .Environment.CACHE_VERSION }}-{{ .Branch }}-{{ checksum "yarn.lock" }}
yarn --immutable

- save_cache:
paths:
Expand All @@ -85,16 +75,18 @@ jobs:
executor: rsp-large
steps:
- checkout
- restore_cache:
keys:
- rsp-yarn-{{ .Environment.CACHE_VERSION }}-{{ .Branch }}-{{ checksum "yarn.lock" }}
- rsp-yarn-{{ .Environment.CACHE_VERSION }}-{{ .Branch }}-
- rsp-yarn-{{ .Environment.CACHE_VERSION }}-

- run:
name: Write npmrc
command: |
if [ $NPM_PASSWORD ]; then
cp .circleci/.npmrc .npmrc
fi

- run:
name: build
command: |
yarn install --pure-lockfile --cache-folder ~/.cache/yarn && yarn install-16 --cache-folder ~/.cache/yarn
yarn install --immutable && yarn install-16

- save_cache:
paths:
Expand All @@ -105,16 +97,18 @@ jobs:
executor: rsp-large
steps:
- checkout
- restore_cache:
keys:
- rsp-yarn-{{ .Environment.CACHE_VERSION }}-{{ .Branch }}-{{ checksum "yarn.lock" }}
- rsp-yarn-{{ .Environment.CACHE_VERSION }}-{{ .Branch }}-
- rsp-yarn-{{ .Environment.CACHE_VERSION }}-

- run:
name: Write npmrc
command: |
if [ $NPM_PASSWORD ]; then
cp .circleci/.npmrc .npmrc
fi

- run:
name: build
command: |
yarn install --pure-lockfile --cache-folder ~/.cache/yarn && yarn install-17 --cache-folder ~/.cache/yarn
yarn install --immutable && yarn install-17

- save_cache:
paths:
Expand All @@ -125,16 +119,18 @@ jobs:
executor: rsp-large
steps:
- checkout
- restore_cache:
keys:
- rsp-yarn-{{ .Environment.CACHE_VERSION }}-{{ .Branch }}-{{ checksum "yarn.lock" }}
- rsp-yarn-{{ .Environment.CACHE_VERSION }}-{{ .Branch }}-
- rsp-yarn-{{ .Environment.CACHE_VERSION }}-

- run:
name: Write npmrc
command: |
if [ $NPM_PASSWORD ]; then
cp .circleci/.npmrc .npmrc
fi

- run:
name: build
command: |
yarn install --pure-lockfile --cache-folder ~/.cache/yarn && yarn install-19 --cache-folder ~/.cache/yarn
yarn install --immutable && yarn install-19

- save_cache:
paths:
Expand Down Expand Up @@ -292,7 +288,6 @@ jobs:
name: test
command: |
make build
yarn lerna run prepublishOnly
node --loader ./scripts/esm-support/loader.mjs ./scripts/esm-support/testESM.mjs

lint:
Expand Down Expand Up @@ -350,7 +345,7 @@ jobs:
command: |
yarn test:parcel
mkdir -p dist
yarn --silent compare:apis --isCI --branch-api-dir="/tmp/dist/branch-api" --base-api-dir="/tmp/dist/base-api" | tee dist/ts-diff.txt
yarn compare:apis --isCI --branch-api-dir="/tmp/dist/branch-api" --base-api-dir="/tmp/dist/base-api" | tee dist/ts-diff.txt

- persist_to_workspace:
root: dist
Expand Down Expand Up @@ -427,6 +422,21 @@ jobs:
paths:
- '*/storybook-19/'

storybook-s2:
executor: rsp-large
steps:
- restore_cache:
key: react-spectrum-{{ .Environment.CACHE_VERSION }}-{{ .Environment.CIRCLE_SHA1 }}

- run:
name: build s2 storybook
command: yarn build:storybook-s2

- persist_to_workspace:
root: dist
paths:
- '*/storybook-s2/'

docs:
executor: rsp-xlarge
steps:
Expand Down Expand Up @@ -479,6 +489,7 @@ jobs:
steps:
- attach_workspace:
at: /tmp/dist

- run:
name: deploy
command: |
Expand Down Expand Up @@ -612,6 +623,9 @@ workflows:
- storybook-19:
requires:
- install-19
- storybook-s2:
requires:
- install
- docs:
requires:
- install
Expand All @@ -635,6 +649,7 @@ workflows:
- storybook-16
- storybook-17
- storybook-19
- storybook-s2
- docs
- deploy-verdaccio:
requires:
Expand Down
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ packages/dev/storybook-builder-parcel/preview.js
packages/dev/optimize-locales-plugin/LocalesPlugin.d.ts
examples/**
starters/**
packages/@react-spectrum/s2/icon.d.ts
6 changes: 6 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ module.exports = {
}
]
}
},
{
files: ['packages/@react-spectrum/s2/**'],
rules: {
'react/react-in-jsx-scope': OFF
}
}],
env: {
'browser': true,
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ build-storybook.log
coverage
dist
junit.xml
.yarn/install-state.gz
node_modules
npm-debug.log
public
storybook-static
test-reports.xml
storage
packages/dev/storybook-builder-parcel/iframe.html
packages/dev/storybook-builder-parcel/preview.js
6 changes: 5 additions & 1 deletion .parcelrc-build
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@
"resolvers": ["@parcel/resolver-glob", "parcel-resolver-build", "..."],
"bundler": "@parcel/bundler-library",
"transformers": {
"style-types:*.ts": ["@parcel/transformer-typescript-types"],
"packages/**/intl/*.json": ["parcel-transformer-intl"],
"bundle-text:*.svg": ["@parcel/transformer-svg", "@parcel/transformer-inline-string"],
"packages/@react-spectrum/s2/s2wf-icons/*.svg": ["parcel-transformer-icon"],
// Disable PostCSS from running over style macro output
"packages/@react-spectrum/s2/**/*.css": ["@parcel/transformer-css"],
"*.svg": ["@parcel/transformer-svg-react"],
"*.{js,mjs,jsm,jsx,es6,cjs,ts,tsx}": [
"@parcel/transformer-js",
"@parcel/transformer-react-refresh-wrap"
]
},
"namers": ["parcel-namer-intl", "..."]
"namers": ["parcel-namer-icon", "parcel-namer-intl", "..."]
}
18 changes: 18 additions & 0 deletions .storybook-s2/.parcelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"extends": "@parcel/config-default",
"resolvers": ["@parcel/resolver-glob", "parcel-resolver-storybook", "..."],
"transformers": {
"packages/@react-spectrum/s2/{src,stories}/*.{js,mjs,jsm,jsx,es6,cjs,ts,tsx}": ["parcel-transformer-react-docgen-typescript", "..."],
"packages/@react-spectrum/s2/s2wf-icons/*.svg": ["parcel-transformer-icon"],
"packages/*/*/intl/*.json": ["parcel-transformer-intl"],
// Disable PostCSS from running over style macro output
"*.css": ["@parcel/transformer-css"],
"*.{js,mjs,jsm,jsx,es6,cjs,ts,tsx}": [
"@parcel/transformer-js",
"@parcel/transformer-react-refresh-wrap"
],
"*.svg": ["@parcel/transformer-svg-react"],
"*.{mdx,md}": ["parcel-transformer-mdx-storybook"],
"raw:*": ["@parcel/transformer-raw"]
}
}
35 changes: 35 additions & 0 deletions .storybook-s2/docs/Icons.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import icons from '@react-spectrum/s2/s2wf-icons/*.svg';
import { style } from '../../packages/@react-spectrum/s2/style/spectrum-theme' with {type: 'macro'};
import {ActionButton, Text} from '@react-spectrum/s2';
import {P, Code, Pre} from './typography';
import {highlight} from './highlight' with {type: 'macro'};

export function Icons() {
return (
<div className={style({maxWidth: 'lg', marginX: 'auto', fontFamily: 'sans'})}>
<div className={style({marginX: 48})}>
<h1 className={style({fontSize: 'heading-2xl', color: 'heading', marginBottom: 48})}>
Workflow icons
</h1>
<P>Spectrum 2 offers a subset of the icons currently available in React Spectrum v3. These icons can be imported from <Code>@react-spectrum/s2/icons</Code>.</P>
<Pre>{highlight("import Add from '@react-spectrum/s2/icons/Add';")}</Pre>
<P>See below for a full list of available icons. Click to copy import statement.</P>
<div className={style({display: 'flex', flexWrap: 'wrap', gap: 4, marginTop: 48})}>
{Object.keys(icons).map(icon => {
let Icon = icons[icon].default;
let name = icon.replace(/^S2_Icon_(.*?)_2.*/, '$1');
let importName = name.replace(/^(\d)/, '_$1');
return (
<ActionButton
key={icon}
onPress={() => navigator.clipboard.writeText(`import ${importName} from '@react-spectrum/s2/icons/${name}';`)}>
<Icon />
<Text>{name}</Text>
</ActionButton>
);
})}
</div>
</div>
</div>
);
}
Loading