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

Dialog pinch zoom #7012

Open
wants to merge 300 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
300 commits
Select commit Hold shift + click to select a range
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
617ad2e
test(docs): add script to test docs for warnings/errors (#6763)
reidbarber Aug 1, 2024
b8f5ac5
TSDiffer add RAC (#6736)
snowystinger Aug 3, 2024
4969019
Fix useMenuItem onAction regression (#6807)
snowystinger Aug 5, 2024
455cbf4
feat: Support fragments in collections (#6430)
solimant Aug 5, 2024
3691c7f
Update Switch.mdx (#6827)
AleksandrSl Aug 5, 2024
aa9f32d
Fix ComboBox quiet readonly styling and SearchField padding right spe…
LFDanLu Aug 6, 2024
4d8b655
Exposing prop disabledBehavior to TableView (#6832)
ktabors Aug 7, 2024
1af59d1
Nextjs example app - Adding fonts and improving mobile scale (#6745)
ktabors Aug 7, 2024
dcfa1b0
Fix type regression in calendar (#6790)
snowystinger Aug 7, 2024
59b0762
Add font shorthand and use Adobe Clean variable font (#6818)
devongovett Aug 7, 2024
ccfd872
Remove private from s2 so we can get nightlies (#6849)
LFDanLu Aug 8, 2024
484c0cd
Make it so we can trigger nightly from github actions (#6850)
LFDanLu Aug 8, 2024
dcf5ccb
fix lerna? (#6852)
LFDanLu Aug 8, 2024
89c42a8
Add public publishConfig so nightly can successfully publish (#6853)
LFDanLu Aug 9, 2024
81e3804
Extract `ToggleStateProps` type to use only what is needed in `useTog…
Andarist Aug 9, 2024
f56a787
Add quiet styling to S2 Picker (#6812)
yihuiliao Aug 9, 2024
6bbb8c1
Satisfy new yarn peer behavior (#6767)
snowystinger Aug 13, 2024
6943a6b
Add S2 Illustrations (#6851)
devongovett Aug 13, 2024
c4a783e
fix/bug useTablist #5996 (#6023)
mdhmaiti Aug 13, 2024
f30983a
Add slot contexts to all S2 components (#6856)
devongovett Aug 14, 2024
e2bf18a
fix: s2 quiet picker follow-up (#6874)
yihuiliao Aug 14, 2024
6932a9f
docs: S2 migration docs and codemod setup (#6828)
reidbarber Aug 15, 2024
665ba22
Add docs for S2 illustrations (#6882)
devongovett Aug 15, 2024
a02fe15
Conditionally render field label only if label is provided (#6833)
jluyau Aug 15, 2024
10df503
S2 Translations (#6878)
snowystinger Aug 15, 2024
754e9ad
S2 tabs (#6779)
devongovett Aug 15, 2024
a18bcb3
Adding more S2 ContextualHelp examples (#6875)
ktabors Aug 15, 2024
b27e449
S2 AvatarGroup (#6781)
devongovett Aug 15, 2024
16176b8
S2 TagGroup collapse (#6795)
snowystinger Aug 15, 2024
2bca133
S2 Icon Builder CLI (#6806)
snowystinger Aug 15, 2024
7e10448
Update codemod and migration docs with latest changes (#6887)
reidbarber Aug 15, 2024
ec75091
Translations for TagGroup (#6890)
snowystinger Aug 15, 2024
ab73e1a
allow zooming
tomdohnal Aug 16, 2024
3a48d44
Update calculatePosition to handle overlays that have margins on them…
LFDanLu Aug 16, 2024
c8d4985
Remove isCollapsed from S2 NumberField and add hideStepper (#6894)
devongovett Aug 16, 2024
ac6116d
Do not define a default color-scheme on Provider if one is defined at…
devongovett Aug 16, 2024
0f2c781
Tabs codemods (#6896)
reidbarber Aug 16, 2024
cfd890e
Setup S2 release notes (#6881)
devongovett Aug 16, 2024
86eb91f
Codemod: don't affect Items in unimplemented collection components (#…
reidbarber Aug 19, 2024
e17c7f4
Release fixes (#6902)
devongovett Aug 19, 2024
faf0e18
August release (#6905)
devongovett Aug 19, 2024
1067aff
Fix import path in icon and illustration .d.ts files (#6912)
devongovett Aug 20, 2024
64e4a40
Fix combobox focus from being lost when filtering large collections (…
LFDanLu Aug 20, 2024
d27e833
types: fix S2 types/defaults (#6917)
reidbarber Aug 20, 2024
72b8098
Fix buttons in S2 dialogs stuck in hover state (#6916)
devongovett Aug 20, 2024
d503a29
update breadcrumbs to handle breadcrumb context overrides (#6920)
jluyau Aug 20, 2024
5cd9581
fix: truncate text in S2 ActionButton (#6919)
yihuiliao Aug 20, 2024
87fc14a
Publish
devongovett Aug 20, 2024
69cc445
update yarn.lock
devongovett Aug 20, 2024
8f3c0ea
TS Strict Stately List (#6567)
snowystinger Aug 21, 2024
a4d8b94
fix v3 storybook logo (#6914)
reidbarber Aug 21, 2024
7336849
fix(docs): cleanup warnings in docs (#6857)
reidbarber Aug 21, 2024
3aa13af
feat(RAC): Allow passing data attributes to FieldError (#6895)
omarnyte Aug 21, 2024
6b8cb7a
docs(RSP): add TreeView docs (#6744)
reidbarber Aug 21, 2024
859615a
Revert reverts from before latest release (#6926)
reidbarber Aug 21, 2024
2e689d9
feat: Codemod: handle legacy Link API (#6907)
reidbarber Aug 21, 2024
22e803a
Maintain Table row interactive states if interactive and prevent visu…
LFDanLu Aug 21, 2024
b4093df
Support and document preventFocusOnPress (#6854)
snowystinger Aug 22, 2024
72ec2f5
feat: add rounded edges and side label to S2 progress bar (#6918)
yihuiliao Aug 22, 2024
33e8655
feat: add subtle and outline fill to s2 badge (#6898)
yihuiliao Aug 22, 2024
25a2a30
Fix lint job on CI (#6921)
snowystinger Aug 22, 2024
acddd45
working branch for supporting windows contributors (#6313)
davidcoleman007 Aug 22, 2024
c8e5ed4
Fix Safari docs crash (#6930)
snowystinger Aug 22, 2024
dcf312b
Codemod: remove Section and Items imports if not used elsewhere in fi…
reidbarber Aug 22, 2024
95c8344
Fix TreeView so that the row height always matches the chevron height…
LFDanLu Aug 27, 2024
32574f8
feat: codemods for Badge and Well (#6941)
reidbarber Aug 27, 2024
a5679cd
fix(RAC): Select when label is numeric 0 (#6968)
unional Aug 28, 2024
bb05fdc
docs(RSP): clean up TreeView docs (#6959)
reidbarber Aug 28, 2024
82e10d3
fix: S2 upgrade assistant links and install step (#6972)
reidbarber Aug 29, 2024
32f8b8d
feat: add icon codemods (#6958)
reidbarber Aug 29, 2024
591e672
bump: update s2 tokens to v46 (#6948)
yihuiliao Aug 29, 2024
f365691
Fixing Tags so they properly truncate if wider than the container (#6…
LFDanLu Aug 29, 2024
cb6ce15
Merge branch 'main' into dialog-pinch-zoom
reidbarber Aug 29, 2024
65f219e
fix lint
snowystinger Sep 9, 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
88 changes: 56 additions & 32 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,11 +288,10 @@ jobs:
name: test
command: |
make build
yarn lerna run prepublishOnly
node --loader ./scripts/esm-support/loader.mjs ./scripts/esm-support/testESM.mjs

lint:
executor: rsp
executor: rsp-xlarge
steps:
- restore_cache:
key: react-spectrum-{{ .Environment.CACHE_VERSION }}-{{ .Environment.CIRCLE_SHA1 }}
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 Expand Up @@ -685,3 +700,12 @@ workflows:
jobs:
- install
- publish-nightly

nightly-manual:
when:
and:
- equal: [ "nightly", << pipeline.parameters.GHA_Action >> ]
- equal: [ "workflow_dispatch", << pipeline.parameters.GHA_Event >>]
jobs:
- install
- publish-nightly
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
12 changes: 12 additions & 0 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Manual nightly deploy
on: workflow_dispatch

jobs:
trigger-circleci:
runs-on: ubuntu-latest
steps:
- name: Run CircleCI
id: nightly
uses: CircleCI-Public/[email protected]
env:
CCI_TOKEN: ${{ secrets.CCI_TOKEN }}
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
7 changes: 6 additions & 1 deletion .parcelrc-build
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,18 @@
"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"],
"illustration:*.svg": ["@react-spectrum/parcel-transformer-s2-icon"],
"packages/@react-spectrum/s2/{s2wf-icons,spectrum-illustrations}/**/*.svg": ["@react-spectrum/parcel-transformer-s2-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-s2", "parcel-namer-intl", "..."]
}
19 changes: 19 additions & 0 deletions .storybook-s2/.parcelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"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", "..."],
"illustration:*.svg": ["@react-spectrum/parcel-transformer-s2-icon"],
"packages/@react-spectrum/s2/s2wf-icons/**/*.svg": ["@react-spectrum/parcel-transformer-s2-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"]
}
}
44 changes: 44 additions & 0 deletions .storybook-s2/constants.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// Based on https://adobe.sharepoint.com/sites/global/SitePages/Languages%20Supported.aspx
export let locales = [
{label: 'Auto', value: ''},
// Tier 1
{label: 'French (France)', value: 'fr-FR'},
{label: 'French (Canada)', value: 'fr-CA'},
{label: 'German (Germany)', value: 'de-DE'},
{label: 'English (Great Britain)', value: 'en-GB'},
{label: 'English (United States)', value: 'en-US'},
{label: 'Japanese (Japan)', value: 'ja-JP'},
// // Tier 2
{label: 'Danish (Denmark)', value: 'da-DK'},
{label: 'Dutch (Netherlands)', value: 'nl-NL'},
{label: 'Finnish (Finland)', value: 'fi-FI'},
{label: 'Italian (Italy)', value: 'it-IT'},
{label: 'Norwegian (Norway)', value: 'nb-NO'},
{label: 'Spanish (Spain)', value: 'es-ES'},
{label: 'Swedish (Sweden)', value: 'sv-SE'},
{label: 'Portuguese (Brazil)', value: 'pt-BR'},
// // Tier 3
{label: 'Chinese (Simplified)', value: 'zh-CN'},
{label: 'Chinese (Traditional)', value: 'zh-TW'},
{label: 'Korean (Korea)', value: 'ko-KR'},
// // Tier 4
{label: 'Bulgarian (Bulgaria)', value: 'bg-BG'},
{label: 'Croatian (Croatia)', value: 'hr-HR'},
{label: 'Czech (Czech Republic)', value: 'cs-CZ'},
{label: 'Estonian (Estonia)', value: 'et-EE'},
{label: 'Hungarian (Hungary)', value: 'hu-HU'},
{label: 'Latvian (Latvia)', value: 'lv-LV'},
{label: 'Lithuanian (Lithuania)', value: 'lt-LT'},
{label: 'Polish (Poland)', value: 'pl-PL'},
{label: 'Romanian (Romania)', value: 'ro-RO'},
{label: 'Russian (Russia)', value: 'ru-RU'},
{label: 'Serbian (Serbia)', value: 'sr-SP'},
{label: 'Slovakian (Slovakia)', value: 'sk-SK'},
{label: 'Slovenian (Slovenia)', value: 'sl-SI'},
{label: 'Turkish (Turkey)', value: 'tr-TR'},
{label: 'Ukrainian (Ukraine)', value: 'uk-UA'},
// // Tier 5
{label: 'Arabic (United Arab Emirates)', value: 'ar-AE'}, // ar-SA??
{label: 'Greek (Greece)', value: 'el-GR'},
{label: 'Hebrew (Israel)', value: 'he-IL'}
];
50 changes: 50 additions & 0 deletions .storybook-s2/custom-addons/provider/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import React, {useEffect, useState} from 'react';
import {addons} from '@storybook/preview-api';
import {makeDecorator} from '@storybook/preview-api';
import {getQueryParams} from '@storybook/preview-api';
import {Provider} from '@react-spectrum/s2';

document.body.style.margin = '0';

const providerValuesFromUrl = Object.entries(getQueryParams()).reduce((acc, [k, v]) => {
if (k.includes('providerSwitcher-')) {
return { ...acc, [k.replace('providerSwitcher-', '')]: v };
}
return acc;
}, {});

function ProviderUpdater(props) {
let [localeValue, setLocale] = useState(providerValuesFromUrl.locale || undefined);

useEffect(() => {
let channel = addons.getChannel();
let providerUpdate = (event) => {
setLocale(event.locale);
};

channel.on('provider/updated', providerUpdate);
channel.emit('rsp/ready-for-update');
return () => {
channel.removeListener('provider/updated', providerUpdate);
};
}, []);

return (
<Provider locale={localeValue}>
{props.children}
</Provider>
);
}

export const withProviderSwitcher = makeDecorator({
name: 'withProviderSwitcher',
parameterName: 'providerSwitcher',
wrapper: (getStory, context, {options, parameters}) => {
options = {...options, ...parameters};
return (
<ProviderUpdater options={options} context={context}>
{getStory(context)}
</ProviderUpdater>
);
}
});
Loading