From 7f191ea88dab88787098e7fe8fe0e4f7ab0c0656 Mon Sep 17 00:00:00 2001 From: Danni Date: Fri, 21 Feb 2020 14:21:41 -0800 Subject: [PATCH] Prep for os (#206) --- .circleci/.npmrc | 7 - .circleci/config.yml | 3 +- .github/ISSUE_TEMPLATE/Feedback.md | 33 +++ .github/PULL_REQUEST_TEMPLATE.md | 8 +- .npmrc | 7 - .storybook-v3/custom-addons/provider/index.js | 11 +- .yarnrc | 1 + CODE_OF_CONDUCT.md | 74 +++++++ CONTRIBUTING.md | 48 +++++ LICENSE | 201 ++++++++++++++++++ Makefile | 62 +++--- README.md | 65 ++---- __mocks__/fileMock.js | 12 ++ __mocks__/iconMock.js | 12 ++ bin/sort-imports.js | 12 ++ jest.config.js | 23 +- lib/postcss-hover-media.js | 12 ++ lib/varsToTypeScript.js | 12 ++ lint-packages.js | 16 +- package.json | 14 +- packages/@adobe/react-spectrum/README.md | 4 +- packages/@adobe/react-spectrum/package.json | 2 +- .../components/accordion/index.css | 1 - .../components/accordion/vars.css | 12 ++ .../components/actionmenu/vars.css | 12 ++ .../components/alert/vars.css | 12 ++ .../components/asset/vars.css | 12 ++ .../components/assetlist/vars.css | 12 ++ .../components/avatar/vars.css | 12 ++ .../components/banner/vars.css | 12 ++ .../components/barloader/vars.css | 12 ++ .../components/breadcrumb/vars.css | 12 ++ .../components/button/vars.css | 12 ++ .../components/buttongroup/vars.css | 12 ++ .../components/calendar/vars.css | 12 ++ .../components/card/vars.css | 12 ++ .../components/checkbox/vars.css | 12 ++ .../components/circleloader/vars.css | 12 ++ .../components/coachmark/vars.css | 12 ++ .../components/cyclebutton/vars.css | 12 ++ .../components/dialog/vars.css | 12 ++ .../components/dropdown/vars.css | 12 ++ .../components/dropindicator/vars.css | 12 ++ .../components/dropzone/vars.css | 12 ++ .../components/fieldgroup/vars.css | 12 ++ .../components/fieldlabel/vars.css | 12 ++ .../components/icon/vars.css | 12 ++ .../components/illustratedmessage/vars.css | 12 ++ .../components/inputgroup/vars.css | 12 ++ .../components/label/vars.css | 12 ++ .../components/link/vars.css | 12 ++ .../components/menu/vars.css | 12 ++ .../components/miller/vars.css | 12 ++ .../components/modal/vars.css | 12 ++ .../components/page/vars.css | 12 ++ .../components/pagination/vars.css | 12 ++ .../components/popover/vars.css | 12 ++ .../components/quickaction/vars.css | 12 ++ .../components/radio/vars.css | 12 ++ .../components/rating/vars.css | 12 ++ .../components/rule/vars.css | 12 ++ .../components/search/vars.css | 12 ++ .../components/searchwithin/vars.css | 12 ++ .../components/sidenav/vars.css | 12 ++ .../components/slider/vars.css | 12 ++ .../components/splitbutton/vars.css | 12 ++ .../components/splitview/vars.css | 12 ++ .../components/statuslight/vars.css | 12 ++ .../components/steplist/vars.css | 12 ++ .../components/stepper/vars.css | 12 ++ .../components/table/vars.css | 12 ++ .../components/tabs/vars.css | 12 ++ .../components/tags/vars.css | 12 ++ .../components/textfield/vars.css | 12 ++ .../components/toast/vars.css | 12 ++ .../components/toggle/vars.css | 12 ++ .../components/tooltip/vars.css | 12 ++ .../components/tray/index.css | 12 ++ .../components/tray/skin.css | 12 ++ .../components/tray/vars.css | 12 ++ .../components/treeview/vars.css | 12 ++ .../components/typography/vars.css | 12 ++ .../components/underlay/vars.css | 12 ++ .../components/well/vars.css | 12 ++ .../vars/spectrum-dark-unique.css | 12 ++ .../spectrum-css-temp/vars/spectrum-dark.css | 12 ++ .../vars/spectrum-darkest-unique.css | 12 ++ .../vars/spectrum-darkest.css | 12 ++ .../vars/spectrum-global-unique.css | 12 ++ .../vars/spectrum-global.css | 12 ++ .../vars/spectrum-large-unique.css | 12 ++ .../spectrum-css-temp/vars/spectrum-large.css | 12 ++ .../vars/spectrum-light-unique.css | 12 ++ .../spectrum-css-temp/vars/spectrum-light.css | 12 ++ .../vars/spectrum-lightest-unique.css | 12 ++ .../vars/spectrum-lightest.css | 12 ++ .../vars/spectrum-medium-unique.css | 12 ++ .../vars/spectrum-medium.css | 12 ++ packages/@react-aria/README.md | 2 + packages/@react-aria/breadcrumbs/index.ts | 12 ++ packages/@react-aria/breadcrumbs/package.json | 3 +- packages/@react-aria/breadcrumbs/src/index.ts | 12 ++ .../breadcrumbs/src/useBreadcrumbItem.ts | 12 ++ .../breadcrumbs/src/useBreadcrumbs.ts | 12 ++ .../test/useBreadcrumbItem.test.js | 12 ++ .../breadcrumbs/test/useBreadcrumbs.test.js | 12 ++ packages/@react-aria/button/index.ts | 12 ++ packages/@react-aria/button/package.json | 3 +- packages/@react-aria/button/src/index.ts | 12 ++ packages/@react-aria/button/src/useButton.ts | 12 ++ .../@react-aria/button/src/useButtonGroup.ts | 12 ++ .../@react-aria/button/test/useButton.test.js | 12 ++ .../button/test/useButtonGroup.test.js | 12 ++ packages/@react-aria/calendar/index.ts | 12 ++ packages/@react-aria/calendar/package.json | 3 +- packages/@react-aria/calendar/src/index.ts | 12 ++ packages/@react-aria/calendar/src/types.ts | 12 ++ .../@react-aria/calendar/src/useCalendar.ts | 12 ++ .../calendar/src/useCalendarBase.ts | 12 ++ .../calendar/src/useCalendarCell.ts | 12 ++ .../calendar/src/useRangeCalendar.ts | 12 ++ packages/@react-aria/checkbox/index.ts | 12 ++ packages/@react-aria/checkbox/package.json | 3 +- packages/@react-aria/checkbox/src/index.ts | 12 ++ .../@react-aria/checkbox/src/useCheckbox.ts | 12 ++ packages/@react-aria/collections/index.ts | 12 ++ packages/@react-aria/collections/package.json | 3 +- .../collections/src/CollectionView.tsx | 12 ++ .../collections/src/ScrollView.tsx | 12 ++ packages/@react-aria/collections/src/index.ts | 12 ++ packages/@react-aria/datepicker/index.ts | 12 ++ packages/@react-aria/datepicker/package.json | 3 +- packages/@react-aria/datepicker/src/index.ts | 12 ++ .../datepicker/src/useDateField.ts | 12 ++ .../datepicker/src/useDatePicker.ts | 12 ++ .../datepicker/src/useDateRangePicker.ts | 12 ++ .../datepicker/src/useDateSegment.ts | 12 ++ packages/@react-aria/dialog/index.ts | 12 ++ packages/@react-aria/dialog/package.json | 3 +- packages/@react-aria/dialog/src/index.ts | 12 ++ packages/@react-aria/dialog/src/useDialog.ts | 12 ++ .../@react-aria/dialog/src/useModalDialog.tsx | 12 ++ .../@react-aria/dialog/test/useDialog.test.js | 12 ++ .../dialog/test/useModalDialog.test.js | 12 ++ packages/@react-aria/focus/index.ts | 12 ++ packages/@react-aria/focus/package.json | 3 +- packages/@react-aria/focus/src/FocusRing.tsx | 12 ++ packages/@react-aria/focus/src/FocusScope.tsx | 12 ++ packages/@react-aria/focus/src/index.ts | 12 ++ .../@react-aria/focus/src/useFocusable.ts | 12 ++ .../@react-aria/focus/test/FocusScope.test.js | 12 ++ packages/@react-aria/i18n/index.ts | 12 ++ packages/@react-aria/i18n/package.json | 3 +- packages/@react-aria/i18n/src/context.tsx | 12 ++ packages/@react-aria/i18n/src/index.ts | 12 ++ .../@react-aria/i18n/src/useDateFormatter.ts | 12 ++ .../@react-aria/i18n/src/useDefaultLocale.ts | 12 ++ .../i18n/src/useMessageFormatter.ts | 12 ++ .../i18n/src/useNumberFormatter.ts | 12 ++ .../@react-aria/illustrated-message/index.ts | 12 ++ .../illustrated-message/package.json | 3 +- .../illustrated-message/src/index.ts | 12 ++ .../src/useIllustratedMessage.ts | 12 ++ packages/@react-aria/interactions/index.ts | 12 ++ .../@react-aria/interactions/package.json | 3 +- .../interactions/src/DOMPropsContext.ts | 12 ++ .../interactions/src/DOMPropsResponder.tsx | 13 +- .../interactions/src/PressResponder.tsx | 12 ++ .../interactions/src/Pressable.tsx | 12 ++ .../@react-aria/interactions/src/context.ts | 12 ++ .../interactions/src/createEventHandler.ts | 12 ++ .../@react-aria/interactions/src/index.ts | 12 ++ .../interactions/src/useDOMPropsResponder.ts | 12 ++ .../@react-aria/interactions/src/useFocus.ts | 12 ++ .../interactions/src/useFocusVisible.ts | 12 ++ .../interactions/src/useFocusWithin.ts | 12 ++ .../@react-aria/interactions/src/useHover.ts | 12 ++ .../interactions/src/useInteractOutside.ts | 12 ++ .../interactions/src/useKeyboard.ts | 12 ++ .../@react-aria/interactions/src/usePress.ts | 12 ++ .../interactions/test/PressResponder.test.js | 12 ++ .../interactions/test/Pressable.test.js | 12 ++ .../interactions/test/useFocus.test.js | 12 ++ .../interactions/test/useFocusWithin.test.js | 12 ++ .../test/useInteractOutside.test.js | 12 ++ .../interactions/test/useKeyboard.test.js | 12 ++ .../interactions/test/usePress.test.js | 12 ++ packages/@react-aria/label/index.ts | 12 ++ packages/@react-aria/label/package.json | 3 +- packages/@react-aria/label/src/index.ts | 12 ++ packages/@react-aria/label/src/useLabel.ts | 12 ++ .../@react-aria/label/test/useLabel.test.js | 12 ++ packages/@react-aria/link/index.ts | 12 ++ packages/@react-aria/link/package.json | 3 +- packages/@react-aria/link/src/index.ts | 12 ++ packages/@react-aria/link/src/useLink.ts | 12 ++ .../@react-aria/link/test/useLink.test.js | 12 ++ packages/@react-aria/live-announcer/index.ts | 12 ++ .../@react-aria/live-announcer/package.json | 3 +- .../live-announcer/src/LiveAnnouncer.tsx | 12 ++ .../@react-aria/live-announcer/src/index.ts | 12 ++ packages/@react-aria/menu-trigger/index.ts | 12 ++ .../@react-aria/menu-trigger/package.json | 3 +- .../@react-aria/menu-trigger/src/index.ts | 12 ++ .../@react-aria/menu-trigger/src/useMenu.ts | 12 ++ .../menu-trigger/src/useMenuTrigger.ts | 12 ++ .../menu-trigger/test/useMenu.test.js | 12 ++ .../menu-trigger/test/useMenuTrigger.test.js | 12 ++ packages/@react-aria/meter/index.ts | 12 ++ packages/@react-aria/meter/package.json | 3 +- packages/@react-aria/meter/src/index.ts | 12 ++ packages/@react-aria/meter/src/useMeter.ts | 12 ++ packages/@react-aria/numberfield/index.ts | 12 ++ packages/@react-aria/numberfield/package.json | 3 +- packages/@react-aria/numberfield/src/index.ts | 12 ++ .../numberfield/src/useNumberField.ts | 12 ++ packages/@react-aria/overlays/index.ts | 12 ++ packages/@react-aria/overlays/package.json | 3 +- .../overlays/src/calculatePosition.ts | 12 ++ packages/@react-aria/overlays/src/index.ts | 12 ++ packages/@react-aria/overlays/src/useModal.ts | 12 ++ .../@react-aria/overlays/src/useOverlay.ts | 12 ++ .../overlays/src/useOverlayPosition.ts | 12 ++ .../overlays/src/useOverlayTrigger.ts | 12 ++ .../overlays/test/calculatePosition.test.js | 12 ++ .../overlays/test/useModal.test.js | 12 ++ .../overlays/test/useOverlay.test.js | 12 ++ .../overlays/test/useOverlayPosition.test.js | 12 ++ .../overlays/test/useOverlayTrigger.test.js | 12 ++ packages/@react-aria/pagination/index.ts | 12 ++ packages/@react-aria/pagination/intl/index.js | 12 ++ packages/@react-aria/pagination/package.json | 3 +- packages/@react-aria/pagination/src/index.ts | 12 ++ .../pagination/src/usePagination.ts | 12 ++ .../pagination/test/usePagination.test.js | 12 ++ packages/@react-aria/progress/index.ts | 12 ++ packages/@react-aria/progress/package.json | 3 +- packages/@react-aria/progress/src/index.ts | 12 ++ .../progress/src/useProgressBar.ts | 12 ++ .../progress/test/useProgressBar.test.js | 12 ++ packages/@react-aria/radio/index.ts | 12 ++ packages/@react-aria/radio/package.json | 3 +- packages/@react-aria/radio/src/index.ts | 12 ++ packages/@react-aria/radio/src/useRadio.ts | 12 ++ .../@react-aria/radio/src/useRadioGroup.ts | 12 ++ packages/@react-aria/searchfield/index.ts | 12 ++ packages/@react-aria/searchfield/json.d.ts | 12 ++ packages/@react-aria/searchfield/package.json | 3 +- packages/@react-aria/searchfield/src/index.ts | 12 ++ .../searchfield/src/useSearchField.ts | 12 ++ .../searchfield/test/useSearchField.test.js | 12 ++ packages/@react-aria/selection/index.ts | 12 ++ packages/@react-aria/selection/package.json | 3 +- packages/@react-aria/selection/src/index.ts | 12 ++ .../selection/src/useSelectableCollection.ts | 12 ++ .../selection/src/useSelectableItem.ts | 12 ++ packages/@react-aria/separator/index.ts | 12 ++ packages/@react-aria/separator/package.json | 3 +- packages/@react-aria/separator/src/index.ts | 12 ++ .../@react-aria/separator/src/useSeparator.ts | 12 ++ packages/@react-aria/sidenav/index.ts | 12 ++ packages/@react-aria/sidenav/package.json | 3 +- packages/@react-aria/sidenav/src/index.ts | 12 ++ .../@react-aria/sidenav/src/useSideNav.ts | 12 ++ .../@react-aria/sidenav/src/useSideNavItem.ts | 12 ++ .../sidenav/test/useSideNav.test.js | 12 ++ .../sidenav/test/useSideNavItem.test.js | 12 ++ packages/@react-aria/spinbutton/index.ts | 12 ++ packages/@react-aria/spinbutton/package.json | 3 +- packages/@react-aria/spinbutton/src/index.ts | 12 ++ .../spinbutton/src/useSpinButton.ts | 12 ++ .../spinbutton/test/useSpinButton.test.js | 12 ++ packages/@react-aria/splitview/index.ts | 12 ++ packages/@react-aria/splitview/package.json | 3 +- packages/@react-aria/splitview/src/index.ts | 12 ++ .../@react-aria/splitview/src/useSplitView.ts | 12 ++ packages/@react-aria/switch/index.ts | 12 ++ packages/@react-aria/switch/package.json | 3 +- packages/@react-aria/switch/src/index.ts | 12 ++ packages/@react-aria/switch/src/useSwitch.ts | 12 ++ packages/@react-aria/tabs/index.ts | 12 ++ packages/@react-aria/tabs/package.json | 3 +- packages/@react-aria/tabs/src/index.ts | 12 ++ packages/@react-aria/tabs/src/useTabList.ts | 12 ++ packages/@react-aria/tag/index.ts | 12 ++ packages/@react-aria/tag/package.json | 3 +- packages/@react-aria/tag/src/index.ts | 12 ++ packages/@react-aria/tag/src/useTag.ts | 12 ++ packages/@react-aria/tag/src/useTagGroup.ts | 12 ++ packages/@react-aria/tag/test/useTag.test.js | 12 ++ packages/@react-aria/textfield/index.ts | 12 ++ packages/@react-aria/textfield/package.json | 3 +- packages/@react-aria/textfield/src/index.ts | 12 ++ .../@react-aria/textfield/src/useTextField.ts | 12 ++ .../textfield/test/useTextField.test.js | 12 ++ packages/@react-aria/toast/index.ts | 12 ++ packages/@react-aria/toast/package.json | 3 +- packages/@react-aria/toast/src/index.ts | 12 ++ packages/@react-aria/toast/src/useToast.ts | 12 ++ .../@react-aria/toast/test/useToast.test.js | 12 ++ packages/@react-aria/toggle/index.ts | 12 ++ packages/@react-aria/toggle/package.json | 3 +- packages/@react-aria/toggle/src/index.ts | 12 ++ packages/@react-aria/toggle/src/useToggle.ts | 12 ++ packages/@react-aria/tooltip/index.ts | 12 ++ packages/@react-aria/tooltip/package.json | 3 +- packages/@react-aria/tooltip/src/index.ts | 12 ++ .../@react-aria/tooltip/src/useTooltip.ts | 12 ++ .../tooltip/src/useTooltipTrigger.ts | 12 ++ .../tooltip/test/useTooltip.test.js | 12 ++ packages/@react-aria/tree/index.ts | 12 ++ packages/@react-aria/tree/package.json | 3 +- packages/@react-aria/tree/src/index.ts | 12 ++ packages/@react-aria/tree/src/useTree.ts | 12 +- packages/@react-aria/utils/index.ts | 12 ++ packages/@react-aria/utils/package.json | 3 +- packages/@react-aria/utils/src/chain.ts | 12 ++ packages/@react-aria/utils/src/getOffset.ts | 12 ++ packages/@react-aria/utils/src/index.ts | 12 ++ packages/@react-aria/utils/src/mergeProps.ts | 12 ++ packages/@react-aria/utils/src/number.ts | 12 ++ packages/@react-aria/utils/src/useDrag1D.ts | 12 ++ packages/@react-aria/utils/src/useId.ts | 12 ++ packages/@react-aria/utils/src/useLabels.ts | 12 ++ .../@react-aria/utils/src/useUpdateEffect.ts | 12 ++ packages/@react-aria/visually-hidden/index.ts | 12 ++ .../@react-aria/visually-hidden/package.json | 3 +- .../visually-hidden/src/VisuallyHidden.css | 12 ++ .../visually-hidden/src/VisuallyHidden.tsx | 12 ++ .../@react-aria/visually-hidden/src/index.ts | 12 ++ packages/@react-spectrum/README.md | 2 + packages/@react-spectrum/alert/index.ts | 12 ++ packages/@react-spectrum/alert/intl/index.js | 12 ++ packages/@react-spectrum/alert/package.json | 3 +- packages/@react-spectrum/alert/src/Alert.tsx | 12 ++ packages/@react-spectrum/alert/src/index.ts | 12 ++ .../alert/stories/Alert.stories.js | 13 ++ packages/@react-spectrum/breadcrumbs/index.ts | 12 ++ .../@react-spectrum/breadcrumbs/package.json | 3 +- .../breadcrumbs/src/BreadcrumbItem.tsx | 12 ++ .../breadcrumbs/src/Breadcrumbs.tsx | 12 ++ .../@react-spectrum/breadcrumbs/src/index.ts | 12 ++ .../stories/Breadcrumbs.stories.tsx | 13 ++ .../breadcrumbs/test/BreadcrumbItem.test.js | 12 ++ .../breadcrumbs/test/Breadcrumbs.test.js | 12 ++ .../@react-spectrum/button/docs/Button.mdx | 9 + packages/@react-spectrum/button/index.ts | 12 ++ packages/@react-spectrum/button/package.json | 3 +- .../button/src/ActionButton.tsx | 12 ++ .../@react-spectrum/button/src/Button.tsx | 12 ++ .../button/src/ButtonGroup.tsx | 12 ++ .../button/src/ClearButton.tsx | 12 ++ .../button/src/FieldButton.tsx | 12 ++ .../button/src/LogicButton.tsx | 12 ++ packages/@react-spectrum/button/src/index.ts | 12 ++ .../button/stories/ActionButton.stories.tsx | 13 ++ .../button/stories/Button.stories.tsx | 13 ++ .../button/stories/ButtonGroup.stories.tsx | 15 +- .../button/stories/LogicButton.stories.tsx | 13 ++ .../button/test/ActionButton.test.js | 12 ++ .../button/test/Button.test.js | 12 ++ .../button/test/ButtonGroup.test.js | 12 ++ .../button/test/ClearButton.test.js | 12 ++ packages/@react-spectrum/calendar/index.ts | 12 ++ .../@react-spectrum/calendar/package.json | 3 +- .../@react-spectrum/calendar/src/Calendar.tsx | 12 ++ .../calendar/src/CalendarBase.tsx | 12 ++ .../calendar/src/CalendarCell.tsx | 12 ++ .../calendar/src/CalendarTableBody.tsx | 12 ++ .../calendar/src/CalendarTableHeader.tsx | 12 ++ .../calendar/src/RangeCalendar.tsx | 12 ++ .../@react-spectrum/calendar/src/index.ts | 12 ++ .../calendar/stories/Calendar.stories.tsx | 12 ++ .../stories/RangeCalendar.stories.tsx | 12 ++ .../calendar/test/Calendar.test.js | 12 ++ .../calendar/test/CalendarBase.test.js | 12 ++ .../calendar/test/RangeCalendar.test.js | 12 ++ packages/@react-spectrum/checkbox/index.ts | 12 ++ .../@react-spectrum/checkbox/package.json | 3 +- .../@react-spectrum/checkbox/src/Checkbox.tsx | 12 ++ .../@react-spectrum/checkbox/src/index.ts | 12 ++ .../checkbox/stories/Checkbox.stories.tsx | 13 ++ .../checkbox/test/Checkbox.test.js | 12 ++ packages/@react-spectrum/datepicker/index.ts | 12 ++ .../@react-spectrum/datepicker/package.json | 3 +- .../datepicker/src/DatePicker.tsx | 12 ++ .../datepicker/src/DatePickerField.tsx | 12 ++ .../datepicker/src/DatePickerSegment.tsx | 12 ++ .../datepicker/src/DateRangePicker.tsx | 12 ++ .../@react-spectrum/datepicker/src/index.css | 12 ++ .../@react-spectrum/datepicker/src/index.ts | 12 ++ .../datepicker/stories/DatePicker.stories.tsx | 12 ++ .../stories/DateRangePicker.stories.tsx | 12 ++ .../datepicker/test/DatePicker.test.js | 12 ++ .../datepicker/test/DatePickerBase.test.js | 12 ++ .../datepicker/test/DateRangePicker.test.js | 12 ++ packages/@react-spectrum/dialog/index.ts | 12 ++ packages/@react-spectrum/dialog/package.json | 3 +- .../dialog/src/AlertDialog.tsx | 12 ++ .../@react-spectrum/dialog/src/Dialog.tsx | 12 ++ .../dialog/src/DialogTrigger.tsx | 12 ++ .../@react-spectrum/dialog/src/context.ts | 12 ++ packages/@react-spectrum/dialog/src/index.ts | 12 ++ .../dialog/stories/Dialog.stories.tsx | 15 +- .../dialog/stories/DialogTrigger.stories.tsx | 13 ++ .../dialog/test/Dialog.test.js | 12 ++ .../dialog/test/DialogTrigger.test.js | 12 ++ packages/@react-spectrum/divider/index.ts | 12 ++ packages/@react-spectrum/divider/package.json | 3 +- .../@react-spectrum/divider/src/Divider.tsx | 12 ++ packages/@react-spectrum/divider/src/index.ts | 12 ++ .../divider/stories/Divider.stories.tsx | 13 ++ .../divider/test/Divider.test.js | 18 +- packages/@react-spectrum/form/index.ts | 12 ++ packages/@react-spectrum/form/package.json | 3 +- packages/@react-spectrum/form/src/Form.tsx | 12 ++ packages/@react-spectrum/form/src/index.ts | 12 ++ .../form/stories/Form.stories.tsx | 13 ++ .../@react-spectrum/form/test/Form.test.js | 12 ++ packages/@react-spectrum/icon/index.ts | 12 ++ packages/@react-spectrum/icon/package.json | 3 +- packages/@react-spectrum/icon/src/Icon.tsx | 12 ++ packages/@react-spectrum/icon/src/UIIcon.tsx | 12 ++ packages/@react-spectrum/icon/src/index.ts | 12 ++ .../icon/stories/Icon.stories.tsx | 13 ++ .../@react-spectrum/icon/test/Icon.test.js | 12 ++ .../@react-spectrum/icon/test/UIIcon.test.js | 12 ++ .../illustrated-message/index.ts | 12 ++ .../illustrated-message/package.json | 3 +- .../src/IllustratedMessage.tsx | 12 ++ .../illustrated-message/src/index.ts | 12 ++ .../stories/IllustratedMessage.stories.tsx | 12 ++ .../test/IllustratedMessage.test.js | 12 ++ packages/@react-spectrum/image/index.ts | 12 ++ packages/@react-spectrum/image/package.json | 15 +- packages/@react-spectrum/image/src/Image.tsx | 12 ++ packages/@react-spectrum/image/src/index.ts | 12 ++ packages/@react-spectrum/label/index.ts | 12 ++ packages/@react-spectrum/label/package.json | 3 +- packages/@react-spectrum/label/src/Label.tsx | 12 ++ packages/@react-spectrum/label/src/index.ts | 12 ++ .../label/stories/Label.stories.tsx | 13 ++ packages/@react-spectrum/layout/index.ts | 12 ++ packages/@react-spectrum/layout/package.json | 15 +- packages/@react-spectrum/layout/src/Flex.tsx | 12 ++ packages/@react-spectrum/layout/src/Grid.tsx | 12 ++ packages/@react-spectrum/layout/src/index.ts | 12 ++ .../layout/stories/Grid.stories.tsx | 12 ++ .../@react-spectrum/layout/stories/styles.css | 12 ++ .../@react-spectrum/layout/test/Grid.test.js | 12 ++ packages/@react-spectrum/link/index.ts | 12 ++ packages/@react-spectrum/link/package.json | 3 +- packages/@react-spectrum/link/src/Link.tsx | 12 ++ packages/@react-spectrum/link/src/index.ts | 12 ++ .../link/stories/Link.stories.tsx | 13 ++ .../@react-spectrum/link/test/Link.test.js | 12 ++ .../@react-spectrum/menu-trigger/index.ts | 12 ++ .../@react-spectrum/menu-trigger/package.json | 6 +- .../@react-spectrum/menu-trigger/src/Menu.tsx | 14 +- .../menu-trigger/src/MenuTrigger.tsx | 12 ++ .../menu-trigger/src/context.ts | 12 ++ .../@react-spectrum/menu-trigger/src/index.ts | 12 ++ .../menu-trigger/stories/Menu.stories.tsx | 12 ++ .../stories/MenuTrigger.stories.tsx | 12 ++ .../menu-trigger/test/Menu.test.js | 12 ++ .../menu-trigger/test/MenuTrigger.test.js | 12 ++ packages/@react-spectrum/meter/index.ts | 12 ++ packages/@react-spectrum/meter/package.json | 3 +- packages/@react-spectrum/meter/src/Meter.tsx | 12 ++ packages/@react-spectrum/meter/src/index.ts | 12 ++ .../meter/stories/Meter.stories.tsx | 13 ++ .../@react-spectrum/meter/test/Meter.test.js | 12 ++ packages/@react-spectrum/numberfield/index.ts | 12 ++ .../@react-spectrum/numberfield/package.json | 3 +- .../numberfield/src/NumberField.tsx | 12 ++ .../@react-spectrum/numberfield/src/index.ts | 12 ++ .../stories/NumberField.stories.tsx | 13 ++ .../numberfield/test/NumberField.test.js | 12 ++ packages/@react-spectrum/overlays/index.ts | 12 ++ .../@react-spectrum/overlays/package.json | 3 +- .../@react-spectrum/overlays/src/Modal.tsx | 12 ++ .../overlays/src/OpenTransition.tsx | 12 ++ .../@react-spectrum/overlays/src/Overlay.tsx | 12 ++ .../@react-spectrum/overlays/src/Popover.tsx | 12 ++ .../@react-spectrum/overlays/src/Tray.tsx | 12 ++ .../@react-spectrum/overlays/src/Underlay.tsx | 12 ++ .../@react-spectrum/overlays/src/index.ts | 12 ++ .../@react-spectrum/overlays/src/overlays.css | 12 ++ .../overlays/stories/Modal.stories.tsx | 13 ++ .../overlays/test/Modal.test.js | 12 ++ .../overlays/test/Overlay.test.js | 12 ++ .../overlays/test/Popover.test.js | 12 ++ .../overlays/test/Tray.test.js | 12 ++ packages/@react-spectrum/pagination/index.ts | 12 ++ .../@react-spectrum/pagination/intl/index.js | 12 ++ .../@react-spectrum/pagination/package.json | 3 +- .../pagination/src/Pagination.tsx | 12 ++ .../@react-spectrum/pagination/src/index.ts | 12 ++ .../pagination/stories/pagination.stories.js | 12 ++ packages/@react-spectrum/progress/index.ts | 12 ++ .../@react-spectrum/progress/package.json | 3 +- .../progress/src/ProgressBar.tsx | 12 ++ .../progress/src/ProgressBarBase.tsx | 12 ++ .../progress/src/ProgressCircle.tsx | 12 ++ .../@react-spectrum/progress/src/index.ts | 12 ++ .../progress/stories/ProgressBar.stories.tsx | 13 ++ .../stories/ProgressCircle.stories.tsx | 13 ++ .../progress/test/ProgressBar.test.js | 12 ++ .../progress/test/ProgressCircle.test.js | 12 ++ packages/@react-spectrum/provider/index.ts | 12 ++ .../@react-spectrum/provider/package.json | 3 +- .../@react-spectrum/provider/src/Provider.tsx | 12 ++ .../provider/src/configureTypekit.js | 12 ++ .../@react-spectrum/provider/src/index.ts | 12 ++ .../provider/src/mediaQueries.ts | 12 ++ .../provider/stories/Provider.stories.tsx | 13 ++ .../provider/stories/custom-theme.css | 12 ++ packages/@react-spectrum/radio/docs/Radio.mdx | 9 + packages/@react-spectrum/radio/index.ts | 12 ++ packages/@react-spectrum/radio/package.json | 3 +- packages/@react-spectrum/radio/src/Radio.tsx | 12 ++ .../@react-spectrum/radio/src/RadioGroup.tsx | 12 ++ packages/@react-spectrum/radio/src/index.ts | 12 ++ .../radio/stories/Radio.stories.tsx | 13 ++ .../@react-spectrum/radio/test/Radio.test.js | 12 ++ packages/@react-spectrum/searchfield/index.ts | 12 ++ .../@react-spectrum/searchfield/package.json | 3 +- .../searchfield/src/SearchField.tsx | 12 ++ .../@react-spectrum/searchfield/src/index.ts | 12 ++ .../stories/SearchField.stories.js | 13 ++ .../searchfield/test/SearchField.test.js | 12 ++ packages/@react-spectrum/sidenav/index.ts | 12 ++ packages/@react-spectrum/sidenav/package.json | 3 +- .../@react-spectrum/sidenav/src/SideNav.tsx | 12 ++ packages/@react-spectrum/sidenav/src/index.ts | 12 ++ .../sidenav/stories/SideNav.css | 12 ++ .../sidenav/stories/SideNav.stories.tsx | 12 ++ .../sidenav/test/SideNav.test.js | 12 ++ packages/@react-spectrum/splitview/index.ts | 12 ++ .../@react-spectrum/splitview/package.json | 3 +- .../splitview/src/SplitView.css | 12 ++ .../splitview/src/SplitView.tsx | 12 ++ .../@react-spectrum/splitview/src/index.ts | 12 ++ .../splitview/stories/SplitView.css | 12 ++ .../splitview/stories/SplitView.stories.js | 12 ++ .../splitview/test/SplitView.test.js | 12 ++ packages/@react-spectrum/statuslight/index.ts | 12 ++ .../@react-spectrum/statuslight/package.json | 3 +- .../statuslight/src/StatusLight.tsx | 12 ++ .../@react-spectrum/statuslight/src/index.ts | 12 ++ .../stories/StatusLight.stories.tsx | 13 ++ .../statuslight/test/StatusLight.test.js | 12 ++ packages/@react-spectrum/switch/index.ts | 12 ++ packages/@react-spectrum/switch/package.json | 3 +- .../@react-spectrum/switch/src/Switch.tsx | 12 ++ packages/@react-spectrum/switch/src/index.ts | 12 ++ .../switch/stories/Switch.stories.tsx | 13 ++ .../switch/test/Switch.test.js | 12 ++ packages/@react-spectrum/tabs/index.ts | 12 ++ packages/@react-spectrum/tabs/package.json | 3 +- packages/@react-spectrum/tabs/src/Tab.tsx | 12 ++ packages/@react-spectrum/tabs/src/TabList.tsx | 12 ++ packages/@react-spectrum/tabs/src/Tabs.tsx | 12 ++ packages/@react-spectrum/tabs/src/index.ts | 12 ++ .../tabs/stories/TabList.stories.js | 12 ++ .../tabs/stories/Tabs.stories.js | 12 ++ packages/@react-spectrum/tabs/style/index.css | 12 ++ packages/@react-spectrum/tag/index.ts | 12 ++ packages/@react-spectrum/tag/package.json | 3 +- packages/@react-spectrum/tag/src/Tag.tsx | 12 ++ packages/@react-spectrum/tag/src/TagGroup.tsx | 12 ++ packages/@react-spectrum/tag/src/index.ts | 12 ++ .../tag/stories/Tag.stories.tsx | 12 ++ .../tag/stories/TagGroup.stories.tsx | 12 ++ packages/@react-spectrum/tag/test/Tag.test.js | 12 ++ .../@react-spectrum/tag/test/TagGroup.test.js | 12 ++ packages/@react-spectrum/test-utils/index.ts | 12 ++ .../@react-spectrum/test-utils/package.json | 3 +- .../@react-spectrum/test-utils/src/index.ts | 12 ++ .../test-utils/src/triggerPress.js | 12 ++ .../textfield/docs/TextField.mdx | 9 + packages/@react-spectrum/textfield/index.ts | 12 ++ .../@react-spectrum/textfield/package.json | 3 +- .../textfield/src/TextArea.tsx | 12 ++ .../textfield/src/TextField.tsx | 12 ++ .../textfield/src/TextFieldBase.tsx | 12 ++ .../@react-spectrum/textfield/src/index.ts | 12 ++ .../textfield/stories/TextArea.stories.js | 15 +- .../textfield/stories/Textfield.stories.js | 15 +- .../textfield/test/TextArea.test.js | 12 ++ .../textfield/test/TextField.test.js | 12 ++ .../@react-spectrum/theme-default/index.ts | 12 ++ .../theme-default/package.json | 3 +- .../theme-default/src/index.ts | 12 ++ packages/@react-spectrum/toast/index.ts | 12 ++ packages/@react-spectrum/toast/package.json | 3 +- packages/@react-spectrum/toast/src/Toast.tsx | 12 ++ .../toast/src/ToastContainer.tsx | 12 ++ .../toast/src/ToastProvider.tsx | 12 ++ packages/@react-spectrum/toast/src/index.ts | 12 ++ .../toast/src/toastContainer.css | 12 ++ .../toast/stories/Toast.stories.tsx | 12 ++ .../@react-spectrum/toast/test/Toast.test.js | 12 ++ .../toast/test/ToastContainer.test.js | 12 ++ packages/@react-spectrum/tooltip/index.ts | 12 ++ packages/@react-spectrum/tooltip/package.json | 3 +- .../@react-spectrum/tooltip/src/Tooltip.tsx | 12 ++ .../tooltip/src/TooltipTrigger.tsx | 12 ++ packages/@react-spectrum/tooltip/src/index.ts | 12 ++ .../tooltip/stories/Tooltip.stories.tsx | 12 ++ .../tooltip/test/Tooltip.test.js | 12 ++ .../tooltip/test/TooltipTrigger.test.js | 12 ++ packages/@react-spectrum/tree/index.ts | 12 ++ packages/@react-spectrum/tree/package.json | 3 +- packages/@react-spectrum/tree/src/Tree.tsx | 12 ++ packages/@react-spectrum/tree/src/index.ts | 12 ++ .../tree/stories/TreeView.stories.tsx | 12 ++ packages/@react-spectrum/typography/index.ts | 12 ++ .../@react-spectrum/typography/package.json | 15 +- .../typography/src/Heading.tsx | 12 ++ .../typography/src/Keyboard.tsx | 12 ++ .../@react-spectrum/typography/src/Text.tsx | 12 ++ .../@react-spectrum/typography/src/index.ts | 12 ++ packages/@react-spectrum/utils/index.ts | 12 ++ packages/@react-spectrum/utils/package.json | 3 +- packages/@react-spectrum/utils/src/Slots.ts | 12 ++ .../@react-spectrum/utils/src/classNames.ts | 12 ++ .../utils/src/filterDOMProps.ts | 12 ++ .../utils/src/getWrappedElement.tsx | 12 ++ packages/@react-spectrum/utils/src/index.ts | 12 ++ .../@react-spectrum/utils/src/styleProps.ts | 12 ++ .../@react-spectrum/utils/src/useDOMRef.ts | 12 ++ .../utils/src/useMediaQuery.ts | 12 ++ packages/@react-spectrum/view/index.ts | 12 ++ packages/@react-spectrum/view/package.json | 3 +- packages/@react-spectrum/view/src/Content.tsx | 12 ++ packages/@react-spectrum/view/src/Footer.tsx | 12 ++ packages/@react-spectrum/view/src/Header.tsx | 12 ++ packages/@react-spectrum/view/src/View.tsx | 12 ++ packages/@react-spectrum/view/src/index.ts | 12 ++ .../view/stories/View.stories.tsx | 12 ++ .../@react-spectrum/view/test/View.test.js | 12 ++ packages/@react-spectrum/well/index.ts | 12 ++ packages/@react-spectrum/well/package.json | 3 +- packages/@react-spectrum/well/src/Well.tsx | 12 ++ packages/@react-spectrum/well/src/index.ts | 12 ++ .../well/stories/Well.stories.js | 13 ++ .../@react-spectrum/well/test/Well.test.js | 12 ++ packages/@react-stately/README.md | 2 + packages/@react-stately/button/index.ts | 12 ++ packages/@react-stately/button/package.json | 15 +- .../button/src/ButtonGroupCollection.ts | 12 ++ .../button/src/ButtonGroupKeyboardDelegate.ts | 12 ++ packages/@react-stately/button/src/index.ts | 12 ++ packages/@react-stately/button/src/types.ts | 12 ++ .../button/src/useButtonGroupState.ts | 12 ++ packages/@react-stately/calendar/index.ts | 12 ++ packages/@react-stately/calendar/package.json | 3 +- packages/@react-stately/calendar/src/index.ts | 12 ++ packages/@react-stately/calendar/src/types.ts | 12 ++ .../calendar/src/useCalendarState.ts | 12 ++ .../calendar/src/useRangeCalendarState.ts | 12 ++ .../calendar/src/useWeekStart.ts | 12 ++ packages/@react-stately/collections/index.ts | 12 ++ .../@react-stately/collections/package.json | 3 +- .../collections/src/CollectionBuilder.ts | 12 ++ .../collections/src/CollectionManager.ts | 12 ++ .../@react-stately/collections/src/Layout.ts | 12 ++ .../collections/src/LayoutInfo.ts | 12 ++ .../collections/src/ListLayout.ts | 12 ++ .../collections/src/OverscanManager.ts | 12 ++ .../@react-stately/collections/src/Point.ts | 13 +- .../@react-stately/collections/src/Rect.ts | 12 ++ .../collections/src/ReusableView.ts | 12 ++ .../@react-stately/collections/src/Size.ts | 13 +- .../collections/src/Transaction.ts | 12 ++ .../collections/src/TreeCollection.ts | 12 ++ .../@react-stately/collections/src/index.ts | 12 ++ .../@react-stately/collections/src/tween.ts | 12 ++ .../@react-stately/collections/src/types.ts | 12 ++ .../collections/src/useAsyncList.ts | 12 ++ .../collections/src/useCollectionState.ts | 12 ++ .../@react-stately/collections/src/utils.ts | 14 +- .../collections/stories/AsyncHook.stories.tsx | 12 ++ .../collections/test/useAsyncList.test.js | 12 ++ packages/@react-stately/datepicker/index.ts | 12 ++ .../@react-stately/datepicker/package.json | 3 +- .../@react-stately/datepicker/src/index.ts | 12 ++ .../datepicker/src/useDatePickerFieldState.ts | 12 ++ .../datepicker/src/useDatePickerState.ts | 12 ++ .../datepicker/src/useDateRangePickerState.ts | 12 ++ .../@react-stately/datepicker/src/utils.ts | 12 ++ packages/@react-stately/numberfield/index.ts | 12 ++ .../@react-stately/numberfield/package.json | 3 +- .../@react-stately/numberfield/src/index.ts | 12 ++ .../numberfield/src/useNumberFieldState.ts | 12 ++ packages/@react-stately/pagination/index.ts | 12 ++ .../@react-stately/pagination/package.json | 3 +- .../@react-stately/pagination/src/index.ts | 12 ++ .../pagination/src/usePaginationState.ts | 12 ++ .../test/usePaginationState.test.js | 12 ++ packages/@react-stately/radio/index.ts | 12 ++ packages/@react-stately/radio/package.json | 3 +- packages/@react-stately/radio/src/index.ts | 12 ++ .../radio/src/useRadioGroupState.ts | 12 ++ packages/@react-stately/searchfield/index.ts | 12 ++ .../@react-stately/searchfield/package.json | 3 +- .../@react-stately/searchfield/src/index.ts | 12 ++ .../searchfield/src/useSearchFieldState.ts | 12 ++ .../test/useSearchFieldState.test.js | 12 ++ packages/@react-stately/selection/index.ts | 12 ++ .../@react-stately/selection/package.json | 3 +- .../@react-stately/selection/src/Selection.ts | 12 ++ .../selection/src/SelectionManager.ts | 12 ++ .../@react-stately/selection/src/index.ts | 12 ++ .../@react-stately/selection/src/types.ts | 12 ++ .../src/useMultipleSelectionState.ts | 12 ++ packages/@react-stately/splitview/index.ts | 12 ++ .../@react-stately/splitview/package.json | 3 +- .../@react-stately/splitview/src/index.ts | 12 ++ .../splitview/src/useSplitViewState.ts | 12 ++ packages/@react-stately/tabs/index.ts | 12 ++ packages/@react-stately/tabs/package.json | 3 +- packages/@react-stately/tabs/src/index.ts | 12 ++ .../tabs/src/useTabListState.ts | 12 ++ .../tabs/test/useTabListStateJest.test.js | 12 ++ packages/@react-stately/toast/index.ts | 12 ++ packages/@react-stately/toast/package.json | 3 +- packages/@react-stately/toast/src/index.ts | 12 ++ .../@react-stately/toast/src/useToastState.ts | 12 ++ .../toast/test/useToastState.test.js | 12 ++ packages/@react-stately/toggle/index.ts | 12 ++ packages/@react-stately/toggle/package.json | 3 +- packages/@react-stately/toggle/src/index.ts | 12 ++ .../toggle/src/useToggleState.ts | 12 ++ packages/@react-stately/tooltip/index.ts | 12 ++ packages/@react-stately/tooltip/package.json | 3 +- .../tooltip/src/TooltipManager.ts | 14 +- packages/@react-stately/tooltip/src/index.ts | 12 ++ .../tooltip/src/useTooltipTriggerState.ts | 12 ++ packages/@react-stately/tree/index.ts | 12 ++ packages/@react-stately/tree/package.json | 3 +- packages/@react-stately/tree/src/index.ts | 12 ++ .../@react-stately/tree/src/useTreeState.ts | 12 ++ packages/@react-stately/utils/index.ts | 12 ++ packages/@react-stately/utils/package.json | 3 +- packages/@react-stately/utils/src/index.ts | 12 ++ .../utils/src/useControlledState.ts | 12 ++ .../utils/test/useControlledState.test.js | 12 ++ packages/@react-types/alert/package.json | 2 +- packages/@react-types/alert/src/index.d.ts | 12 ++ .../@react-types/breadcrumbs/package.json | 2 +- .../@react-types/breadcrumbs/src/index.d.ts | 12 ++ packages/@react-types/button/package.json | 2 +- packages/@react-types/button/src/index.d.ts | 12 ++ packages/@react-types/calendar/package.json | 2 +- packages/@react-types/calendar/src/index.d.ts | 12 ++ packages/@react-types/checkbox/package.json | 2 +- packages/@react-types/checkbox/src/index.d.ts | 12 ++ packages/@react-types/datepicker/package.json | 2 +- .../@react-types/datepicker/src/index.d.ts | 12 ++ packages/@react-types/dialog/package.json | 2 +- packages/@react-types/dialog/src/index.d.ts | 12 ++ packages/@react-types/divider/package.json | 2 +- packages/@react-types/divider/src/index.d.ts | 12 ++ packages/@react-types/form/package.json | 2 +- packages/@react-types/form/src/index.d.ts | 12 ++ .../illustrated-message/package.json | 2 +- .../illustrated-message/src/index.d.ts | 12 ++ packages/@react-types/image/package.json | 2 +- packages/@react-types/image/src/index.d.ts | 12 ++ packages/@react-types/label/package.json | 2 +- packages/@react-types/label/src/index.d.ts | 12 ++ packages/@react-types/layout/package.json | 2 +- packages/@react-types/layout/src/flex.d.ts | 12 ++ packages/@react-types/layout/src/grid.d.ts | 12 ++ packages/@react-types/layout/src/index.d.ts | 12 ++ packages/@react-types/link/package.json | 2 +- packages/@react-types/link/src/index.d.ts | 12 ++ packages/@react-types/meter/package.json | 2 +- packages/@react-types/meter/src/index.d.ts | 12 ++ .../@react-types/numberfield/package.json | 2 +- .../@react-types/numberfield/src/index.d.ts | 12 ++ packages/@react-types/overlays/package.json | 2 +- packages/@react-types/overlays/src/index.d.ts | 12 ++ packages/@react-types/pagination/package.json | 2 +- .../@react-types/pagination/src/index.d.ts | 12 ++ packages/@react-types/progress/package.json | 2 +- packages/@react-types/progress/src/index.d.ts | 12 ++ packages/@react-types/provider/package.json | 2 +- packages/@react-types/provider/src/index.d.ts | 12 ++ packages/@react-types/radio/package.json | 2 +- packages/@react-types/radio/src/index.d.ts | 12 ++ .../@react-types/searchfield/package.json | 2 +- .../@react-types/searchfield/src/index.d.ts | 12 ++ packages/@react-types/shared/package.json | 2 +- .../@react-types/shared/src/collections.d.ts | 11 + packages/@react-types/shared/src/css.d.ts | 13 +- packages/@react-types/shared/src/dna.d.ts | 12 +- packages/@react-types/shared/src/dnd.d.ts | 12 ++ packages/@react-types/shared/src/dom.d.ts | 12 ++ packages/@react-types/shared/src/events.d.ts | 12 ++ packages/@react-types/shared/src/index.d.ts | 12 ++ packages/@react-types/shared/src/inputs.d.ts | 12 ++ .../@react-types/shared/src/labelable.d.ts | 12 ++ .../@react-types/shared/src/orientation.d.ts | 12 ++ packages/@react-types/shared/src/refs.d.ts | 12 ++ .../@react-types/shared/src/removable.d.ts | 12 ++ .../@react-types/shared/src/selection.d.ts | 12 ++ .../@react-types/shared/src/splitview.d.ts | 12 ++ packages/@react-types/shared/src/style.d.ts | 12 ++ .../@react-types/statuslight/package.json | 2 +- .../@react-types/statuslight/src/index.d.ts | 12 ++ packages/@react-types/switch/package.json | 2 +- packages/@react-types/switch/src/index.d.ts | 12 ++ packages/@react-types/tag/package.json | 2 +- packages/@react-types/tag/src/index.d.ts | 12 ++ packages/@react-types/textfield/package.json | 2 +- .../@react-types/textfield/src/index.d.ts | 12 ++ packages/@react-types/toast/package.json | 2 +- packages/@react-types/toast/src/index.d.ts | 12 ++ packages/@react-types/tooltip/package.json | 2 +- packages/@react-types/tooltip/src/index.d.ts | 12 ++ packages/@react-types/typography/package.json | 2 +- .../@react-types/typography/src/heading.d.ts | 12 ++ .../@react-types/typography/src/index.d.ts | 12 ++ .../@react-types/typography/src/keyboard.d.ts | 12 ++ .../@react-types/typography/src/text.d.ts | 12 ++ packages/@react-types/well/package.json | 2 +- packages/@react-types/well/src/index.d.ts | 12 ++ .../@spectrum-icons/build-tools/README.md | 2 + .../build-tools/generateIcons.js | 12 ++ packages/@spectrum-icons/color/package.json | 6 +- .../color/scripts/generateIcons.js | 12 ++ .../color/stories/IconsColor.stories.tsx | 12 ++ packages/@spectrum-icons/ui/package.json | 6 +- .../ui/scripts/generateIcons.js | 12 ++ .../@spectrum-icons/workflow/package.json | 6 +- .../workflow/scripts/generateIcons.js | 12 ++ .../stories/IconsWorkflow.stories.tsx | 12 ++ packages/README.md | 39 ---- packages/dev/docs/pages/index.mdx | 9 + packages/dev/docs/src/HeaderInfo.js | 12 ++ packages/dev/docs/src/Layout.js | 12 ++ packages/dev/docs/src/PropTable.js | 12 ++ packages/dev/docs/src/ResourceCard.js | 12 ++ packages/dev/docs/src/ThemeSwitcher.js | 12 ++ packages/dev/docs/src/ToC.js | 12 ++ packages/dev/docs/src/attachToToC.js | 12 ++ packages/dev/docs/src/client.js | 12 ++ packages/dev/docs/src/docs.css | 12 ++ packages/dev/docs/src/headerInfo.css | 12 ++ packages/dev/docs/src/index.js | 12 ++ packages/dev/docs/src/resourceCard.css | 12 ++ packages/dev/docs/src/syntax-highlight.css | 12 ++ packages/dev/docs/src/template.mdx | 9 + packages/dev/docs/src/toc.css | 12 ++ packages/dev/docs/src/types.js | 12 ++ packages/dev/parcel-namer-docs/DocsNamer.js | 12 ++ .../dev/parcel-packager-docs/DocsPackager.js | 12 ++ .../dev/parcel-packager-ssg/SSGPackager.js | 12 ++ .../dev/parcel-resolver-docs/DocsResolver.js | 12 ++ .../DocsTransformer.js | 12 ++ .../MDXFragments.js | 12 ++ .../MDXTransformer.js | 12 ++ plop-actions/renameMany.js | 12 ++ plop-templates/@react-aria/index.ts.hbs | 12 ++ plop-templates/@react-aria/package.json.hbs | 3 +- plop-templates/@react-aria/src/index.ts.hbs | 12 ++ .../@react-aria/src/useComponent.ts.hbs | 12 ++ .../@react-aria/test/useComponent.test.js.hbs | 12 ++ plop-templates/@react-spectrum/index.ts.hbs | 12 ++ .../@react-spectrum/package.json.hbs | 3 +- .../@react-spectrum/src/Component.tsx.hbs | 12 ++ .../@react-spectrum/src/index.ts.hbs | 12 ++ .../stories/Component.stories.tsx.hbs | 12 ++ .../test/Component.test.js.hbs | 12 ++ plop-templates/@react-stately/index.ts.hbs | 12 ++ .../@react-stately/package.json.hbs | 3 +- .../@react-stately/src/index.ts.hbs | 12 ++ .../src/useComponentState.ts.hbs | 12 ++ plop-templates/@react-types/package.json.hbs | 3 +- .../@react-types/src/index.d.ts.hbs | 12 ++ plop-templates/@scope/index.ts.hbs | 12 ++ plop-templates/@scope/package.json.hbs | 3 +- plop-templates/@scope/src/index.ts.hbs | 11 + plopfile.js | 12 ++ postcss.config.js | 12 ++ rfcs/2019-v3-architecture.md | 9 + rfcs/2019-v3-dom-props.md | 11 +- rfcs/2019-v3-semantic-elements.md | 9 + rfcs/2019-v3-slots.md | 9 + rfcs/2019-v3-testing.md | 9 + rfcs/2019-v3-theming.md | 9 + rfcs/2019-v3-versioning.md | 9 + rfcs/template.md | 9 + scripts/addHeaders.js | 89 +++++--- scripts/bumpVersions.js | 12 ++ scripts/cleanIcons.js | 12 ++ scripts/jest.js | 32 +++ scripts/merge-spectrum-css.js | 12 ++ setupTests.js | 12 ++ specs/accessibility/Breadcrumbs.mdx | 9 + specs/accessibility/ButtonGroup.mdx | 9 + specs/accessibility/Card.mdx | 9 + specs/accessibility/List.mdx | 9 + specs/accessibility/Menu.mdx | 9 + specs/accessibility/MenuTrigger.mdx | 9 + specs/accessibility/Select.mdx | 9 + specs/accessibility/Toast.mdx | 9 + specs/accessibility/Tooltip.mdx | 9 + specs/api/Avatar.md | 9 + specs/api/Button.md | 9 + specs/api/Calendar.md | 9 + specs/api/Card.md | 9 + specs/api/Checkbox.md | 9 + specs/api/Divider.md | 9 + specs/api/Form.md | 9 + specs/api/Guidelines.md | 9 + specs/api/Icon.md | 9 + specs/api/Link.md | 9 + specs/api/MenuTrigger.md | 9 + specs/api/Pagination.md | 9 + specs/api/Progress.md | 9 + specs/api/Provider.md | 9 + specs/api/QuickActions.md | 9 + specs/api/Radio.md | 9 + specs/api/Shared.md | 9 + specs/api/StatusLight.md | 9 + specs/api/TextFields.md | 9 + specs/api/Well.md | 9 + 931 files changed, 10028 insertions(+), 358 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/Feedback.md create mode 100644 .yarnrc create mode 100644 CODE_OF_CONDUCT.md create mode 100644 CONTRIBUTING.md create mode 100644 LICENSE delete mode 100644 packages/README.md create mode 100644 scripts/jest.js diff --git a/.circleci/.npmrc b/.circleci/.npmrc index 491eaf01892..c0d87401081 100644 --- a/.circleci/.npmrc +++ b/.circleci/.npmrc @@ -7,11 +7,4 @@ always-auth=false //artifactory-uw2.adobeitc.com/artifactory/api/npm/npm-react-release/:email=lfnpm@adobe.com //artifactory-uw2.adobeitc.com/artifactory/api/npm/npm-react-release/:always-auth=true -@react-aria:registry=https://artifactory-uw2.adobeitc.com/artifactory/api/npm/npm-rsp-tmp-release/ -@react-spectrum:registry=https://artifactory-uw2.adobeitc.com/artifactory/api/npm/npm-rsp-tmp-release/ -@react-stately:registry=https://artifactory-uw2.adobeitc.com/artifactory/api/npm/npm-rsp-tmp-release/ -@react-types:registry=https://artifactory-uw2.adobeitc.com/artifactory/api/npm/npm-rsp-tmp-release/ -@spectrum-icons:registry=https://artifactory-uw2.adobeitc.com/artifactory/api/npm/npm-rsp-tmp-release/ -//artifactory-uw2.adobeitc.com/artifactory/api/npm/npm-rsp-tmp-release/:always-auth=true - package-lock=false diff --git a/.circleci/config.yml b/.circleci/config.yml index 01bb3b2011e..7c3f196e0d0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -20,7 +20,8 @@ jobs: - run: name: build command: | - make -B + make adobe_setup + yarn - save_cache: paths: diff --git a/.github/ISSUE_TEMPLATE/Feedback.md b/.github/ISSUE_TEMPLATE/Feedback.md new file mode 100644 index 00000000000..46bf40af8c5 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/Feedback.md @@ -0,0 +1,33 @@ +--- +name: ๐Ÿ“ Feedback +about: Have some feedback? +--- + + + +# ๐Ÿ“ Feedback + + + +## ๐Ÿ”ฆ Context + + + + +## ๐Ÿ’ป Code Sample + + + +## ๐ŸŒ Your Environment + + + +| Software | Version(s) | +| ---------------- | ---------- | +| [Package name] | +| Browser | +| Operating System | diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index cd7f1b57dc9..706bc8538ce 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -3,11 +3,11 @@ Closes ## โœ… Pull Request Checklist: -- [ ] Included link to corresponding [Issue](https://github.com/adobe/react-spectrum/issues). +- [ ] Included link to corresponding [Issue](https://github.com/adobe-private/react-spectrum-v3/issues). - [ ] Added/updated unit tests and storybook for this change (for new code or code which already has tests). - [ ] Filled out test instructions. -- [ ] Updated documentation (if it already exist for this component). -- [ ] Looked at the [Accessibility Standard](https://wiki.corp.adobe.com/display/Accessibility/Adobe+Accessibility+Standard) and/or talked to [@mijordan](https://git.corp.adobe.com/mijordan) about Accessibility for this feature. +- [ ] Updated documentation (if it already exists for this component). +- [ ] Looked at the Accessibility Practices for this feature - [Aria Practices](https://www.w3.org/TR/wai-aria-practices-1.1/) ## ๐Ÿ“ Test Instructions: @@ -15,4 +15,4 @@ Closes ## ๐Ÿงข Your Team: - + diff --git a/.npmrc b/.npmrc index f520a18f334..5ce1009aad1 100644 --- a/.npmrc +++ b/.npmrc @@ -4,11 +4,4 @@ always-auth=false @react:registry=https://artifactory-uw2.adobeitc.com/artifactory/api/npm/npm-react-release/ //artifactory-uw2.adobeitc.com/artifactory/api/npm/npm-react-release/:always-auth=true -@react-aria:registry=https://artifactory-uw2.adobeitc.com/artifactory/api/npm/npm-rsp-tmp-release/ -@react-spectrum:registry=https://artifactory-uw2.adobeitc.com/artifactory/api/npm/npm-rsp-tmp-release/ -@react-stately:registry=https://artifactory-uw2.adobeitc.com/artifactory/api/npm/npm-rsp-tmp-release/ -@react-types:registry=https://artifactory-uw2.adobeitc.com/artifactory/api/npm/npm-rsp-tmp-release/ -@spectrum-icons:registry=https://artifactory-uw2.adobeitc.com/artifactory/api/npm/npm-rsp-tmp-release/ -//artifactory-uw2.adobeitc.com/artifactory/api/npm/npm-rsp-tmp-release/:always-auth=true - package-lock=false diff --git a/.storybook-v3/custom-addons/provider/index.js b/.storybook-v3/custom-addons/provider/index.js index 2e25a92a67e..9c9954454dc 100644 --- a/.storybook-v3/custom-addons/provider/index.js +++ b/.storybook-v3/custom-addons/provider/index.js @@ -3,6 +3,7 @@ import addons, { makeDecorator } from '@storybook/addons'; import {getQueryParams} from '@storybook/client-api'; import {Provider} from '@react-spectrum/provider'; import {themes, defaultTheme} from '../../constants'; +import {StatusLight} from '@react-spectrum/statuslight'; const providerValuesFromUrl = Object.entries(getQueryParams()).reduce((acc, [k, v]) => { if (k.includes('providerSwitcher-')) { @@ -38,8 +39,15 @@ function ProviderUpdater(props) { }; }, []); + let statusMap = { + 'positive': "Released as rc", + 'notice': "In alpha", + 'negative': "Under construction" + } + return ( +
Status
{statusMap[props.options.status || 'negative']}
{storyReady && props.children}
); @@ -49,8 +57,9 @@ export const withProviderSwitcher = makeDecorator({ name: 'withProviderSwitcher', parameterName: 'providerSwitcher', wrapper: (getStory, context, {options, parameters}) => { + options = {...options, ...parameters}; return ( - + {getStory(context)} ); diff --git a/.yarnrc b/.yarnrc new file mode 100644 index 00000000000..001b24f367f --- /dev/null +++ b/.yarnrc @@ -0,0 +1 @@ +--install.ignore-optional true diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 00000000000..cdb381f5426 --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,74 @@ +# Adobe Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as +contributors and maintainers pledge to making participation in our project and +our community a harassment-free experience for everyone, regardless of age, body +size, disability, ethnicity, gender identity and expression, level of experience, +nationality, personal appearance, race, religion, or sexual identity and +orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment +include: + +* Using welcoming and inclusive language. +* Being respectful of differing viewpoints and experiences. +* Gracefully accepting constructive criticism. +* Focusing on what is best for the community. +* Showing empathy towards other community members. + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or +advances. +* Trolling, insulting/derogatory comments, and personal or political attacks. +* Public or private harassment. +* Publishing others' private information, such as a physical or electronic + address, without explicit permission. +* Other conduct which could reasonably be considered inappropriate in a + professional setting. + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable +behavior and are expected to take appropriate and fair corrective action in +response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or +reject comments, commits, code, wiki edits, issues, and other contributions +that are not aligned to this Code of Conduct, or to ban temporarily or +permanently any contributor for other behaviors that they deem inappropriate, +threatening, offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces +when an individual is representing the project or its community. Examples of +representing a project or community include using an official project e-mail +address, posting via an official social media account, or acting as an appointed +representative at an online or offline event. Representation of a project may be +further defined and clarified by project maintainers. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported by contacting the project team at Grp-opensourceoffice@adobe.com. All +complaints will be reviewed and investigated and will result in a response that +is deemed necessary and appropriate to the circumstances. The project team is +obligated to maintain confidentiality with regard to the reporter of an incident. +Further details of specific enforcement policies may be posted separately. + +Project maintainers who do not follow or enforce the Code of Conduct in good +faith may face temporary or permanent repercussions as determined by other +members of the project's leadership. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, +available at [https://contributor-covenant.org/version/1/4][version]. + +[homepage]: https://contributor-covenant.org +[version]: https://contributor-covenant.org/version/1/4/ diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000000..cedc817ab06 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,48 @@ +# Contributing + +Thanks for choosing to contribute! +We are currently in pre-release mode and are actively working on getting to a stable version. Please talk to us or file an issue before contributing. + +The following is a set of guidelines to follow when contributing to this project. + +## Code Of Conduct + +This project adheres to the Adobe [code of conduct](../CODE_OF_CONDUCT.md). By participating, +you are expected to uphold this code. Please report unacceptable behavior to +[Grp-opensourceoffice@adobe.com](mailto:Grp-opensourceoffice@adobe.com). + +## Have A Question? + +Start by filing an issue. The existing committers on this project work to reach +consensus around project direction and issue solutions within issue threads +(when appropriate). + +## Contributor License Agreement + +All third-party contributions to this project must be accompanied by a signed contributor +license agreement. This gives Adobe permission to redistribute your contributions +as part of the project. [Sign our CLA](https://opensource.adobe.com/cla.html). You +only need to submit an Adobe CLA one time, so if you have submitted one previously, +you are good to go! + +## Code Reviews + +All submissions should come in the form of pull requests and need to be reviewed +by project committers. Read [GitHub's pull request documentation](https://help.github.com/articles/about-pull-requests/) +for more information on sending pull requests. + +Lastly, please follow the [pull request template](PULL_REQUEST_TEMPLATE.md) when +submitting a pull request! + +## From Contributor To Committer + +We love contributions from our community! If you'd like to go a step beyond contributor +and become a committer with full write access and a say in the project, you must +be invited to the project. The existing committers employ an internal nomination +process that must reach lazy consensus (silence is approval) before invitations +are issued. If you feel you are qualified and want to get more deeply involved, +feel free to reach out to existing committers to have a conversation about that. + +## Security Issues + +Security issues shouldn't be reported on this issue tracker. Instead, [file an issue to our security experts](https://helpx.adobe.com/security/alertus.html). diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000000..e3af6041dce --- /dev/null +++ b/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2019 Adobe + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/Makefile b/Makefile index ded0882f054..472f1cbde76 100644 --- a/Makefile +++ b/Makefile @@ -2,19 +2,17 @@ SHELL := /bin/bash PATH := ./node_modules/.bin:$(PATH) -NPM_REGISTRY=https://artifactory-uw2.adobeitc.com/artifactory/api/npm/npm-rsp-tmp-release/ -SERVER=root@react-spectrum.corp.adobe.com all: node_modules +adobe_setup: + echo "--install.ignore-optional false" > .yarnrc + git update-index --assume-unchanged .yarnrc + node_modules: package.json yarn install touch $@ -# using this won't generate icons and definitions, but will allow us to run things like cleaning beforehand -install_no_postinstall: - NOYARNPOSTINSTALL=1 yarn install - # --ci keeps it from opening the browser tab automatically run: NODE_ENV=storybook start-storybook -p 9003 --ci -c ".storybook-v3" @@ -22,35 +20,46 @@ run: clean: yarn clean:icons rm -rf dist storybook-static storybook-static-v3 public src/dist - $(MAKE) clean_docs clean_all: $(MAKE) clean $(MAKE) clean_node_modules clean_node_modules: - $(MAKE) clean_project_node_modules - $(MAKE) clean_docs_node_modules - -clean_project_node_modules: rm -rf node_modules rm -rf packages/*/*/node_modules -# --prefix needs to come before the command that npm is to run, otherwise documentation seems to indicate that it will write node_modules to that location -docs: - cd documentation && yarn --no-lockfile - cd documentation && yarn build +packages/@spectrum-icons/workflow/src: packages/@spectrum-icons/workflow/package.json + yarn workspace @spectrum-icons/workflow make-icons + touch $@ + +packages/@spectrum-icons/workflow/%.js: packages/@spectrum-icons/workflow/src/%.tsx + yarn workspace @spectrum-icons/workflow build-icons + touch $@ + +workflow-icons: $(addprefix packages/@spectrum-icons/workflow/, $(notdir $(addsuffix .js, $(basename $(wildcard packages/@spectrum-icons/workflow/src/*.tsx))))) -docs_local: - cd documentation && yarn --no-lockfile - cd documentation && yarn develop +packages/@spectrum-icons/color/src: packages/@spectrum-icons/color/package.json + yarn workspace @spectrum-icons/color make-icons -clean_docs: - rm -rf documentation/public +packages/@spectrum-icons/color/%.js: packages/@spectrum-icons/color/src/%.tsx + yarn workspace @spectrum-icons/color build-icons -# in order to pick up new changes to local components, this should be run before `docs_local` or `docs` -clean_docs_node_modules: - rm -rf documentation/node_modules +color-icons: $(addprefix packages/@spectrum-icons/color/, $(notdir $(addsuffix .js, $(basename $(wildcard packages/@spectrum-icons/color/src/*.tsx))))) + +packages/@spectrum-icons/ui/src: packages/@spectrum-icons/ui/package.json + yarn workspace @spectrum-icons/ui make-icons + touch $@ + +packages/@spectrum-icons/ui/%.js: packages/@spectrum-icons/ui/src/%.tsx + yarn workspace @spectrum-icons/ui build-icons + +ui-icons: packages/@spectrum-icons/ui/src $(addprefix packages/@spectrum-icons/ui/, $(notdir $(addsuffix .js, $(basename $(wildcard packages/@spectrum-icons/ui/src/*.tsx))))) + +icons: packages/@spectrum-icons/workflow/src packages/@spectrum-icons/color/src packages/@spectrum-icons/ui/src + @$(MAKE) workflow-icons + @$(MAKE) color-icons + @$(MAKE) ui-icons lint: yarn check-types @@ -66,17 +75,12 @@ ci-test: storybook: NODE_ENV=storybook yarn build-storybook -deploy: storybook docs - ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null $(SERVER) mkdir -p "~/rsp" - scp -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -r documentation/public/* "$(SERVER):~/rsp/." - scp -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -r public/* "$(SERVER):~/rsp/." - # for now doesn't have deploy since v3 doesn't have a place for docs and stuff yet ci: $(MAKE) publish publish: build - lerna publish from-package --yes --registry $(NPM_REGISTRY) + lerna publish from-package --yes build: parcel build packages/@react-{spectrum,aria,stately}/*/ --no-minify diff --git a/README.md b/README.md index b6b47b92814..0487de6726e 100644 --- a/README.md +++ b/README.md @@ -1,40 +1,25 @@ -# react-spectrum v3 +# react-spectrum +[Spectrum](http://spectrum.adobe.com) UI components in React. -[Spectrum](http://spectrum.corp.adobe.com) UI components in React. +## โš ๏ธ Under Construction โš ๏ธ +We are currently working hard to be ready for a stable release. + + - Please *don't share* this repo until we make our announcement! + - Please try out our rc components and tell us what you think! + +If you have feedback or would like to join our beta program, please create a [feedback issue](https://github.com/adobe-private/react-spectrum-v3/issues/new?template=Feedback.md) and let us know. ## Using react-spectrum in your project -react-spectrum is usable with a module bundler like [Parcel](https://parceljs.org) or [Webpack](https://webpack.js.org). -Components are then `require`able as in the following example. The styles for each component you import will be bundled +react-spectrum is usable with a module bundler like [Parcel](https://parceljs.org). +Components are then usable as in the following example. The styles for each component you import will be bundled along-side the JavaScript (more on configuring this below). Each component should be imported independently - this way only the components you use will be included in the output JavaScript and CSS files. ### Installation -#### Node -We recommend that you use [NVM](https://github.com/creationix/nvm#installation) to manage your node version. -NVM has a section in their documentation to handle using the right version automatically when cd'ing into a project with a `.nvmrc` file [documentation](https://github.com/creationix/nvm#nvmrc) -If you are manually managing your version of Node, then refer to `.nvmrc` for the version you should run with. - -#### NPM -Add the following to your `~/.npmrc`: - -``` -@react-aria:registry=https://artifactory-uw2.adobeitc.com/artifactory/api/npm/npm-rsp-tmp-release/ -@react-spectrum:registry=https://artifactory-uw2.adobeitc.com/artifactory/api/npm/npm-rsp-tmp-release/ -@react-stately:registry=https://artifactory-uw2.adobeitc.com/artifactory/api/npm/npm-rsp-tmp-release/ -@react-types:registry=https://artifactory-uw2.adobeitc.com/artifactory/api/npm/npm-rsp-tmp-release/ -@spectrum-icons:registry=https://artifactory-uw2.adobeitc.com/artifactory/api/npm/npm-rsp-tmp-release/ -//artifactory-uw2.adobeitc.com/artifactory/api/npm/npm-rsp-tmp-release/:_password=YOUR_PASSWORD_HERE -//artifactory-uw2.adobeitc.com/artifactory/api/npm/npm-rsp-tmp-release/:username=YOUR_USERNAME_HERE -//artifactory-uw2.adobeitc.com/artifactory/api/npm/npm-rsp-tmp-release/:email=YOUR_USERNAME_HERE@adobe.com -//artifactory-uw2.adobeitc.com/artifactory/api/npm/npm-rsp-tmp-release/:always-auth=true -``` - -Then you should be able to install with npm: -Eventually we'll support a single package with all of them, but for now you must install individual ones ``` -npm install @react-spectrum/provider @react-spectrum/theme-default @react-spectrum/button --save +yarn add @react-spectrum/provider @react-spectrum/theme-default @react-spectrum/button ``` ### Example @@ -55,34 +40,8 @@ ReactDOM.render( , dom); ``` -### Webpack - -To use react-spectrum, you'll need [css-loader](https://github.com/webpack-contrib/css-loader) and either -[style-loader](https://github.com/webpack-contrib/style-loader) to inject the styles -directly into the DOM, or [extract-text-webpack-plugin](https://github.com/webpack-contrib/extract-text-webpack-plugin) -to extract the CSS to a single separate file. - -```javascript -module.exports = { - module: { - rules: [ - { - test: /\.css/, - loaders: ['style-loader', 'css-loader'] - } - ] - } -} -``` - -### Parcel - -No additional configuration is needed to use react-spectrum with Parcel. ๐Ÿ˜‡ - ## Development -### Local Development - #### General We use Yarn, please run `yarn install` instead of `npm install` to get started. If you do not have yarn, you can follow these [instructions](https://yarnpkg.com/lang/en/docs/install/#mac-stable) diff --git a/__mocks__/fileMock.js b/__mocks__/fileMock.js index e69de29bb2d..77a69441a36 100644 --- a/__mocks__/fileMock.js +++ b/__mocks__/fileMock.js @@ -0,0 +1,12 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + diff --git a/__mocks__/iconMock.js b/__mocks__/iconMock.js index f81acaf7ddb..f769fca8e8d 100644 --- a/__mocks__/iconMock.js +++ b/__mocks__/iconMock.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + let React = require('react'); module.exports = function(props) { diff --git a/bin/sort-imports.js b/bin/sort-imports.js index 2fea3817508..8ac58e2613b 100644 --- a/bin/sort-imports.js +++ b/bin/sort-imports.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + module.exports = function (context) { const sourceCode = context.getSourceCode(); let previousDeclaration = null; diff --git a/jest.config.js b/jest.config.js index b434f9d173b..2e647aecaff 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,6 +1,26 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + // For a detailed explanation regarding each configuration property, visit: // https://jestjs.io/docs/en/configuration.html +// Mock v2 if not installed +let mocks = {}; +try { + require.resolve('@react/react-spectrum/Button'); +} catch (err) { + mocks['^@react\/.*'] = 'identity-obj-proxy'; +} + module.exports = { // All imported modules in your tests should be mocked automatically // automock: false, @@ -81,7 +101,8 @@ module.exports = { moduleNameMapper: { '\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '/__mocks__/fileMock.js', '\\.(css|styl)$': 'identity-obj-proxy', - '\\.\./Icon/.*$': '/__mocks__/iconMock.js' + '\\.\./Icon/.*$': '/__mocks__/iconMock.js', + ...mocks }, // An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader diff --git a/lib/postcss-hover-media.js b/lib/postcss-hover-media.js index 97710f06f90..97bfb4ae3e9 100644 --- a/lib/postcss-hover-media.js +++ b/lib/postcss-hover-media.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + const postcss = require('postcss'); // The :hover pseudo class doesn't work properly on touch devices. It applies on the first touch diff --git a/lib/varsToTypeScript.js b/lib/varsToTypeScript.js index fa934f0fbda..b7c5cabcfb9 100644 --- a/lib/varsToTypeScript.js +++ b/lib/varsToTypeScript.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + var postcss = require('postcss'); const fs = require('fs'); diff --git a/lint-packages.js b/lint-packages.js index 0631268dff6..2d1a7b24859 100644 --- a/lint-packages.js +++ b/lint-packages.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + const glob = require('fast-glob'); const fs = require('fs'); const assert = require('assert'); @@ -62,11 +74,13 @@ for (let pkg of packages) { } softAssert(json.publishConfig && json.publishConfig.access === 'public', `${pkg} has missing or incorrect publishConfig`); + softAssert.equal(json.license, 'Apache-2.0', `${pkg} has an incorrect license`); + softAssert.deepEqual(json.repository, {type: 'git', url: 'https://github.com/adobe-private/react-spectrum-v3'}, `${pkg} has incorrect or missing repository url`); let topIndexExists = fs.existsSync(path.join(pkg, '..', 'index.ts')); if (topIndexExists) { let contents = fs.readFileSync(path.join(pkg, '..', 'index.ts')); - softAssert.equal(contents, "export * from './src';\n", `contents of ${path.join(pkg, '..', 'index.ts')} are not "export * from './src';"`); + softAssert(/export \* from '.\/src';/.test(contents), `contents of ${path.join(pkg, '..', 'index.ts')} are not "export * from './src';"`); } softAssert(topIndexExists, `${pkg} is missing an index.ts`); softAssert(fs.existsSync(path.join(pkg, '..', 'src', 'index.ts')), `${pkg} is missing a src/index.ts`); diff --git a/package.json b/package.json index b73d67e6222..85a059a2754 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "description": "Spectrum UI components in React", "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "scripts": { "check-types": "tsc", @@ -13,10 +13,10 @@ "build-storybook": "build-storybook -c .storybook-v3 -o dist/$(git rev-parse HEAD)/storybook", "test": "make test", "lint": "make lint", - "jest": "NODE_ICU_DATA=node_modules/full-icu jest", + "jest": "node scripts/jest.js", "copyrights": "babel-node --presets @babel/env ./scripts/addHeaders.js", "clean:icons": "babel-node --presets @babel/env ./scripts/cleanIcons.js", - "postinstall": "test -n \"$NOYARNPOSTINSTALL\" || ( (yarn wsrun --exclude-missing make-icons || true) && yarn wsrun --exclude-missing build ) && patch-package", + "postinstall": "make icons && patch-package", "plop": "plop", "chromatic": "CHROMATIC_APP_CODE=x8ktlved8wd chromatic test --build-script-name build-storybook", "merge:css": "babel-node --presets @babel/env ./scripts/merge-spectrum-css.js", @@ -50,9 +50,6 @@ "@octokit/rest": "*", "@parcel/babel-preset-env": "^2.0.0-nightly.92", "@parcel/transformer-inline": "^2.0.0-nightly.92", - "@react/collection-view": "^4.1.5", - "@react/react-spectrum": "^2.26.1", - "@react/react-spectrum-icons": "^2.1.0", "@spectrum-css/vars": "^2.0.0", "@storybook/addon-a11y": "^5.2.1", "@storybook/addon-actions": "^5.2.1", @@ -140,6 +137,11 @@ "webpack-hot-middleware": "^2.24.3", "wsrun": "^5.0.0" }, + "optionalDependencies": { + "@react/collection-view": "^4.1.5", + "@react/react-spectrum": "^2.26.1", + "@react/react-spectrum-icons": "^2.1.0" + }, "dependencies": { "@spectrum-css/component-builder": "^1.0.0" }, diff --git a/packages/@adobe/react-spectrum/README.md b/packages/@adobe/react-spectrum/README.md index 3393a51959c..f3e96a2d71e 100644 --- a/packages/@adobe/react-spectrum/README.md +++ b/packages/@adobe/react-spectrum/README.md @@ -1 +1,3 @@ -# react-spectrum v3 +# @react-spectrum + +โš ๏ธ Under Construction โš ๏ธ diff --git a/packages/@adobe/react-spectrum/package.json b/packages/@adobe/react-spectrum/package.json index 6d7d7ec56e3..dfbf4dca767 100644 --- a/packages/@adobe/react-spectrum/package.json +++ b/packages/@adobe/react-spectrum/package.json @@ -5,7 +5,7 @@ "description": "Spectrum UI components in React", "repository": { "type": "git", - "url": "https://git.corp.adobe.com.com/React/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum" }, "peerDependencies": { "react": "^16.8.0", diff --git a/packages/@adobe/spectrum-css-temp/components/accordion/index.css b/packages/@adobe/spectrum-css-temp/components/accordion/index.css index 43a1e508104..99cafe98023 100644 --- a/packages/@adobe/spectrum-css-temp/components/accordion/index.css +++ b/packages/@adobe/spectrum-css-temp/components/accordion/index.css @@ -10,7 +10,6 @@ OF ANY KIND, either express or implied. See the License for the specific languag governing permissions and limitations under the License. */ -/* https://git.corp.adobe.com/Spectrum/spectrum-origins/pull/60 */ :root { --spectrum-accordion-icon-width: 6px; --spectrum-accordion-icon-height: 10px; diff --git a/packages/@adobe/spectrum-css-temp/components/accordion/vars.css b/packages/@adobe/spectrum-css-temp/components/accordion/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/accordion/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/accordion/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/actionmenu/vars.css b/packages/@adobe/spectrum-css-temp/components/actionmenu/vars.css index 90be5f74e9e..3df0b027c58 100644 --- a/packages/@adobe/spectrum-css-temp/components/actionmenu/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/actionmenu/vars.css @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/alert/vars.css b/packages/@adobe/spectrum-css-temp/components/alert/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/alert/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/alert/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/asset/vars.css b/packages/@adobe/spectrum-css-temp/components/asset/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/asset/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/asset/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/assetlist/vars.css b/packages/@adobe/spectrum-css-temp/components/assetlist/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/assetlist/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/assetlist/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/avatar/vars.css b/packages/@adobe/spectrum-css-temp/components/avatar/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/avatar/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/avatar/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/banner/vars.css b/packages/@adobe/spectrum-css-temp/components/banner/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/banner/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/banner/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/barloader/vars.css b/packages/@adobe/spectrum-css-temp/components/barloader/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/barloader/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/barloader/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/breadcrumb/vars.css b/packages/@adobe/spectrum-css-temp/components/breadcrumb/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/breadcrumb/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/breadcrumb/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/button/vars.css b/packages/@adobe/spectrum-css-temp/components/button/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/button/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/button/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/buttongroup/vars.css b/packages/@adobe/spectrum-css-temp/components/buttongroup/vars.css index 90be5f74e9e..3df0b027c58 100644 --- a/packages/@adobe/spectrum-css-temp/components/buttongroup/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/buttongroup/vars.css @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/calendar/vars.css b/packages/@adobe/spectrum-css-temp/components/calendar/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/calendar/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/calendar/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/card/vars.css b/packages/@adobe/spectrum-css-temp/components/card/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/card/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/card/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/checkbox/vars.css b/packages/@adobe/spectrum-css-temp/components/checkbox/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/checkbox/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/checkbox/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/circleloader/vars.css b/packages/@adobe/spectrum-css-temp/components/circleloader/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/circleloader/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/circleloader/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/coachmark/vars.css b/packages/@adobe/spectrum-css-temp/components/coachmark/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/coachmark/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/coachmark/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/cyclebutton/vars.css b/packages/@adobe/spectrum-css-temp/components/cyclebutton/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/cyclebutton/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/cyclebutton/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/dialog/vars.css b/packages/@adobe/spectrum-css-temp/components/dialog/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/dialog/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/dialog/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/dropdown/vars.css b/packages/@adobe/spectrum-css-temp/components/dropdown/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/dropdown/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/dropdown/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/dropindicator/vars.css b/packages/@adobe/spectrum-css-temp/components/dropindicator/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/dropindicator/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/dropindicator/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/dropzone/vars.css b/packages/@adobe/spectrum-css-temp/components/dropzone/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/dropzone/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/dropzone/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/fieldgroup/vars.css b/packages/@adobe/spectrum-css-temp/components/fieldgroup/vars.css index 90be5f74e9e..3df0b027c58 100644 --- a/packages/@adobe/spectrum-css-temp/components/fieldgroup/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/fieldgroup/vars.css @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/fieldlabel/vars.css b/packages/@adobe/spectrum-css-temp/components/fieldlabel/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/fieldlabel/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/fieldlabel/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/icon/vars.css b/packages/@adobe/spectrum-css-temp/components/icon/vars.css index 90be5f74e9e..3df0b027c58 100644 --- a/packages/@adobe/spectrum-css-temp/components/icon/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/icon/vars.css @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/illustratedmessage/vars.css b/packages/@adobe/spectrum-css-temp/components/illustratedmessage/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/illustratedmessage/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/illustratedmessage/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/inputgroup/vars.css b/packages/@adobe/spectrum-css-temp/components/inputgroup/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/inputgroup/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/inputgroup/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/label/vars.css b/packages/@adobe/spectrum-css-temp/components/label/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/label/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/label/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/link/vars.css b/packages/@adobe/spectrum-css-temp/components/link/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/link/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/link/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/menu/vars.css b/packages/@adobe/spectrum-css-temp/components/menu/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/menu/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/menu/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/miller/vars.css b/packages/@adobe/spectrum-css-temp/components/miller/vars.css index 90be5f74e9e..3df0b027c58 100644 --- a/packages/@adobe/spectrum-css-temp/components/miller/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/miller/vars.css @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/modal/vars.css b/packages/@adobe/spectrum-css-temp/components/modal/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/modal/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/modal/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/page/vars.css b/packages/@adobe/spectrum-css-temp/components/page/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/page/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/page/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/pagination/vars.css b/packages/@adobe/spectrum-css-temp/components/pagination/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/pagination/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/pagination/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/popover/vars.css b/packages/@adobe/spectrum-css-temp/components/popover/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/popover/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/popover/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/quickaction/vars.css b/packages/@adobe/spectrum-css-temp/components/quickaction/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/quickaction/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/quickaction/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/radio/vars.css b/packages/@adobe/spectrum-css-temp/components/radio/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/radio/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/radio/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/rating/vars.css b/packages/@adobe/spectrum-css-temp/components/rating/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/rating/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/rating/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/rule/vars.css b/packages/@adobe/spectrum-css-temp/components/rule/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/rule/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/rule/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/search/vars.css b/packages/@adobe/spectrum-css-temp/components/search/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/search/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/search/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/searchwithin/vars.css b/packages/@adobe/spectrum-css-temp/components/searchwithin/vars.css index 90be5f74e9e..3df0b027c58 100644 --- a/packages/@adobe/spectrum-css-temp/components/searchwithin/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/searchwithin/vars.css @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/sidenav/vars.css b/packages/@adobe/spectrum-css-temp/components/sidenav/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/sidenav/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/sidenav/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/slider/vars.css b/packages/@adobe/spectrum-css-temp/components/slider/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/slider/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/slider/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/splitbutton/vars.css b/packages/@adobe/spectrum-css-temp/components/splitbutton/vars.css index 90be5f74e9e..3df0b027c58 100644 --- a/packages/@adobe/spectrum-css-temp/components/splitbutton/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/splitbutton/vars.css @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/splitview/vars.css b/packages/@adobe/spectrum-css-temp/components/splitview/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/splitview/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/splitview/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/statuslight/vars.css b/packages/@adobe/spectrum-css-temp/components/statuslight/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/statuslight/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/statuslight/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/steplist/vars.css b/packages/@adobe/spectrum-css-temp/components/steplist/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/steplist/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/steplist/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/stepper/vars.css b/packages/@adobe/spectrum-css-temp/components/stepper/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/stepper/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/stepper/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/table/vars.css b/packages/@adobe/spectrum-css-temp/components/table/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/table/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/table/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/tabs/vars.css b/packages/@adobe/spectrum-css-temp/components/tabs/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/tabs/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/tabs/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/tags/vars.css b/packages/@adobe/spectrum-css-temp/components/tags/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/tags/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/tags/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/textfield/vars.css b/packages/@adobe/spectrum-css-temp/components/textfield/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/textfield/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/textfield/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/toast/vars.css b/packages/@adobe/spectrum-css-temp/components/toast/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/toast/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/toast/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/toggle/vars.css b/packages/@adobe/spectrum-css-temp/components/toggle/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/toggle/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/toggle/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/tooltip/vars.css b/packages/@adobe/spectrum-css-temp/components/tooltip/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/tooltip/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/tooltip/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/tray/index.css b/packages/@adobe/spectrum-css-temp/components/tray/index.css index 1a9dbdb51e6..f1ddf22650f 100644 --- a/packages/@adobe/spectrum-css-temp/components/tray/index.css +++ b/packages/@adobe/spectrum-css-temp/components/tray/index.css @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import '../commons/index.css'; @import '../overlay/index.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/tray/skin.css b/packages/@adobe/spectrum-css-temp/components/tray/skin.css index 1cffe3e5323..5778109ca88 100644 --- a/packages/@adobe/spectrum-css-temp/components/tray/skin.css +++ b/packages/@adobe/spectrum-css-temp/components/tray/skin.css @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + .spectrum-Tray { background-color: var(--spectrum-tray-background-color); } diff --git a/packages/@adobe/spectrum-css-temp/components/tray/vars.css b/packages/@adobe/spectrum-css-temp/components/tray/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/tray/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/tray/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/treeview/vars.css b/packages/@adobe/spectrum-css-temp/components/treeview/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/treeview/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/treeview/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/typography/vars.css b/packages/@adobe/spectrum-css-temp/components/typography/vars.css index a9e5cf7bd9c..dd6719feb06 100644 --- a/packages/@adobe/spectrum-css-temp/components/typography/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/typography/vars.css @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + .spectrum { font-family: adobe-clean, "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: var(--spectrum-alias-font-size-default, var(--spectrum-global-dimension-font-size-100)); diff --git a/packages/@adobe/spectrum-css-temp/components/underlay/vars.css b/packages/@adobe/spectrum-css-temp/components/underlay/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/underlay/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/underlay/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/components/well/vars.css b/packages/@adobe/spectrum-css-temp/components/well/vars.css index ff944c99ea4..ca1e08522d8 100644 --- a/packages/@adobe/spectrum-css-temp/components/well/vars.css +++ b/packages/@adobe/spectrum-css-temp/components/well/vars.css @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + @import './index.css'; @import './skin.css'; diff --git a/packages/@adobe/spectrum-css-temp/vars/spectrum-dark-unique.css b/packages/@adobe/spectrum-css-temp/vars/spectrum-dark-unique.css index 9f86cf9de5c..0c1023787b5 100644 --- a/packages/@adobe/spectrum-css-temp/vars/spectrum-dark-unique.css +++ b/packages/@adobe/spectrum-css-temp/vars/spectrum-dark-unique.css @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + .spectrum--dark { --spectrum-global-color-celery-400: rgb(68, 181, 86); --spectrum-global-color-chartreuse-400: rgb(133, 208, 68); diff --git a/packages/@adobe/spectrum-css-temp/vars/spectrum-dark.css b/packages/@adobe/spectrum-css-temp/vars/spectrum-dark.css index 40aa2ef9830..98556fe3be2 100644 --- a/packages/@adobe/spectrum-css-temp/vars/spectrum-dark.css +++ b/packages/@adobe/spectrum-css-temp/vars/spectrum-dark.css @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + .spectrum--dark { --spectrum-global-color-celery-400: rgb(68, 181, 86); --spectrum-global-color-celery-500: rgb(75, 195, 95); diff --git a/packages/@adobe/spectrum-css-temp/vars/spectrum-darkest-unique.css b/packages/@adobe/spectrum-css-temp/vars/spectrum-darkest-unique.css index abfd761fc9e..38d2038bdc8 100644 --- a/packages/@adobe/spectrum-css-temp/vars/spectrum-darkest-unique.css +++ b/packages/@adobe/spectrum-css-temp/vars/spectrum-darkest-unique.css @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + .spectrum--darkest { --spectrum-global-color-celery-400: rgb(61, 167, 78); --spectrum-global-color-chartreuse-400: rgb(124, 195, 63); diff --git a/packages/@adobe/spectrum-css-temp/vars/spectrum-darkest.css b/packages/@adobe/spectrum-css-temp/vars/spectrum-darkest.css index a29651a90dd..304928500fc 100644 --- a/packages/@adobe/spectrum-css-temp/vars/spectrum-darkest.css +++ b/packages/@adobe/spectrum-css-temp/vars/spectrum-darkest.css @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + .spectrum--darkest { --spectrum-global-color-celery-400: rgb(61, 167, 78); --spectrum-global-color-celery-500: rgb(68, 181, 86); diff --git a/packages/@adobe/spectrum-css-temp/vars/spectrum-global-unique.css b/packages/@adobe/spectrum-css-temp/vars/spectrum-global-unique.css index 8ed5125bc9e..5759b16229c 100644 --- a/packages/@adobe/spectrum-css-temp/vars/spectrum-global-unique.css +++ b/packages/@adobe/spectrum-css-temp/vars/spectrum-global-unique.css @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + .spectrum { /* spectrum-animationGlobals.css */ --spectrum-global-animation-duration-100: 130ms; --spectrum-global-animation-duration-200: 160ms; diff --git a/packages/@adobe/spectrum-css-temp/vars/spectrum-global.css b/packages/@adobe/spectrum-css-temp/vars/spectrum-global.css index 798ce57fe99..310e23c47e0 100644 --- a/packages/@adobe/spectrum-css-temp/vars/spectrum-global.css +++ b/packages/@adobe/spectrum-css-temp/vars/spectrum-global.css @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + .spectrum { /* spectrum-animationGlobals.css */ --spectrum-global-animation-duration-0: 0ms; --spectrum-global-animation-duration-100: 130ms; diff --git a/packages/@adobe/spectrum-css-temp/vars/spectrum-large-unique.css b/packages/@adobe/spectrum-css-temp/vars/spectrum-large-unique.css index bffea39e3df..075fe5a88a0 100644 --- a/packages/@adobe/spectrum-css-temp/vars/spectrum-large-unique.css +++ b/packages/@adobe/spectrum-css-temp/vars/spectrum-large-unique.css @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + .spectrum--large { --spectrum-global-dimension-size-10: 1px; --spectrum-global-dimension-size-25: 2px; diff --git a/packages/@adobe/spectrum-css-temp/vars/spectrum-large.css b/packages/@adobe/spectrum-css-temp/vars/spectrum-large.css index 721e321d925..01939db5f40 100644 --- a/packages/@adobe/spectrum-css-temp/vars/spectrum-large.css +++ b/packages/@adobe/spectrum-css-temp/vars/spectrum-large.css @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + .spectrum--large { --spectrum-global-dimension-scale-factor: 1.25; --spectrum-global-dimension-size-0: 0px; diff --git a/packages/@adobe/spectrum-css-temp/vars/spectrum-light-unique.css b/packages/@adobe/spectrum-css-temp/vars/spectrum-light-unique.css index f2498bacb58..50cf7469ff8 100644 --- a/packages/@adobe/spectrum-css-temp/vars/spectrum-light-unique.css +++ b/packages/@adobe/spectrum-css-temp/vars/spectrum-light-unique.css @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + .spectrum--light { --spectrum-global-color-celery-400: rgb(68, 181, 86); --spectrum-global-color-chartreuse-400: rgb(133, 208, 68); diff --git a/packages/@adobe/spectrum-css-temp/vars/spectrum-light.css b/packages/@adobe/spectrum-css-temp/vars/spectrum-light.css index 9a4a5a82d51..505812ca26d 100644 --- a/packages/@adobe/spectrum-css-temp/vars/spectrum-light.css +++ b/packages/@adobe/spectrum-css-temp/vars/spectrum-light.css @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + .spectrum--light { --spectrum-global-color-celery-400: rgb(68, 181, 86); --spectrum-global-color-celery-500: rgb(61, 167, 78); diff --git a/packages/@adobe/spectrum-css-temp/vars/spectrum-lightest-unique.css b/packages/@adobe/spectrum-css-temp/vars/spectrum-lightest-unique.css index 70fd07641ba..4041277ab40 100644 --- a/packages/@adobe/spectrum-css-temp/vars/spectrum-lightest-unique.css +++ b/packages/@adobe/spectrum-css-temp/vars/spectrum-lightest-unique.css @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + .spectrum--lightest { --spectrum-global-color-celery-400: rgb(75, 195, 95); --spectrum-global-color-chartreuse-400: rgb(142, 222, 73); diff --git a/packages/@adobe/spectrum-css-temp/vars/spectrum-lightest.css b/packages/@adobe/spectrum-css-temp/vars/spectrum-lightest.css index c8982fe20af..3f8f9be3ddc 100644 --- a/packages/@adobe/spectrum-css-temp/vars/spectrum-lightest.css +++ b/packages/@adobe/spectrum-css-temp/vars/spectrum-lightest.css @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + .spectrum--lightest { --spectrum-global-color-celery-400: rgb(75, 195, 95); --spectrum-global-color-celery-500: rgb(68, 181, 86); diff --git a/packages/@adobe/spectrum-css-temp/vars/spectrum-medium-unique.css b/packages/@adobe/spectrum-css-temp/vars/spectrum-medium-unique.css index beaa2483295..d592829f67d 100644 --- a/packages/@adobe/spectrum-css-temp/vars/spectrum-medium-unique.css +++ b/packages/@adobe/spectrum-css-temp/vars/spectrum-medium-unique.css @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + .spectrum--medium { --spectrum-global-dimension-size-10: 1px; --spectrum-global-dimension-size-25: 2px; diff --git a/packages/@adobe/spectrum-css-temp/vars/spectrum-medium.css b/packages/@adobe/spectrum-css-temp/vars/spectrum-medium.css index 20fc02adedf..ff81bdfb442 100644 --- a/packages/@adobe/spectrum-css-temp/vars/spectrum-medium.css +++ b/packages/@adobe/spectrum-css-temp/vars/spectrum-medium.css @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + .spectrum--medium { --spectrum-global-dimension-scale-factor: 1; --spectrum-global-dimension-size-0: 0px; diff --git a/packages/@react-aria/README.md b/packages/@react-aria/README.md index 7631c4a7a5c..af22a307671 100644 --- a/packages/@react-aria/README.md +++ b/packages/@react-aria/README.md @@ -1,3 +1,5 @@ # @react-aria + โš ๏ธ This project is currently under construction. โš ๏ธ + This folder is for packages in the `@react-aria` scope, which are React Hooks that implement aria behaviors to be used in custom themed components. diff --git a/packages/@react-aria/breadcrumbs/index.ts b/packages/@react-aria/breadcrumbs/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-aria/breadcrumbs/index.ts +++ b/packages/@react-aria/breadcrumbs/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-aria/breadcrumbs/package.json b/packages/@react-aria/breadcrumbs/package.json index d116056ebba..d7d168eab91 100644 --- a/packages/@react-aria/breadcrumbs/package.json +++ b/packages/@react-aria/breadcrumbs/package.json @@ -3,6 +3,7 @@ "version": "3.0.0-alpha.2", "private": true, "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -13,7 +14,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-aria/breadcrumbs/src/index.ts b/packages/@react-aria/breadcrumbs/src/index.ts index 15e610487b8..e6f07707e4a 100644 --- a/packages/@react-aria/breadcrumbs/src/index.ts +++ b/packages/@react-aria/breadcrumbs/src/index.ts @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useBreadcrumbItem'; export * from './useBreadcrumbs'; diff --git a/packages/@react-aria/breadcrumbs/src/useBreadcrumbItem.ts b/packages/@react-aria/breadcrumbs/src/useBreadcrumbItem.ts index ac28013f0aa..19233a6526d 100644 --- a/packages/@react-aria/breadcrumbs/src/useBreadcrumbItem.ts +++ b/packages/@react-aria/breadcrumbs/src/useBreadcrumbItem.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {AllHTMLAttributes, useRef} from 'react'; import {BreadcrumbItemProps} from '@react-types/breadcrumbs'; import {DOMProps} from '@react-types/shared'; diff --git a/packages/@react-aria/breadcrumbs/src/useBreadcrumbs.ts b/packages/@react-aria/breadcrumbs/src/useBreadcrumbs.ts index 7ba45277d66..6bec5e80e9d 100644 --- a/packages/@react-aria/breadcrumbs/src/useBreadcrumbs.ts +++ b/packages/@react-aria/breadcrumbs/src/useBreadcrumbs.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {AllHTMLAttributes} from 'react'; import {BreadcrumbsProps} from '@react-types/breadcrumbs'; import {DOMProps} from '@react-types/shared'; diff --git a/packages/@react-aria/breadcrumbs/test/useBreadcrumbItem.test.js b/packages/@react-aria/breadcrumbs/test/useBreadcrumbItem.test.js index 8d95a17ab71..788ac6d51db 100644 --- a/packages/@react-aria/breadcrumbs/test/useBreadcrumbItem.test.js +++ b/packages/@react-aria/breadcrumbs/test/useBreadcrumbItem.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup} from '@testing-library/react'; import React from 'react'; import {renderHook} from 'react-hooks-testing-library'; diff --git a/packages/@react-aria/breadcrumbs/test/useBreadcrumbs.test.js b/packages/@react-aria/breadcrumbs/test/useBreadcrumbs.test.js index 9491516d4be..09fe65c0714 100644 --- a/packages/@react-aria/breadcrumbs/test/useBreadcrumbs.test.js +++ b/packages/@react-aria/breadcrumbs/test/useBreadcrumbs.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup} from '@testing-library/react'; import React from 'react'; import {renderHook} from 'react-hooks-testing-library'; diff --git a/packages/@react-aria/button/index.ts b/packages/@react-aria/button/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-aria/button/index.ts +++ b/packages/@react-aria/button/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-aria/button/package.json b/packages/@react-aria/button/package.json index 1cc7b17ebe3..ec8f37014e8 100644 --- a/packages/@react-aria/button/package.json +++ b/packages/@react-aria/button/package.json @@ -2,6 +2,7 @@ "name": "@react-aria/button", "version": "3.0.0-rc.1", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-aria/button/src/index.ts b/packages/@react-aria/button/src/index.ts index 59ea63753fb..8f00db8de86 100644 --- a/packages/@react-aria/button/src/index.ts +++ b/packages/@react-aria/button/src/index.ts @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useButton'; export * from './useButtonGroup'; diff --git a/packages/@react-aria/button/src/useButton.ts b/packages/@react-aria/button/src/useButton.ts index b01b47dd0e5..a12fc983399 100644 --- a/packages/@react-aria/button/src/useButton.ts +++ b/packages/@react-aria/button/src/useButton.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {ButtonProps} from '@react-types/button'; import {chain, mergeProps} from '@react-aria/utils'; import {RefObject} from 'react'; diff --git a/packages/@react-aria/button/src/useButtonGroup.ts b/packages/@react-aria/button/src/useButtonGroup.ts index c5a753694a6..fdb304b7754 100644 --- a/packages/@react-aria/button/src/useButtonGroup.ts +++ b/packages/@react-aria/button/src/useButtonGroup.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {AllHTMLAttributes, useState} from 'react'; import {ButtonGroupKeyboardDelegate, ButtonGroupState} from '@react-stately/button'; import {ButtonGroupProps} from '@react-types/button'; diff --git a/packages/@react-aria/button/test/useButton.test.js b/packages/@react-aria/button/test/useButton.test.js index 8f177c0c1d1..92561cd261c 100644 --- a/packages/@react-aria/button/test/useButton.test.js +++ b/packages/@react-aria/button/test/useButton.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import React from 'react'; import {renderHook} from 'react-hooks-testing-library'; import {useButton} from '../'; diff --git a/packages/@react-aria/button/test/useButtonGroup.test.js b/packages/@react-aria/button/test/useButtonGroup.test.js index 8facf96c1d5..b10405b613f 100644 --- a/packages/@react-aria/button/test/useButtonGroup.test.js +++ b/packages/@react-aria/button/test/useButtonGroup.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import React from 'react'; import {renderHook} from 'react-hooks-testing-library'; import {useButtonGroup} from '../'; diff --git a/packages/@react-aria/calendar/index.ts b/packages/@react-aria/calendar/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-aria/calendar/index.ts +++ b/packages/@react-aria/calendar/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-aria/calendar/package.json b/packages/@react-aria/calendar/package.json index 4310234b9ba..56fd011639f 100644 --- a/packages/@react-aria/calendar/package.json +++ b/packages/@react-aria/calendar/package.json @@ -2,6 +2,7 @@ "name": "@react-aria/calendar", "version": "3.0.0-alpha.2", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-aria/calendar/src/index.ts b/packages/@react-aria/calendar/src/index.ts index f1e1de017c4..64541f271fc 100644 --- a/packages/@react-aria/calendar/src/index.ts +++ b/packages/@react-aria/calendar/src/index.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useCalendar'; export * from './useRangeCalendar'; export * from './useCalendarCell'; diff --git a/packages/@react-aria/calendar/src/types.ts b/packages/@react-aria/calendar/src/types.ts index db8eac11364..a0cdd76b3eb 100644 --- a/packages/@react-aria/calendar/src/types.ts +++ b/packages/@react-aria/calendar/src/types.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {HTMLAttributes, RefObject} from 'react'; import {PressProps} from '@react-aria/interactions'; diff --git a/packages/@react-aria/calendar/src/useCalendar.ts b/packages/@react-aria/calendar/src/useCalendar.ts index bb02c0e360e..f37bf610c12 100644 --- a/packages/@react-aria/calendar/src/useCalendar.ts +++ b/packages/@react-aria/calendar/src/useCalendar.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {CalendarAria} from './types'; import {CalendarProps} from '@react-types/calendar'; import {CalendarState} from '@react-stately/calendar'; diff --git a/packages/@react-aria/calendar/src/useCalendarBase.ts b/packages/@react-aria/calendar/src/useCalendarBase.ts index 63f45dafd73..96bb3209166 100644 --- a/packages/@react-aria/calendar/src/useCalendarBase.ts +++ b/packages/@react-aria/calendar/src/useCalendarBase.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {announce} from '@react-aria/live-announcer'; import {CalendarAria} from './types'; import {CalendarPropsBase} from '@react-types/calendar'; diff --git a/packages/@react-aria/calendar/src/useCalendarCell.ts b/packages/@react-aria/calendar/src/useCalendarCell.ts index 5b10de569f9..de04add310a 100644 --- a/packages/@react-aria/calendar/src/useCalendarCell.ts +++ b/packages/@react-aria/calendar/src/useCalendarCell.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {CalendarCellOptions, CalendarState, RangeCalendarState} from '@react-stately/calendar'; import {getCalendarId, getCellId} from './useCalendarBase'; import {HTMLAttributes} from 'react'; diff --git a/packages/@react-aria/calendar/src/useRangeCalendar.ts b/packages/@react-aria/calendar/src/useRangeCalendar.ts index a60e6e16a69..e38a1e997d4 100644 --- a/packages/@react-aria/calendar/src/useRangeCalendar.ts +++ b/packages/@react-aria/calendar/src/useRangeCalendar.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {CalendarAria} from './types'; // @ts-ignore import intlMessages from '../intl/*.json'; diff --git a/packages/@react-aria/checkbox/index.ts b/packages/@react-aria/checkbox/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-aria/checkbox/index.ts +++ b/packages/@react-aria/checkbox/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-aria/checkbox/package.json b/packages/@react-aria/checkbox/package.json index d117722d80e..dc2be0464a8 100644 --- a/packages/@react-aria/checkbox/package.json +++ b/packages/@react-aria/checkbox/package.json @@ -2,6 +2,7 @@ "name": "@react-aria/checkbox", "version": "3.0.0-rc.1", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-aria/checkbox/src/index.ts b/packages/@react-aria/checkbox/src/index.ts index c7acb2385f7..38cda41ccc4 100644 --- a/packages/@react-aria/checkbox/src/index.ts +++ b/packages/@react-aria/checkbox/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useCheckbox'; diff --git a/packages/@react-aria/checkbox/src/useCheckbox.ts b/packages/@react-aria/checkbox/src/useCheckbox.ts index a1b6a41cfaa..8aaa0972563 100644 --- a/packages/@react-aria/checkbox/src/useCheckbox.ts +++ b/packages/@react-aria/checkbox/src/useCheckbox.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {CheckboxProps} from '@react-types/checkbox'; import {InputHTMLAttributes, RefObject, useEffect} from 'react'; import {ToggleState} from '@react-stately/toggle'; diff --git a/packages/@react-aria/collections/index.ts b/packages/@react-aria/collections/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-aria/collections/index.ts +++ b/packages/@react-aria/collections/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-aria/collections/package.json b/packages/@react-aria/collections/package.json index cc5d6f3ad3a..5b1d0b4d5fb 100644 --- a/packages/@react-aria/collections/package.json +++ b/packages/@react-aria/collections/package.json @@ -2,6 +2,7 @@ "name": "@react-aria/collections", "version": "3.0.0-alpha.2", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-aria/collections/src/CollectionView.tsx b/packages/@react-aria/collections/src/CollectionView.tsx index 6a2391d62d2..cc3334e9de7 100644 --- a/packages/@react-aria/collections/src/CollectionView.tsx +++ b/packages/@react-aria/collections/src/CollectionView.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {chain} from '@react-aria/utils'; import {Collection, Layout, LayoutInfo} from '@react-stately/collections'; import React, {CSSProperties, FocusEvent, HTMLAttributes, Key, useCallback, useEffect, useRef} from 'react'; diff --git a/packages/@react-aria/collections/src/ScrollView.tsx b/packages/@react-aria/collections/src/ScrollView.tsx index 02d3a5b070c..9e327d9ade8 100644 --- a/packages/@react-aria/collections/src/ScrollView.tsx +++ b/packages/@react-aria/collections/src/ScrollView.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {flushSync} from 'react-dom'; import React, {CSSProperties, HTMLAttributes, ReactNode, RefObject, useCallback, useEffect, useLayoutEffect, useRef, useState} from 'react'; import {Rect, Size} from '@react-stately/collections'; diff --git a/packages/@react-aria/collections/src/index.ts b/packages/@react-aria/collections/src/index.ts index 25e6612b998..42da807af32 100644 --- a/packages/@react-aria/collections/src/index.ts +++ b/packages/@react-aria/collections/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './CollectionView'; diff --git a/packages/@react-aria/datepicker/index.ts b/packages/@react-aria/datepicker/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-aria/datepicker/index.ts +++ b/packages/@react-aria/datepicker/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-aria/datepicker/package.json b/packages/@react-aria/datepicker/package.json index 4fc64b8c3a3..be5d7dd5993 100644 --- a/packages/@react-aria/datepicker/package.json +++ b/packages/@react-aria/datepicker/package.json @@ -2,6 +2,7 @@ "name": "@react-aria/datepicker", "version": "3.0.0-alpha.2", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-aria/datepicker/src/index.ts b/packages/@react-aria/datepicker/src/index.ts index 70f0eed9887..6895b9f46fd 100644 --- a/packages/@react-aria/datepicker/src/index.ts +++ b/packages/@react-aria/datepicker/src/index.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useDatePicker'; export * from './useDateSegment'; export * from './useDateField'; diff --git a/packages/@react-aria/datepicker/src/useDateField.ts b/packages/@react-aria/datepicker/src/useDateField.ts index 0d6cc2e2bb7..91d954b0ecc 100644 --- a/packages/@react-aria/datepicker/src/useDateField.ts +++ b/packages/@react-aria/datepicker/src/useDateField.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DatePickerProps} from '@react-types/datepicker'; import {DOMProps} from '@react-types/shared'; import {HTMLAttributes, MouseEvent} from 'react'; diff --git a/packages/@react-aria/datepicker/src/useDatePicker.ts b/packages/@react-aria/datepicker/src/useDatePicker.ts index b9becfae1a5..6517cefeb81 100644 --- a/packages/@react-aria/datepicker/src/useDatePicker.ts +++ b/packages/@react-aria/datepicker/src/useDatePicker.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DatePickerProps, DateRangePickerProps} from '@react-types/datepicker'; import {DatePickerState, DateRangePickerState} from '@react-stately/datepicker'; import {DOMProps} from '@react-types/shared'; diff --git a/packages/@react-aria/datepicker/src/useDateRangePicker.ts b/packages/@react-aria/datepicker/src/useDateRangePicker.ts index 9c3f5ea1460..ed19edd1ec9 100644 --- a/packages/@react-aria/datepicker/src/useDateRangePicker.ts +++ b/packages/@react-aria/datepicker/src/useDateRangePicker.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DateRangePickerProps} from '@react-types/datepicker'; import {DateRangePickerState} from '@react-stately/datepicker'; import {DOMProps} from '@react-types/shared'; diff --git a/packages/@react-aria/datepicker/src/useDateSegment.ts b/packages/@react-aria/datepicker/src/useDateSegment.ts index 68ed17de71a..59f4c51710c 100644 --- a/packages/@react-aria/datepicker/src/useDateSegment.ts +++ b/packages/@react-aria/datepicker/src/useDateSegment.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DatePickerFieldState, DateSegment} from '@react-stately/datepicker'; import {DatePickerProps} from '@react-types/datepicker'; import {DOMProps} from '@react-types/shared'; diff --git a/packages/@react-aria/dialog/index.ts b/packages/@react-aria/dialog/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-aria/dialog/index.ts +++ b/packages/@react-aria/dialog/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-aria/dialog/package.json b/packages/@react-aria/dialog/package.json index 25fc66fa636..064fb761237 100644 --- a/packages/@react-aria/dialog/package.json +++ b/packages/@react-aria/dialog/package.json @@ -2,6 +2,7 @@ "name": "@react-aria/dialog", "version": "3.0.0-alpha.2", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "peerDependencies": { "react": "^16.8.0" diff --git a/packages/@react-aria/dialog/src/index.ts b/packages/@react-aria/dialog/src/index.ts index b849f55ea7a..0e01f69fd68 100644 --- a/packages/@react-aria/dialog/src/index.ts +++ b/packages/@react-aria/dialog/src/index.ts @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useDialog'; export * from './useModalDialog'; diff --git a/packages/@react-aria/dialog/src/useDialog.ts b/packages/@react-aria/dialog/src/useDialog.ts index cc54c582417..e5706f3823f 100644 --- a/packages/@react-aria/dialog/src/useDialog.ts +++ b/packages/@react-aria/dialog/src/useDialog.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {AllHTMLAttributes, RefObject, useEffect} from 'react'; export interface DialogProps { diff --git a/packages/@react-aria/dialog/src/useModalDialog.tsx b/packages/@react-aria/dialog/src/useModalDialog.tsx index 4a1ccb3f598..2aa663cd2a9 100644 --- a/packages/@react-aria/dialog/src/useModalDialog.tsx +++ b/packages/@react-aria/dialog/src/useModalDialog.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import React, {AriaAttributes, ReactNode, useContext, useEffect, useState} from 'react'; interface ModalProviderProps { diff --git a/packages/@react-aria/dialog/test/useDialog.test.js b/packages/@react-aria/dialog/test/useDialog.test.js index ee18714c951..c81b17c9924 100644 --- a/packages/@react-aria/dialog/test/useDialog.test.js +++ b/packages/@react-aria/dialog/test/useDialog.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, render} from '@testing-library/react'; import React, {useRef} from 'react'; import {useDialog} from '../'; diff --git a/packages/@react-aria/dialog/test/useModalDialog.test.js b/packages/@react-aria/dialog/test/useModalDialog.test.js index cfbba646ab4..bb51189f81b 100644 --- a/packages/@react-aria/dialog/test/useModalDialog.test.js +++ b/packages/@react-aria/dialog/test/useModalDialog.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, render} from '@testing-library/react'; import {ModalProvider, useModalDialog, useModalProvider} from '../'; import React from 'react'; diff --git a/packages/@react-aria/focus/index.ts b/packages/@react-aria/focus/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-aria/focus/index.ts +++ b/packages/@react-aria/focus/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-aria/focus/package.json b/packages/@react-aria/focus/package.json index 9f4884962c3..5c3301e73ea 100644 --- a/packages/@react-aria/focus/package.json +++ b/packages/@react-aria/focus/package.json @@ -2,6 +2,7 @@ "name": "@react-aria/focus", "version": "3.0.0-rc.1", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-aria/focus/src/FocusRing.tsx b/packages/@react-aria/focus/src/FocusRing.tsx index 4fbd25ec936..43b47b69e9a 100644 --- a/packages/@react-aria/focus/src/FocusRing.tsx +++ b/packages/@react-aria/focus/src/FocusRing.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import classNames from 'classnames'; import {mergeProps} from '@react-aria/utils'; import React, {ReactElement, useState} from 'react'; diff --git a/packages/@react-aria/focus/src/FocusScope.tsx b/packages/@react-aria/focus/src/FocusScope.tsx index b4f972cb0ef..b670d56bdc2 100644 --- a/packages/@react-aria/focus/src/FocusScope.tsx +++ b/packages/@react-aria/focus/src/FocusScope.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import React, {ReactNode, RefObject, useContext, useEffect, useLayoutEffect, useRef} from 'react'; // import {FocusScope, useFocusScope} from 'react-events/focus-scope'; diff --git a/packages/@react-aria/focus/src/index.ts b/packages/@react-aria/focus/src/index.ts index bfdd8816d7f..3402e6b37b1 100644 --- a/packages/@react-aria/focus/src/index.ts +++ b/packages/@react-aria/focus/src/index.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './FocusScope'; export * from './FocusRing'; export * from './useFocusable'; diff --git a/packages/@react-aria/focus/src/useFocusable.ts b/packages/@react-aria/focus/src/useFocusable.ts index 109daaba13a..3d1dd314433 100644 --- a/packages/@react-aria/focus/src/useFocusable.ts +++ b/packages/@react-aria/focus/src/useFocusable.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {FocusEvents, KeyboardEvents} from '@react-types/shared'; import {mergeProps} from '@react-aria/utils'; import {RefObject, useEffect} from 'react'; diff --git a/packages/@react-aria/focus/test/FocusScope.test.js b/packages/@react-aria/focus/test/FocusScope.test.js index d46b5d4cc6f..fc6ad2b0494 100644 --- a/packages/@react-aria/focus/test/FocusScope.test.js +++ b/packages/@react-aria/focus/test/FocusScope.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, fireEvent, render} from '@testing-library/react'; import {FocusScope, useFocusManager} from '../'; import React from 'react'; diff --git a/packages/@react-aria/i18n/index.ts b/packages/@react-aria/i18n/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-aria/i18n/index.ts +++ b/packages/@react-aria/i18n/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-aria/i18n/package.json b/packages/@react-aria/i18n/package.json index d6e4d8ef5fb..7e2a4846d33 100644 --- a/packages/@react-aria/i18n/package.json +++ b/packages/@react-aria/i18n/package.json @@ -2,6 +2,7 @@ "name": "@react-aria/i18n", "version": "3.0.0-rc.1", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-aria/i18n/src/context.tsx b/packages/@react-aria/i18n/src/context.tsx index 665d5018993..c479aaf4643 100644 --- a/packages/@react-aria/i18n/src/context.tsx +++ b/packages/@react-aria/i18n/src/context.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import React, {ReactNode, useContext} from 'react'; import {useDefaultLocale} from './useDefaultLocale'; diff --git a/packages/@react-aria/i18n/src/index.ts b/packages/@react-aria/i18n/src/index.ts index 1445747ee7c..8204000337e 100644 --- a/packages/@react-aria/i18n/src/index.ts +++ b/packages/@react-aria/i18n/src/index.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './context'; export * from './useMessageFormatter'; export * from './useDateFormatter'; diff --git a/packages/@react-aria/i18n/src/useDateFormatter.ts b/packages/@react-aria/i18n/src/useDateFormatter.ts index 139f54cdf7d..77a2ea4ba96 100644 --- a/packages/@react-aria/i18n/src/useDateFormatter.ts +++ b/packages/@react-aria/i18n/src/useDateFormatter.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {useLocale} from './context'; let formatterCache = new Map(); diff --git a/packages/@react-aria/i18n/src/useDefaultLocale.ts b/packages/@react-aria/i18n/src/useDefaultLocale.ts index 985bd2f7b5e..547f8c3440d 100644 --- a/packages/@react-aria/i18n/src/useDefaultLocale.ts +++ b/packages/@react-aria/i18n/src/useDefaultLocale.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {useEffect, useState} from 'react'; export function getDefaultLocale() { diff --git a/packages/@react-aria/i18n/src/useMessageFormatter.ts b/packages/@react-aria/i18n/src/useMessageFormatter.ts index f973a838931..d42f902cd31 100644 --- a/packages/@react-aria/i18n/src/useMessageFormatter.ts +++ b/packages/@react-aria/i18n/src/useMessageFormatter.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import IntlMessageFormat from 'intl-messageformat'; import {useLocale} from './context'; diff --git a/packages/@react-aria/i18n/src/useNumberFormatter.ts b/packages/@react-aria/i18n/src/useNumberFormatter.ts index a40acdabe7c..10190a25f22 100644 --- a/packages/@react-aria/i18n/src/useNumberFormatter.ts +++ b/packages/@react-aria/i18n/src/useNumberFormatter.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {useLocale} from './context'; import {useMemo} from 'react'; diff --git a/packages/@react-aria/illustrated-message/index.ts b/packages/@react-aria/illustrated-message/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-aria/illustrated-message/index.ts +++ b/packages/@react-aria/illustrated-message/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-aria/illustrated-message/package.json b/packages/@react-aria/illustrated-message/package.json index c1975108b6d..969dca1eaf8 100644 --- a/packages/@react-aria/illustrated-message/package.json +++ b/packages/@react-aria/illustrated-message/package.json @@ -3,6 +3,7 @@ "version": "3.0.0-alpha.2", "private": true, "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -13,7 +14,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2" diff --git a/packages/@react-aria/illustrated-message/src/index.ts b/packages/@react-aria/illustrated-message/src/index.ts index 36edbe9d4a5..b62e6a45a0a 100644 --- a/packages/@react-aria/illustrated-message/src/index.ts +++ b/packages/@react-aria/illustrated-message/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useIllustratedMessage'; diff --git a/packages/@react-aria/illustrated-message/src/useIllustratedMessage.ts b/packages/@react-aria/illustrated-message/src/useIllustratedMessage.ts index faf3e48e690..b3777e2b356 100644 --- a/packages/@react-aria/illustrated-message/src/useIllustratedMessage.ts +++ b/packages/@react-aria/illustrated-message/src/useIllustratedMessage.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {AllHTMLAttributes, ReactElement, ReactNode, SVGAttributes} from 'react'; import {DOMProps} from '@react-types/shared'; diff --git a/packages/@react-aria/interactions/index.ts b/packages/@react-aria/interactions/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-aria/interactions/index.ts +++ b/packages/@react-aria/interactions/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-aria/interactions/package.json b/packages/@react-aria/interactions/package.json index 3050d239d7d..28410b6f403 100644 --- a/packages/@react-aria/interactions/package.json +++ b/packages/@react-aria/interactions/package.json @@ -2,6 +2,7 @@ "name": "@react-aria/interactions", "version": "3.0.0-rc.1", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-aria/interactions/src/DOMPropsContext.ts b/packages/@react-aria/interactions/src/DOMPropsContext.ts index a97be8de1db..46fdd4827d6 100644 --- a/packages/@react-aria/interactions/src/DOMPropsContext.ts +++ b/packages/@react-aria/interactions/src/DOMPropsContext.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {HoverHookProps, HoverProps} from './useHover'; import {mergeProps} from '@react-aria/utils'; import React, {MutableRefObject, useContext, useEffect} from 'react'; diff --git a/packages/@react-aria/interactions/src/DOMPropsResponder.tsx b/packages/@react-aria/interactions/src/DOMPropsResponder.tsx index e353773c6e6..6031e9f96f5 100644 --- a/packages/@react-aria/interactions/src/DOMPropsResponder.tsx +++ b/packages/@react-aria/interactions/src/DOMPropsResponder.tsx @@ -1,4 +1,15 @@ -// TODO: Import usePress and PressProps so this Responder can be utilized in place of the PressResponder as well +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMPropsResponderContext} from './DOMPropsContext'; import {HoverProps} from './useHover'; import React, {ReactNode, RefObject, useEffect, useRef} from 'react'; diff --git a/packages/@react-aria/interactions/src/PressResponder.tsx b/packages/@react-aria/interactions/src/PressResponder.tsx index 1ae19bafaab..339cc219b07 100644 --- a/packages/@react-aria/interactions/src/PressResponder.tsx +++ b/packages/@react-aria/interactions/src/PressResponder.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {PressProps} from './usePress'; import {PressResponderContext} from './context'; import React, {ReactNode, RefObject, useEffect, useRef} from 'react'; diff --git a/packages/@react-aria/interactions/src/Pressable.tsx b/packages/@react-aria/interactions/src/Pressable.tsx index 948ecf58b99..e56472bc399 100644 --- a/packages/@react-aria/interactions/src/Pressable.tsx +++ b/packages/@react-aria/interactions/src/Pressable.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {mergeProps} from '@react-aria/utils'; import {PressProps, usePress} from './usePress'; import React, {HTMLAttributes, ReactElement, RefObject, useRef} from 'react'; diff --git a/packages/@react-aria/interactions/src/context.ts b/packages/@react-aria/interactions/src/context.ts index 7d6f8c924ae..c9a24fce0e8 100644 --- a/packages/@react-aria/interactions/src/context.ts +++ b/packages/@react-aria/interactions/src/context.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {PressProps} from './usePress'; import React, {MutableRefObject} from 'react'; diff --git a/packages/@react-aria/interactions/src/createEventHandler.ts b/packages/@react-aria/interactions/src/createEventHandler.ts index 1cc7387cdb1..00527baf9d5 100644 --- a/packages/@react-aria/interactions/src/createEventHandler.ts +++ b/packages/@react-aria/interactions/src/createEventHandler.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {BaseEvent} from '@react-types/shared'; import {SyntheticEvent} from 'react'; diff --git a/packages/@react-aria/interactions/src/index.ts b/packages/@react-aria/interactions/src/index.ts index b875bff5fd7..c6d31aa5423 100644 --- a/packages/@react-aria/interactions/src/index.ts +++ b/packages/@react-aria/interactions/src/index.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './usePress'; export * from './useInteractOutside'; export * from './Pressable'; diff --git a/packages/@react-aria/interactions/src/useDOMPropsResponder.ts b/packages/@react-aria/interactions/src/useDOMPropsResponder.ts index 6f8e95374bb..435851a521d 100644 --- a/packages/@react-aria/interactions/src/useDOMPropsResponder.ts +++ b/packages/@react-aria/interactions/src/useDOMPropsResponder.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {RefObject} from 'react'; import {useDOMPropsResponderContext} from './DOMPropsContext'; diff --git a/packages/@react-aria/interactions/src/useFocus.ts b/packages/@react-aria/interactions/src/useFocus.ts index 6a8d6eae6ec..edc65ee246e 100644 --- a/packages/@react-aria/interactions/src/useFocus.ts +++ b/packages/@react-aria/interactions/src/useFocus.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {createEventHandler} from './createEventHandler'; import {FocusEvent, FocusEvents} from '@react-types/shared'; import {HTMLAttributes} from 'react'; diff --git a/packages/@react-aria/interactions/src/useFocusVisible.ts b/packages/@react-aria/interactions/src/useFocusVisible.ts index 3fe2e541575..3e86e303b9b 100644 --- a/packages/@react-aria/interactions/src/useFocusVisible.ts +++ b/packages/@react-aria/interactions/src/useFocusVisible.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {useEffect, useState} from 'react'; type Modality = 'keyboard' | 'pointer'; diff --git a/packages/@react-aria/interactions/src/useFocusWithin.ts b/packages/@react-aria/interactions/src/useFocusWithin.ts index c119d94a739..0906c0b0262 100644 --- a/packages/@react-aria/interactions/src/useFocusWithin.ts +++ b/packages/@react-aria/interactions/src/useFocusWithin.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {createEventHandler} from './createEventHandler'; import {FocusEvent} from '@react-types/shared'; import {HTMLAttributes, useRef} from 'react'; diff --git a/packages/@react-aria/interactions/src/useHover.ts b/packages/@react-aria/interactions/src/useHover.ts index a38d6daeab8..da9a31a8c0d 100644 --- a/packages/@react-aria/interactions/src/useHover.ts +++ b/packages/@react-aria/interactions/src/useHover.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMProps, HoverEvents} from '@react-types/shared'; import {HTMLAttributes, RefObject, useMemo} from 'react'; import {mergeProps} from '@react-aria/utils'; diff --git a/packages/@react-aria/interactions/src/useInteractOutside.ts b/packages/@react-aria/interactions/src/useInteractOutside.ts index 5d73ac18a46..b6fea948c4e 100644 --- a/packages/@react-aria/interactions/src/useInteractOutside.ts +++ b/packages/@react-aria/interactions/src/useInteractOutside.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {RefObject, SyntheticEvent, useEffect, useRef} from 'react'; interface InteractOutsideProps { diff --git a/packages/@react-aria/interactions/src/useKeyboard.ts b/packages/@react-aria/interactions/src/useKeyboard.ts index 56fc59d541a..9a2f96beef3 100644 --- a/packages/@react-aria/interactions/src/useKeyboard.ts +++ b/packages/@react-aria/interactions/src/useKeyboard.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {createEventHandler} from './createEventHandler'; import {HTMLAttributes} from 'react'; import {KeyboardEvents} from '@react-types/shared'; diff --git a/packages/@react-aria/interactions/src/usePress.ts b/packages/@react-aria/interactions/src/usePress.ts index ddb5940dd51..93862c706b9 100644 --- a/packages/@react-aria/interactions/src/usePress.ts +++ b/packages/@react-aria/interactions/src/usePress.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMProps, PointerType, PressEvents} from '@react-types/shared'; import {HTMLAttributes, RefObject, useContext, useEffect, useMemo, useRef, useState} from 'react'; import {mergeProps} from '@react-aria/utils'; diff --git a/packages/@react-aria/interactions/test/PressResponder.test.js b/packages/@react-aria/interactions/test/PressResponder.test.js index 802f9013605..4ac92d91fa9 100644 --- a/packages/@react-aria/interactions/test/PressResponder.test.js +++ b/packages/@react-aria/interactions/test/PressResponder.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, fireEvent, render} from '@testing-library/react'; import {Pressable, PressResponder} from '../'; import React from 'react'; diff --git a/packages/@react-aria/interactions/test/Pressable.test.js b/packages/@react-aria/interactions/test/Pressable.test.js index 88d1fcc9e6c..86d40487193 100644 --- a/packages/@react-aria/interactions/test/Pressable.test.js +++ b/packages/@react-aria/interactions/test/Pressable.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, fireEvent, render} from '@testing-library/react'; import {Pressable} from '../'; import React from 'react'; diff --git a/packages/@react-aria/interactions/test/useFocus.test.js b/packages/@react-aria/interactions/test/useFocus.test.js index 1382e06bc1b..f2e0e480abf 100644 --- a/packages/@react-aria/interactions/test/useFocus.test.js +++ b/packages/@react-aria/interactions/test/useFocus.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, render} from '@testing-library/react'; import React from 'react'; import {useFocus} from '../'; diff --git a/packages/@react-aria/interactions/test/useFocusWithin.test.js b/packages/@react-aria/interactions/test/useFocusWithin.test.js index 30616f66e55..5ad3ee5c668 100644 --- a/packages/@react-aria/interactions/test/useFocusWithin.test.js +++ b/packages/@react-aria/interactions/test/useFocusWithin.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, render} from '@testing-library/react'; import React from 'react'; import {useFocusWithin} from '../'; diff --git a/packages/@react-aria/interactions/test/useInteractOutside.test.js b/packages/@react-aria/interactions/test/useInteractOutside.test.js index 0c1f884e570..5ea1d560842 100644 --- a/packages/@react-aria/interactions/test/useInteractOutside.test.js +++ b/packages/@react-aria/interactions/test/useInteractOutside.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, fireEvent, render} from '@testing-library/react'; import React, {useRef} from 'react'; import {useInteractOutside} from '../'; diff --git a/packages/@react-aria/interactions/test/useKeyboard.test.js b/packages/@react-aria/interactions/test/useKeyboard.test.js index be07d74a81e..6e04e92b625 100644 --- a/packages/@react-aria/interactions/test/useKeyboard.test.js +++ b/packages/@react-aria/interactions/test/useKeyboard.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, fireEvent, render} from '@testing-library/react'; import React from 'react'; import {useKeyboard} from '../'; diff --git a/packages/@react-aria/interactions/test/usePress.test.js b/packages/@react-aria/interactions/test/usePress.test.js index e39f2f0e843..5e0099eea73 100644 --- a/packages/@react-aria/interactions/test/usePress.test.js +++ b/packages/@react-aria/interactions/test/usePress.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, fireEvent, render} from '@testing-library/react'; import React from 'react'; import {usePress} from '../'; diff --git a/packages/@react-aria/label/index.ts b/packages/@react-aria/label/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-aria/label/index.ts +++ b/packages/@react-aria/label/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-aria/label/package.json b/packages/@react-aria/label/package.json index 6ba8461430d..a6fb3cc42a9 100644 --- a/packages/@react-aria/label/package.json +++ b/packages/@react-aria/label/package.json @@ -2,6 +2,7 @@ "name": "@react-aria/label", "version": "3.0.0-rc.1", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-aria/label/src/index.ts b/packages/@react-aria/label/src/index.ts index e0d4a5a6d99..97de3c360b3 100644 --- a/packages/@react-aria/label/src/index.ts +++ b/packages/@react-aria/label/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useLabel'; diff --git a/packages/@react-aria/label/src/useLabel.ts b/packages/@react-aria/label/src/useLabel.ts index 9d7f561b4a6..e9c017d16e4 100644 --- a/packages/@react-aria/label/src/useLabel.ts +++ b/packages/@react-aria/label/src/useLabel.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMProps, LabelableProps} from '@react-types/shared'; import {ElementType, HTMLAttributes, LabelHTMLAttributes} from 'react'; import {useId, useLabels} from '@react-aria/utils'; diff --git a/packages/@react-aria/label/test/useLabel.test.js b/packages/@react-aria/label/test/useLabel.test.js index 7db0be6515d..061f257c1d9 100644 --- a/packages/@react-aria/label/test/useLabel.test.js +++ b/packages/@react-aria/label/test/useLabel.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import React from 'react'; import {renderHook} from 'react-hooks-testing-library'; import {useLabel} from '../'; diff --git a/packages/@react-aria/link/index.ts b/packages/@react-aria/link/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-aria/link/index.ts +++ b/packages/@react-aria/link/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-aria/link/package.json b/packages/@react-aria/link/package.json index ea688f58f26..f10c871c9db 100644 --- a/packages/@react-aria/link/package.json +++ b/packages/@react-aria/link/package.json @@ -3,6 +3,7 @@ "version": "3.0.0-alpha.2", "private": true, "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -13,7 +14,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-aria/link/src/index.ts b/packages/@react-aria/link/src/index.ts index 5216aaed2a6..706385e862b 100644 --- a/packages/@react-aria/link/src/index.ts +++ b/packages/@react-aria/link/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useLink'; diff --git a/packages/@react-aria/link/src/useLink.ts b/packages/@react-aria/link/src/useLink.ts index 7da46cf55b9..eab9754dfa2 100644 --- a/packages/@react-aria/link/src/useLink.ts +++ b/packages/@react-aria/link/src/useLink.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {AllHTMLAttributes, RefObject, SyntheticEvent} from 'react'; import {DOMProps, PressEvent} from '@react-types/shared'; import {LinkProps} from '@react-types/link'; diff --git a/packages/@react-aria/link/test/useLink.test.js b/packages/@react-aria/link/test/useLink.test.js index f904da457c8..440e90487f9 100644 --- a/packages/@react-aria/link/test/useLink.test.js +++ b/packages/@react-aria/link/test/useLink.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup} from '@testing-library/react'; import React from 'react'; import {renderHook} from 'react-hooks-testing-library'; diff --git a/packages/@react-aria/live-announcer/index.ts b/packages/@react-aria/live-announcer/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-aria/live-announcer/index.ts +++ b/packages/@react-aria/live-announcer/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-aria/live-announcer/package.json b/packages/@react-aria/live-announcer/package.json index a4ca8fc807b..8b064ac816c 100644 --- a/packages/@react-aria/live-announcer/package.json +++ b/packages/@react-aria/live-announcer/package.json @@ -2,6 +2,7 @@ "name": "@react-aria/live-announcer", "version": "3.0.0-alpha.2", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-aria/live-announcer/src/LiveAnnouncer.tsx b/packages/@react-aria/live-announcer/src/LiveAnnouncer.tsx index f3c1b96c90d..fcc03db5d7e 100644 --- a/packages/@react-aria/live-announcer/src/LiveAnnouncer.tsx +++ b/packages/@react-aria/live-announcer/src/LiveAnnouncer.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import React, {Fragment, useImperativeHandle, useRef, useState} from 'react'; import ReactDOM from 'react-dom'; import {VisuallyHidden} from '@react-aria/visually-hidden'; diff --git a/packages/@react-aria/live-announcer/src/index.ts b/packages/@react-aria/live-announcer/src/index.ts index 3f82d166bae..429a6538f29 100644 --- a/packages/@react-aria/live-announcer/src/index.ts +++ b/packages/@react-aria/live-announcer/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './LiveAnnouncer'; diff --git a/packages/@react-aria/menu-trigger/index.ts b/packages/@react-aria/menu-trigger/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-aria/menu-trigger/index.ts +++ b/packages/@react-aria/menu-trigger/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-aria/menu-trigger/package.json b/packages/@react-aria/menu-trigger/package.json index 3011cc9c7e7..1713bc3a00e 100644 --- a/packages/@react-aria/menu-trigger/package.json +++ b/packages/@react-aria/menu-trigger/package.json @@ -3,6 +3,7 @@ "version": "3.0.0-alpha.2", "private": true, "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -13,7 +14,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-aria/menu-trigger/src/index.ts b/packages/@react-aria/menu-trigger/src/index.ts index ae2717494e2..368aa8105aa 100644 --- a/packages/@react-aria/menu-trigger/src/index.ts +++ b/packages/@react-aria/menu-trigger/src/index.ts @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useMenuTrigger'; export * from './useMenu'; diff --git a/packages/@react-aria/menu-trigger/src/useMenu.ts b/packages/@react-aria/menu-trigger/src/useMenu.ts index 051d4ad7eb0..5f6d2667124 100644 --- a/packages/@react-aria/menu-trigger/src/useMenu.ts +++ b/packages/@react-aria/menu-trigger/src/useMenu.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {AllHTMLAttributes} from 'react'; import {CollectionBase, DOMProps, Expandable, MultipleSelection, Orientation} from '@react-types/shared'; import {ListLayout} from '@react-stately/collections'; diff --git a/packages/@react-aria/menu-trigger/src/useMenuTrigger.ts b/packages/@react-aria/menu-trigger/src/useMenuTrigger.ts index 25b9e9be1f6..5cd8da6e257 100644 --- a/packages/@react-aria/menu-trigger/src/useMenuTrigger.ts +++ b/packages/@react-aria/menu-trigger/src/useMenuTrigger.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {AllHTMLAttributes, RefObject} from 'react'; import {PressProps} from '@react-aria/interactions'; import {useId} from '@react-aria/utils'; diff --git a/packages/@react-aria/menu-trigger/test/useMenu.test.js b/packages/@react-aria/menu-trigger/test/useMenu.test.js index 6fdb1ac8ae6..5aa5a9e6d51 100644 --- a/packages/@react-aria/menu-trigger/test/useMenu.test.js +++ b/packages/@react-aria/menu-trigger/test/useMenu.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {ListLayout} from '@react-stately/collections'; import React from 'react'; import {renderHook} from 'react-hooks-testing-library'; diff --git a/packages/@react-aria/menu-trigger/test/useMenuTrigger.test.js b/packages/@react-aria/menu-trigger/test/useMenuTrigger.test.js index cf6a9aed64d..f379831be39 100644 --- a/packages/@react-aria/menu-trigger/test/useMenuTrigger.test.js +++ b/packages/@react-aria/menu-trigger/test/useMenuTrigger.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import React, {createRef} from 'react'; import {renderHook} from 'react-hooks-testing-library'; import {useMenuTrigger} from '../'; diff --git a/packages/@react-aria/meter/index.ts b/packages/@react-aria/meter/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-aria/meter/index.ts +++ b/packages/@react-aria/meter/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-aria/meter/package.json b/packages/@react-aria/meter/package.json index a9dea90fa4d..573be740eb6 100644 --- a/packages/@react-aria/meter/package.json +++ b/packages/@react-aria/meter/package.json @@ -2,6 +2,7 @@ "name": "@react-aria/meter", "version": "3.0.0-rc.1", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-aria/meter/src/index.ts b/packages/@react-aria/meter/src/index.ts index e6f5962224f..e2188f19509 100644 --- a/packages/@react-aria/meter/src/index.ts +++ b/packages/@react-aria/meter/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useMeter'; diff --git a/packages/@react-aria/meter/src/useMeter.ts b/packages/@react-aria/meter/src/useMeter.ts index dc80d2e0184..78b26b75a7d 100644 --- a/packages/@react-aria/meter/src/useMeter.ts +++ b/packages/@react-aria/meter/src/useMeter.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {AllHTMLAttributes} from 'react'; import {DOMProps} from '@react-types/shared'; import {ProgressBarBaseProps} from '@react-types/progress'; diff --git a/packages/@react-aria/numberfield/index.ts b/packages/@react-aria/numberfield/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-aria/numberfield/index.ts +++ b/packages/@react-aria/numberfield/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-aria/numberfield/package.json b/packages/@react-aria/numberfield/package.json index 68962f41b41..e8126ab09f9 100644 --- a/packages/@react-aria/numberfield/package.json +++ b/packages/@react-aria/numberfield/package.json @@ -2,6 +2,7 @@ "name": "@react-aria/numberfield", "version": "3.0.0-alpha.2", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-aria/numberfield/src/index.ts b/packages/@react-aria/numberfield/src/index.ts index 08af6ac4a0d..ea1ac27a442 100644 --- a/packages/@react-aria/numberfield/src/index.ts +++ b/packages/@react-aria/numberfield/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useNumberField'; diff --git a/packages/@react-aria/numberfield/src/useNumberField.ts b/packages/@react-aria/numberfield/src/useNumberField.ts index 1002cb75993..497b10f2c8e 100644 --- a/packages/@react-aria/numberfield/src/useNumberField.ts +++ b/packages/@react-aria/numberfield/src/useNumberField.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {AllHTMLAttributes, useEffect} from 'react'; import intlMessages from '../intl/*.json'; import {mergeProps, useId} from '@react-aria/utils'; diff --git a/packages/@react-aria/overlays/index.ts b/packages/@react-aria/overlays/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-aria/overlays/index.ts +++ b/packages/@react-aria/overlays/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-aria/overlays/package.json b/packages/@react-aria/overlays/package.json index 8bbdb1019bb..73fb236c85c 100644 --- a/packages/@react-aria/overlays/package.json +++ b/packages/@react-aria/overlays/package.json @@ -2,6 +2,7 @@ "name": "@react-aria/overlays", "version": "3.0.0-alpha.2", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-aria/overlays/src/calculatePosition.ts b/packages/@react-aria/overlays/src/calculatePosition.ts index 9d0a0ac6f8b..92c72a410bf 100644 --- a/packages/@react-aria/overlays/src/calculatePosition.ts +++ b/packages/@react-aria/overlays/src/calculatePosition.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import getCss from 'dom-helpers/style'; import getOffset from 'dom-helpers/query/offset'; import getPosition from 'dom-helpers/query/position'; diff --git a/packages/@react-aria/overlays/src/index.ts b/packages/@react-aria/overlays/src/index.ts index 41ae9c3577f..fd58db4f5d5 100644 --- a/packages/@react-aria/overlays/src/index.ts +++ b/packages/@react-aria/overlays/src/index.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useOverlayPosition'; export * from './useOverlay'; export * from './useOverlayTrigger'; diff --git a/packages/@react-aria/overlays/src/useModal.ts b/packages/@react-aria/overlays/src/useModal.ts index e9e7eaa7111..9c6d3757992 100644 --- a/packages/@react-aria/overlays/src/useModal.ts +++ b/packages/@react-aria/overlays/src/useModal.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {useEffect} from 'react'; export function useModal() { diff --git a/packages/@react-aria/overlays/src/useOverlay.ts b/packages/@react-aria/overlays/src/useOverlay.ts index 1b86ace5464..3771d66f049 100644 --- a/packages/@react-aria/overlays/src/useOverlay.ts +++ b/packages/@react-aria/overlays/src/useOverlay.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {AllHTMLAttributes, RefObject, useEffect} from 'react'; import {useInteractOutside} from '@react-aria/interactions'; diff --git a/packages/@react-aria/overlays/src/useOverlayPosition.ts b/packages/@react-aria/overlays/src/useOverlayPosition.ts index 911fab37715..89ce75f3727 100644 --- a/packages/@react-aria/overlays/src/useOverlayPosition.ts +++ b/packages/@react-aria/overlays/src/useOverlayPosition.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {calculatePosition} from './calculatePosition'; import {HTMLAttributes, RefObject, useEffect, useState} from 'react'; import {useLocale} from '@react-aria/i18n'; diff --git a/packages/@react-aria/overlays/src/useOverlayTrigger.ts b/packages/@react-aria/overlays/src/useOverlayTrigger.ts index a29311fd430..96545e817f3 100644 --- a/packages/@react-aria/overlays/src/useOverlayTrigger.ts +++ b/packages/@react-aria/overlays/src/useOverlayTrigger.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {HTMLAttributes, RefObject, useEffect} from 'react'; import {useId} from '@react-aria/utils'; diff --git a/packages/@react-aria/overlays/test/calculatePosition.test.js b/packages/@react-aria/overlays/test/calculatePosition.test.js index 07d8355493b..35c07f360d9 100644 --- a/packages/@react-aria/overlays/test/calculatePosition.test.js +++ b/packages/@react-aria/overlays/test/calculatePosition.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {calculatePosition} from '../src/calculatePosition'; const FLIPPED_DIRECTION = { diff --git a/packages/@react-aria/overlays/test/useModal.test.js b/packages/@react-aria/overlays/test/useModal.test.js index 72023c33e83..7b6f44c79bc 100644 --- a/packages/@react-aria/overlays/test/useModal.test.js +++ b/packages/@react-aria/overlays/test/useModal.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, render} from '@testing-library/react'; import React from 'react'; import ReactDOM from 'react-dom'; diff --git a/packages/@react-aria/overlays/test/useOverlay.test.js b/packages/@react-aria/overlays/test/useOverlay.test.js index fc5fbb950d4..f1fb2cc7e69 100644 --- a/packages/@react-aria/overlays/test/useOverlay.test.js +++ b/packages/@react-aria/overlays/test/useOverlay.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, fireEvent, render} from '@testing-library/react'; import React, {useRef} from 'react'; import {useOverlay} from '../'; diff --git a/packages/@react-aria/overlays/test/useOverlayPosition.test.js b/packages/@react-aria/overlays/test/useOverlayPosition.test.js index c962244cf6d..8aed3fa2e66 100644 --- a/packages/@react-aria/overlays/test/useOverlayPosition.test.js +++ b/packages/@react-aria/overlays/test/useOverlayPosition.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, fireEvent, render} from '@testing-library/react'; import React, {useRef} from 'react'; import {useOverlayPosition} from '../'; diff --git a/packages/@react-aria/overlays/test/useOverlayTrigger.test.js b/packages/@react-aria/overlays/test/useOverlayTrigger.test.js index cdbc51d9d52..7d51286645e 100644 --- a/packages/@react-aria/overlays/test/useOverlayTrigger.test.js +++ b/packages/@react-aria/overlays/test/useOverlayTrigger.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, fireEvent, render} from '@testing-library/react'; import React, {useRef} from 'react'; import {useOverlayTrigger} from '../'; diff --git a/packages/@react-aria/pagination/index.ts b/packages/@react-aria/pagination/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-aria/pagination/index.ts +++ b/packages/@react-aria/pagination/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-aria/pagination/intl/index.js b/packages/@react-aria/pagination/intl/index.js index 7552b53ba9e..ab42abafdb9 100644 --- a/packages/@react-aria/pagination/intl/index.js +++ b/packages/@react-aria/pagination/intl/index.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import csCZ from './cs-CZ.json'; import daDK from './da-DK.json'; import deDE from './de-DE.json'; diff --git a/packages/@react-aria/pagination/package.json b/packages/@react-aria/pagination/package.json index 8170c6eb4eb..9e468605a17 100644 --- a/packages/@react-aria/pagination/package.json +++ b/packages/@react-aria/pagination/package.json @@ -2,6 +2,7 @@ "name": "@react-aria/pagination", "version": "3.0.0-alpha.2", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-aria/pagination/src/index.ts b/packages/@react-aria/pagination/src/index.ts index 612e4d2bec2..8b6a2f9937d 100644 --- a/packages/@react-aria/pagination/src/index.ts +++ b/packages/@react-aria/pagination/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './usePagination'; diff --git a/packages/@react-aria/pagination/src/usePagination.ts b/packages/@react-aria/pagination/src/usePagination.ts index 9556cf5e987..5d77e33918d 100644 --- a/packages/@react-aria/pagination/src/usePagination.ts +++ b/packages/@react-aria/pagination/src/usePagination.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import intlMessages from '../intl'; import {PaginationState} from '@react-stately/pagination'; import {useMessageFormatter} from '@react-aria/i18n'; diff --git a/packages/@react-aria/pagination/test/usePagination.test.js b/packages/@react-aria/pagination/test/usePagination.test.js index 2ba34d3da9f..2874ace31fe 100644 --- a/packages/@react-aria/pagination/test/usePagination.test.js +++ b/packages/@react-aria/pagination/test/usePagination.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import React from 'react'; import {renderHook} from 'react-hooks-testing-library'; import {usePagination} from '../'; diff --git a/packages/@react-aria/progress/index.ts b/packages/@react-aria/progress/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-aria/progress/index.ts +++ b/packages/@react-aria/progress/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-aria/progress/package.json b/packages/@react-aria/progress/package.json index 496bc570db9..21e51acd8a8 100644 --- a/packages/@react-aria/progress/package.json +++ b/packages/@react-aria/progress/package.json @@ -2,6 +2,7 @@ "name": "@react-aria/progress", "version": "3.0.0-rc.1", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/index.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-aria/progress/src/index.ts b/packages/@react-aria/progress/src/index.ts index 7dcd1e58a4b..630f836b6c7 100644 --- a/packages/@react-aria/progress/src/index.ts +++ b/packages/@react-aria/progress/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useProgressBar'; diff --git a/packages/@react-aria/progress/src/useProgressBar.ts b/packages/@react-aria/progress/src/useProgressBar.ts index 3ad29b182d4..85720c48cb0 100644 --- a/packages/@react-aria/progress/src/useProgressBar.ts +++ b/packages/@react-aria/progress/src/useProgressBar.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {AllHTMLAttributes} from 'react'; import {clamp} from '@react-aria/utils'; import {DOMProps} from '@react-types/shared'; diff --git a/packages/@react-aria/progress/test/useProgressBar.test.js b/packages/@react-aria/progress/test/useProgressBar.test.js index 1b12ec9245e..0196c6bca6c 100644 --- a/packages/@react-aria/progress/test/useProgressBar.test.js +++ b/packages/@react-aria/progress/test/useProgressBar.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup} from '@testing-library/react'; import React from 'react'; import {renderHook} from 'react-hooks-testing-library'; diff --git a/packages/@react-aria/radio/index.ts b/packages/@react-aria/radio/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-aria/radio/index.ts +++ b/packages/@react-aria/radio/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-aria/radio/package.json b/packages/@react-aria/radio/package.json index 6de2bb2bd03..a8bfc28cdf1 100644 --- a/packages/@react-aria/radio/package.json +++ b/packages/@react-aria/radio/package.json @@ -2,6 +2,7 @@ "name": "@react-aria/radio", "version": "3.0.0-rc.1", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-aria/radio/src/index.ts b/packages/@react-aria/radio/src/index.ts index 8ee16cbb0d0..641cfcc25a1 100644 --- a/packages/@react-aria/radio/src/index.ts +++ b/packages/@react-aria/radio/src/index.ts @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useRadio'; export * from './useRadioGroup'; diff --git a/packages/@react-aria/radio/src/useRadio.ts b/packages/@react-aria/radio/src/useRadio.ts index c3b862fc78a..defbd9299eb 100644 --- a/packages/@react-aria/radio/src/useRadio.ts +++ b/packages/@react-aria/radio/src/useRadio.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {AllHTMLAttributes} from 'react'; import {RadioGroupState} from '@react-stately/radio'; import {RadioProps} from '@react-types/radio'; diff --git a/packages/@react-aria/radio/src/useRadioGroup.ts b/packages/@react-aria/radio/src/useRadioGroup.ts index 871397dd17c..b86c1a135c4 100644 --- a/packages/@react-aria/radio/src/useRadioGroup.ts +++ b/packages/@react-aria/radio/src/useRadioGroup.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {HTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes} from 'react'; import {RadioGroupProps} from '@react-types/radio'; import {useId} from '@react-aria/utils'; diff --git a/packages/@react-aria/searchfield/index.ts b/packages/@react-aria/searchfield/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-aria/searchfield/index.ts +++ b/packages/@react-aria/searchfield/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-aria/searchfield/json.d.ts b/packages/@react-aria/searchfield/json.d.ts index bbab69d2fb0..e37633f5816 100644 --- a/packages/@react-aria/searchfield/json.d.ts +++ b/packages/@react-aria/searchfield/json.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + declare module '*.json' { const value: any; export default value; diff --git a/packages/@react-aria/searchfield/package.json b/packages/@react-aria/searchfield/package.json index 434adad79a4..55e1207b63b 100644 --- a/packages/@react-aria/searchfield/package.json +++ b/packages/@react-aria/searchfield/package.json @@ -2,6 +2,7 @@ "name": "@react-aria/searchfield", "version": "3.0.0-rc.1", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-aria/searchfield/src/index.ts b/packages/@react-aria/searchfield/src/index.ts index 37ca961c88e..b14076e4c4e 100644 --- a/packages/@react-aria/searchfield/src/index.ts +++ b/packages/@react-aria/searchfield/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useSearchField'; diff --git a/packages/@react-aria/searchfield/src/useSearchField.ts b/packages/@react-aria/searchfield/src/useSearchField.ts index 14d0d85bc9b..7ef62c0b10c 100644 --- a/packages/@react-aria/searchfield/src/useSearchField.ts +++ b/packages/@react-aria/searchfield/src/useSearchField.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {ButtonHTMLAttributes, InputHTMLAttributes, RefObject} from 'react'; import {chain} from '@react-aria/utils'; import intlMessages from '../intl/*.json'; diff --git a/packages/@react-aria/searchfield/test/useSearchField.test.js b/packages/@react-aria/searchfield/test/useSearchField.test.js index 81d429fb80d..390f11ddd87 100644 --- a/packages/@react-aria/searchfield/test/useSearchField.test.js +++ b/packages/@react-aria/searchfield/test/useSearchField.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import intlMessages from '../intl/*.json'; import {Provider} from '@react-spectrum/provider'; import React from 'react'; diff --git a/packages/@react-aria/selection/index.ts b/packages/@react-aria/selection/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-aria/selection/index.ts +++ b/packages/@react-aria/selection/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-aria/selection/package.json b/packages/@react-aria/selection/package.json index 2bcd3ead36c..6890f9c57d7 100644 --- a/packages/@react-aria/selection/package.json +++ b/packages/@react-aria/selection/package.json @@ -3,6 +3,7 @@ "version": "3.0.0-alpha.2", "private": true, "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -13,7 +14,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-aria/selection/src/index.ts b/packages/@react-aria/selection/src/index.ts index 93aa7beb144..52e036af33b 100644 --- a/packages/@react-aria/selection/src/index.ts +++ b/packages/@react-aria/selection/src/index.ts @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useSelectableCollection'; export * from './useSelectableItem'; diff --git a/packages/@react-aria/selection/src/useSelectableCollection.ts b/packages/@react-aria/selection/src/useSelectableCollection.ts index 4300d12ead1..3e49be1b057 100644 --- a/packages/@react-aria/selection/src/useSelectableCollection.ts +++ b/packages/@react-aria/selection/src/useSelectableCollection.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {FocusEvent, HTMLAttributes, KeyboardEvent} from 'react'; import {KeyboardDelegate} from '@react-types/shared'; import {MultipleSelectionManager} from '@react-stately/selection'; diff --git a/packages/@react-aria/selection/src/useSelectableItem.ts b/packages/@react-aria/selection/src/useSelectableItem.ts index 1a2f685eac3..b6c2f2341fc 100644 --- a/packages/@react-aria/selection/src/useSelectableItem.ts +++ b/packages/@react-aria/selection/src/useSelectableItem.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {HTMLAttributes, Key, RefObject, useEffect} from 'react'; import {MultipleSelectionManager} from '@react-stately/selection'; import {PressEvent} from '@react-types/shared'; diff --git a/packages/@react-aria/separator/index.ts b/packages/@react-aria/separator/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-aria/separator/index.ts +++ b/packages/@react-aria/separator/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-aria/separator/package.json b/packages/@react-aria/separator/package.json index 68bbba7824d..5c689c8c554 100644 --- a/packages/@react-aria/separator/package.json +++ b/packages/@react-aria/separator/package.json @@ -2,6 +2,7 @@ "name": "@react-aria/separator", "version": "3.0.0-rc.1", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-aria/separator/src/index.ts b/packages/@react-aria/separator/src/index.ts index 74778f0f079..e785ae697e3 100644 --- a/packages/@react-aria/separator/src/index.ts +++ b/packages/@react-aria/separator/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useSeparator'; diff --git a/packages/@react-aria/separator/src/useSeparator.ts b/packages/@react-aria/separator/src/useSeparator.ts index 58f3355ab42..7d30bfd0bd6 100644 --- a/packages/@react-aria/separator/src/useSeparator.ts +++ b/packages/@react-aria/separator/src/useSeparator.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {AllHTMLAttributes} from 'react'; import {Orientation} from '@react-types/shared'; diff --git a/packages/@react-aria/sidenav/index.ts b/packages/@react-aria/sidenav/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-aria/sidenav/index.ts +++ b/packages/@react-aria/sidenav/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-aria/sidenav/package.json b/packages/@react-aria/sidenav/package.json index 00654f00c2d..9c25202f3fa 100644 --- a/packages/@react-aria/sidenav/package.json +++ b/packages/@react-aria/sidenav/package.json @@ -3,6 +3,7 @@ "version": "3.0.0-alpha.1", "private": true, "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -11,7 +12,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-aria/sidenav/src/index.ts b/packages/@react-aria/sidenav/src/index.ts index a259566a149..20c19568ee6 100644 --- a/packages/@react-aria/sidenav/src/index.ts +++ b/packages/@react-aria/sidenav/src/index.ts @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useSideNav'; export * from './useSideNavItem'; diff --git a/packages/@react-aria/sidenav/src/useSideNav.ts b/packages/@react-aria/sidenav/src/useSideNav.ts index 04b17f46598..42087145a2a 100644 --- a/packages/@react-aria/sidenav/src/useSideNav.ts +++ b/packages/@react-aria/sidenav/src/useSideNav.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {AllHTMLAttributes} from 'react'; import {CollectionBase, DOMProps, Expandable, SingleSelection} from '@react-types/shared'; import {ListLayout} from '@react-stately/collections'; diff --git a/packages/@react-aria/sidenav/src/useSideNavItem.ts b/packages/@react-aria/sidenav/src/useSideNavItem.ts index 7e8b6cbdc8b..31ca8f99982 100644 --- a/packages/@react-aria/sidenav/src/useSideNavItem.ts +++ b/packages/@react-aria/sidenav/src/useSideNavItem.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {AllHTMLAttributes, RefObject} from 'react'; import {mergeProps} from '@react-aria/utils'; import {Node} from '@react-stately/collections'; diff --git a/packages/@react-aria/sidenav/test/useSideNav.test.js b/packages/@react-aria/sidenav/test/useSideNav.test.js index c2eaf1796c3..395cd430b39 100644 --- a/packages/@react-aria/sidenav/test/useSideNav.test.js +++ b/packages/@react-aria/sidenav/test/useSideNav.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup} from '@testing-library/react'; import {ListLayout} from '@react-stately/collections'; import React from 'react'; diff --git a/packages/@react-aria/sidenav/test/useSideNavItem.test.js b/packages/@react-aria/sidenav/test/useSideNavItem.test.js index 9b509e126e2..e8b427ee5b0 100644 --- a/packages/@react-aria/sidenav/test/useSideNavItem.test.js +++ b/packages/@react-aria/sidenav/test/useSideNavItem.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup} from '@testing-library/react'; import React from 'react'; import {renderHook} from 'react-hooks-testing-library'; diff --git a/packages/@react-aria/spinbutton/index.ts b/packages/@react-aria/spinbutton/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-aria/spinbutton/index.ts +++ b/packages/@react-aria/spinbutton/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-aria/spinbutton/package.json b/packages/@react-aria/spinbutton/package.json index 049a469f836..2ea69841074 100644 --- a/packages/@react-aria/spinbutton/package.json +++ b/packages/@react-aria/spinbutton/package.json @@ -2,6 +2,7 @@ "name": "@react-aria/spinbutton", "version": "3.0.0-alpha.2", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-aria/spinbutton/src/index.ts b/packages/@react-aria/spinbutton/src/index.ts index 4a491221fb9..fe6d70ded9d 100644 --- a/packages/@react-aria/spinbutton/src/index.ts +++ b/packages/@react-aria/spinbutton/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useSpinButton'; diff --git a/packages/@react-aria/spinbutton/src/useSpinButton.ts b/packages/@react-aria/spinbutton/src/useSpinButton.ts index c948c878ebc..4116b7151e2 100644 --- a/packages/@react-aria/spinbutton/src/useSpinButton.ts +++ b/packages/@react-aria/spinbutton/src/useSpinButton.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {announce} from '@react-aria/live-announcer'; import {HTMLAttributes, useEffect, useRef} from 'react'; import {InputBase, RangeInputBase, ValueBase} from '@react-types/shared'; diff --git a/packages/@react-aria/spinbutton/test/useSpinButton.test.js b/packages/@react-aria/spinbutton/test/useSpinButton.test.js index 0369c5b1bf9..3173294b5ea 100644 --- a/packages/@react-aria/spinbutton/test/useSpinButton.test.js +++ b/packages/@react-aria/spinbutton/test/useSpinButton.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + jest.mock('@react-aria/live-announcer'); import {announce} from '@react-aria/live-announcer'; import {cleanup, fireEvent, render} from '@testing-library/react'; diff --git a/packages/@react-aria/splitview/index.ts b/packages/@react-aria/splitview/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-aria/splitview/index.ts +++ b/packages/@react-aria/splitview/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-aria/splitview/package.json b/packages/@react-aria/splitview/package.json index 82dde836f64..5b31e948c2b 100644 --- a/packages/@react-aria/splitview/package.json +++ b/packages/@react-aria/splitview/package.json @@ -2,6 +2,7 @@ "name": "@react-aria/splitview", "version": "3.0.0-alpha.2", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-aria/splitview/src/index.ts b/packages/@react-aria/splitview/src/index.ts index e0f22fadaa2..87d38770a9a 100644 --- a/packages/@react-aria/splitview/src/index.ts +++ b/packages/@react-aria/splitview/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useSplitView'; diff --git a/packages/@react-aria/splitview/src/useSplitView.ts b/packages/@react-aria/splitview/src/useSplitView.ts index e54f5e35ec6..eb290ababac 100644 --- a/packages/@react-aria/splitview/src/useSplitView.ts +++ b/packages/@react-aria/splitview/src/useSplitView.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {chain} from '@react-aria/utils'; import {HTMLAttributes, useEffect, useRef} from 'react'; import {SplitViewAriaProps, SplitViewState} from '@react-types/shared'; diff --git a/packages/@react-aria/switch/index.ts b/packages/@react-aria/switch/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-aria/switch/index.ts +++ b/packages/@react-aria/switch/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-aria/switch/package.json b/packages/@react-aria/switch/package.json index 32a60739de9..901e8f47539 100644 --- a/packages/@react-aria/switch/package.json +++ b/packages/@react-aria/switch/package.json @@ -2,6 +2,7 @@ "name": "@react-aria/switch", "version": "3.0.0-rc.1", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-aria/switch/src/index.ts b/packages/@react-aria/switch/src/index.ts index 08275f4f672..b3fa5e93ded 100644 --- a/packages/@react-aria/switch/src/index.ts +++ b/packages/@react-aria/switch/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useSwitch'; diff --git a/packages/@react-aria/switch/src/useSwitch.ts b/packages/@react-aria/switch/src/useSwitch.ts index 82db6061449..d729d73f582 100644 --- a/packages/@react-aria/switch/src/useSwitch.ts +++ b/packages/@react-aria/switch/src/useSwitch.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {InputHTMLAttributes} from 'react'; import {SwitchProps} from '@react-types/switch'; import {ToggleState} from '@react-stately/toggle'; diff --git a/packages/@react-aria/tabs/index.ts b/packages/@react-aria/tabs/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-aria/tabs/index.ts +++ b/packages/@react-aria/tabs/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-aria/tabs/package.json b/packages/@react-aria/tabs/package.json index 75fa57c29a5..5106e6bf881 100644 --- a/packages/@react-aria/tabs/package.json +++ b/packages/@react-aria/tabs/package.json @@ -2,6 +2,7 @@ "name": "@react-aria/tabs", "version": "3.0.0-alpha.2", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-aria/tabs/src/index.ts b/packages/@react-aria/tabs/src/index.ts index 8417bf31528..0b1a35ff63b 100644 --- a/packages/@react-aria/tabs/src/index.ts +++ b/packages/@react-aria/tabs/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useTabList'; diff --git a/packages/@react-aria/tabs/src/useTabList.ts b/packages/@react-aria/tabs/src/useTabList.ts index 86894c8bc97..0fca7d1ae3a 100644 --- a/packages/@react-aria/tabs/src/useTabList.ts +++ b/packages/@react-aria/tabs/src/useTabList.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {Orientation} from '@react-types/shared'; import React, {AllHTMLAttributes, HTMLAttributes, ReactElement} from 'react'; import {useId} from '@react-aria/utils'; diff --git a/packages/@react-aria/tag/index.ts b/packages/@react-aria/tag/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-aria/tag/index.ts +++ b/packages/@react-aria/tag/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-aria/tag/package.json b/packages/@react-aria/tag/package.json index f2407c3d44e..89465b1c514 100644 --- a/packages/@react-aria/tag/package.json +++ b/packages/@react-aria/tag/package.json @@ -2,6 +2,7 @@ "name": "@react-aria/tag", "version": "3.0.0-alpha.2", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-aria/tag/src/index.ts b/packages/@react-aria/tag/src/index.ts index e7f45f3726a..bc2a70b0cc4 100644 --- a/packages/@react-aria/tag/src/index.ts +++ b/packages/@react-aria/tag/src/index.ts @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useTag'; export * from './useTagGroup'; diff --git a/packages/@react-aria/tag/src/useTag.ts b/packages/@react-aria/tag/src/useTag.ts index 2cb9bd7c80b..95e665eb89d 100644 --- a/packages/@react-aria/tag/src/useTag.ts +++ b/packages/@react-aria/tag/src/useTag.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {ButtonHTMLAttributes, HTMLAttributes, KeyboardEvent, ReactNode} from 'react'; import intlMessages from '../intl/*.json'; import {mergeProps, useId} from '@react-aria/utils'; diff --git a/packages/@react-aria/tag/src/useTagGroup.ts b/packages/@react-aria/tag/src/useTagGroup.ts index 599fed38272..4e03ba8c40f 100644 --- a/packages/@react-aria/tag/src/useTagGroup.ts +++ b/packages/@react-aria/tag/src/useTagGroup.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {HTMLAttributes, useState} from 'react'; import {MultipleSelectionBase} from '@react-types/shared'; import {useFocusWithin} from '@react-aria/interactions'; diff --git a/packages/@react-aria/tag/test/useTag.test.js b/packages/@react-aria/tag/test/useTag.test.js index a30b14ede09..3df5cab014b 100644 --- a/packages/@react-aria/tag/test/useTag.test.js +++ b/packages/@react-aria/tag/test/useTag.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {renderHook} from 'react-hooks-testing-library'; import {useTag} from '../'; diff --git a/packages/@react-aria/textfield/index.ts b/packages/@react-aria/textfield/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-aria/textfield/index.ts +++ b/packages/@react-aria/textfield/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-aria/textfield/package.json b/packages/@react-aria/textfield/package.json index 89c2e4f6968..f4cc55c7ab8 100644 --- a/packages/@react-aria/textfield/package.json +++ b/packages/@react-aria/textfield/package.json @@ -2,6 +2,7 @@ "name": "@react-aria/textfield", "version": "3.0.0-rc.1", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-aria/textfield/src/index.ts b/packages/@react-aria/textfield/src/index.ts index d59cdb842fb..0b2dbf5c751 100644 --- a/packages/@react-aria/textfield/src/index.ts +++ b/packages/@react-aria/textfield/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useTextField'; diff --git a/packages/@react-aria/textfield/src/useTextField.ts b/packages/@react-aria/textfield/src/useTextField.ts index 11cbfaca36b..26695d22d5b 100644 --- a/packages/@react-aria/textfield/src/useTextField.ts +++ b/packages/@react-aria/textfield/src/useTextField.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {ChangeEvent, InputHTMLAttributes, LabelHTMLAttributes} from 'react'; import {TextFieldProps} from '@react-types/textfield'; import {TextInputDOMProps} from '@react-types/shared'; diff --git a/packages/@react-aria/textfield/test/useTextField.test.js b/packages/@react-aria/textfield/test/useTextField.test.js index 3d7d3618d09..1561e215601 100644 --- a/packages/@react-aria/textfield/test/useTextField.test.js +++ b/packages/@react-aria/textfield/test/useTextField.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import React from 'react'; import {renderHook} from 'react-hooks-testing-library'; import {useTextField} from '../'; diff --git a/packages/@react-aria/toast/index.ts b/packages/@react-aria/toast/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-aria/toast/index.ts +++ b/packages/@react-aria/toast/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-aria/toast/package.json b/packages/@react-aria/toast/package.json index bed9a0a4684..5a20d010c8b 100644 --- a/packages/@react-aria/toast/package.json +++ b/packages/@react-aria/toast/package.json @@ -3,6 +3,7 @@ "version": "3.0.0-alpha.1", "private": true, "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -13,7 +14,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-aria/toast/src/index.ts b/packages/@react-aria/toast/src/index.ts index 44a723a06e3..059d90d7223 100644 --- a/packages/@react-aria/toast/src/index.ts +++ b/packages/@react-aria/toast/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useToast'; diff --git a/packages/@react-aria/toast/src/useToast.ts b/packages/@react-aria/toast/src/useToast.ts index bd4d625a354..f87ae1a7ecd 100644 --- a/packages/@react-aria/toast/src/useToast.ts +++ b/packages/@react-aria/toast/src/useToast.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMProps} from '@react-types/shared'; import {HTMLAttributes, ImgHTMLAttributes} from 'react'; import intlMessages from '../intl/*.json'; diff --git a/packages/@react-aria/toast/test/useToast.test.js b/packages/@react-aria/toast/test/useToast.test.js index f00bc1317ce..0a92f3b38d1 100644 --- a/packages/@react-aria/toast/test/useToast.test.js +++ b/packages/@react-aria/toast/test/useToast.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup} from '@testing-library/react'; import intlMessages from '../intl/*.json'; import {Provider} from '@react-spectrum/provider'; diff --git a/packages/@react-aria/toggle/index.ts b/packages/@react-aria/toggle/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-aria/toggle/index.ts +++ b/packages/@react-aria/toggle/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-aria/toggle/package.json b/packages/@react-aria/toggle/package.json index 6393e3ea0dc..9af879794fe 100644 --- a/packages/@react-aria/toggle/package.json +++ b/packages/@react-aria/toggle/package.json @@ -2,6 +2,7 @@ "name": "@react-aria/toggle", "version": "3.0.0-rc.1", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-aria/toggle/src/index.ts b/packages/@react-aria/toggle/src/index.ts index cf7b23d0c9f..e18c433d812 100644 --- a/packages/@react-aria/toggle/src/index.ts +++ b/packages/@react-aria/toggle/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useToggle'; diff --git a/packages/@react-aria/toggle/src/useToggle.ts b/packages/@react-aria/toggle/src/useToggle.ts index bfcbf845f06..ceb705ceeb0 100644 --- a/packages/@react-aria/toggle/src/useToggle.ts +++ b/packages/@react-aria/toggle/src/useToggle.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMProps} from '@react-types/shared'; import {InputHTMLAttributes} from 'react'; import {SwitchProps} from '@react-types/switch'; diff --git a/packages/@react-aria/tooltip/index.ts b/packages/@react-aria/tooltip/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-aria/tooltip/index.ts +++ b/packages/@react-aria/tooltip/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-aria/tooltip/package.json b/packages/@react-aria/tooltip/package.json index b4a05a2f21f..d5d85096903 100644 --- a/packages/@react-aria/tooltip/package.json +++ b/packages/@react-aria/tooltip/package.json @@ -2,6 +2,7 @@ "name": "@react-aria/tooltip", "version": "3.0.0-alpha.2", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-aria/tooltip/src/index.ts b/packages/@react-aria/tooltip/src/index.ts index e86204ca221..dba2c3740ee 100644 --- a/packages/@react-aria/tooltip/src/index.ts +++ b/packages/@react-aria/tooltip/src/index.ts @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useTooltip'; export * from './useTooltipTrigger'; diff --git a/packages/@react-aria/tooltip/src/useTooltip.ts b/packages/@react-aria/tooltip/src/useTooltip.ts index 01f2d04f538..9d5e59339f9 100644 --- a/packages/@react-aria/tooltip/src/useTooltip.ts +++ b/packages/@react-aria/tooltip/src/useTooltip.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {AllHTMLAttributes, useContext} from 'react'; import {DOMProps} from '@react-types/shared'; import {DOMPropsResponderContext} from '@react-aria/interactions'; diff --git a/packages/@react-aria/tooltip/src/useTooltipTrigger.ts b/packages/@react-aria/tooltip/src/useTooltipTrigger.ts index 38a24e9829c..a11d8cb0701 100644 --- a/packages/@react-aria/tooltip/src/useTooltipTrigger.ts +++ b/packages/@react-aria/tooltip/src/useTooltipTrigger.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {chain, useId} from '@react-aria/utils'; import {DOMProps} from '@react-types/shared'; import {HoverProps, PressProps} from '@react-aria/interactions'; diff --git a/packages/@react-aria/tooltip/test/useTooltip.test.js b/packages/@react-aria/tooltip/test/useTooltip.test.js index 5270a92e514..eb0f82b2075 100644 --- a/packages/@react-aria/tooltip/test/useTooltip.test.js +++ b/packages/@react-aria/tooltip/test/useTooltip.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup} from '@testing-library/react'; import React from 'react'; import {renderHook} from 'react-hooks-testing-library'; diff --git a/packages/@react-aria/tree/index.ts b/packages/@react-aria/tree/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-aria/tree/index.ts +++ b/packages/@react-aria/tree/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-aria/tree/package.json b/packages/@react-aria/tree/package.json index 8293a49d97a..588d71f6490 100644 --- a/packages/@react-aria/tree/package.json +++ b/packages/@react-aria/tree/package.json @@ -2,6 +2,7 @@ "name": "@react-aria/tree", "version": "3.0.0-alpha.2", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2" diff --git a/packages/@react-aria/tree/src/index.ts b/packages/@react-aria/tree/src/index.ts index 5b7196bcb4d..d761ef08f77 100644 --- a/packages/@react-aria/tree/src/index.ts +++ b/packages/@react-aria/tree/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useTree'; diff --git a/packages/@react-aria/tree/src/useTree.ts b/packages/@react-aria/tree/src/useTree.ts index 16b31f9069b..2f011eb3f51 100644 --- a/packages/@react-aria/tree/src/useTree.ts +++ b/packages/@react-aria/tree/src/useTree.ts @@ -1,4 +1,14 @@ -// import React from 'react'; +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ export function useTree() { return {}; diff --git a/packages/@react-aria/utils/index.ts b/packages/@react-aria/utils/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-aria/utils/index.ts +++ b/packages/@react-aria/utils/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-aria/utils/package.json b/packages/@react-aria/utils/package.json index 199b610201a..375ea2c1a7b 100644 --- a/packages/@react-aria/utils/package.json +++ b/packages/@react-aria/utils/package.json @@ -2,6 +2,7 @@ "name": "@react-aria/utils", "version": "3.0.0-rc.1", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-aria/utils/src/chain.ts b/packages/@react-aria/utils/src/chain.ts index 26dcedc345c..002182f9645 100644 --- a/packages/@react-aria/utils/src/chain.ts +++ b/packages/@react-aria/utils/src/chain.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export function chain(...callbacks: any[]): (...args: any[]) => void { return (...args: any[]) => { for (let callback of callbacks) { diff --git a/packages/@react-aria/utils/src/getOffset.ts b/packages/@react-aria/utils/src/getOffset.ts index 9d0fd38d418..8357d8894bc 100644 --- a/packages/@react-aria/utils/src/getOffset.ts +++ b/packages/@react-aria/utils/src/getOffset.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export function getOffset(element, reverse, orientation = 'horizontal') { let rect = element.getBoundingClientRect(); if (reverse) { diff --git a/packages/@react-aria/utils/src/index.ts b/packages/@react-aria/utils/src/index.ts index d424ff92f47..c134fec599c 100644 --- a/packages/@react-aria/utils/src/index.ts +++ b/packages/@react-aria/utils/src/index.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useId'; export * from './chain'; export * from './mergeProps'; diff --git a/packages/@react-aria/utils/src/mergeProps.ts b/packages/@react-aria/utils/src/mergeProps.ts index 848c6eed106..322c947c01c 100644 --- a/packages/@react-aria/utils/src/mergeProps.ts +++ b/packages/@react-aria/utils/src/mergeProps.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {chain} from './chain'; import classNames from 'classnames'; import {mergeIds} from './useId'; diff --git a/packages/@react-aria/utils/src/number.ts b/packages/@react-aria/utils/src/number.ts index fd8a6d6bcf7..d32d1847b29 100644 --- a/packages/@react-aria/utils/src/number.ts +++ b/packages/@react-aria/utils/src/number.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export function clamp(value: number, min: number = -Infinity, max: number = Infinity): number { return Math.min(Math.max(value, min), max); } diff --git a/packages/@react-aria/utils/src/useDrag1D.ts b/packages/@react-aria/utils/src/useDrag1D.ts index c9bdb524f04..1a358aee722 100644 --- a/packages/@react-aria/utils/src/useDrag1D.ts +++ b/packages/@react-aria/utils/src/useDrag1D.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {AllHTMLAttributes, MutableRefObject, useRef} from 'react'; import {getOffset} from './getOffset'; import {Orientation} from '@react-types/shared'; diff --git a/packages/@react-aria/utils/src/useId.ts b/packages/@react-aria/utils/src/useId.ts index 3605314c791..24482ef4011 100644 --- a/packages/@react-aria/utils/src/useId.ts +++ b/packages/@react-aria/utils/src/useId.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {useMemo, useState} from 'react'; let map: Map void> = new Map(); diff --git a/packages/@react-aria/utils/src/useLabels.ts b/packages/@react-aria/utils/src/useLabels.ts index 8ae6ddc3861..0c765bdccbf 100644 --- a/packages/@react-aria/utils/src/useLabels.ts +++ b/packages/@react-aria/utils/src/useLabels.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMProps} from '@react-types/shared'; import {useId} from './useId'; diff --git a/packages/@react-aria/utils/src/useUpdateEffect.ts b/packages/@react-aria/utils/src/useUpdateEffect.ts index f20628eef02..f480311c22d 100644 --- a/packages/@react-aria/utils/src/useUpdateEffect.ts +++ b/packages/@react-aria/utils/src/useUpdateEffect.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {EffectCallback, useEffect, useRef} from 'react'; // Like useEffect, but only called for updates after the initial render. diff --git a/packages/@react-aria/visually-hidden/index.ts b/packages/@react-aria/visually-hidden/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-aria/visually-hidden/index.ts +++ b/packages/@react-aria/visually-hidden/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-aria/visually-hidden/package.json b/packages/@react-aria/visually-hidden/package.json index ff84066fc90..bfbfb55642e 100644 --- a/packages/@react-aria/visually-hidden/package.json +++ b/packages/@react-aria/visually-hidden/package.json @@ -2,6 +2,7 @@ "name": "@react-aria/visually-hidden", "version": "3.0.0-alpha.2", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-aria/visually-hidden/src/VisuallyHidden.css b/packages/@react-aria/visually-hidden/src/VisuallyHidden.css index 168134b185f..595f5f1b755 100644 --- a/packages/@react-aria/visually-hidden/src/VisuallyHidden.css +++ b/packages/@react-aria/visually-hidden/src/VisuallyHidden.css @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + /* Hidden from visual browsers, but still accessible to screenreaders */ .u-react-spectrum-screenReaderOnly { border: 0; diff --git a/packages/@react-aria/visually-hidden/src/VisuallyHidden.tsx b/packages/@react-aria/visually-hidden/src/VisuallyHidden.tsx index 753695b0837..c3efef1af63 100644 --- a/packages/@react-aria/visually-hidden/src/VisuallyHidden.tsx +++ b/packages/@react-aria/visually-hidden/src/VisuallyHidden.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import classNames from 'classnames'; import React, {HTMLAttributes, JSXElementConstructor, ReactNode} from 'react'; import styles from './VisuallyHidden.css'; diff --git a/packages/@react-aria/visually-hidden/src/index.ts b/packages/@react-aria/visually-hidden/src/index.ts index f11f3f421b2..df2e9e0727f 100644 --- a/packages/@react-aria/visually-hidden/src/index.ts +++ b/packages/@react-aria/visually-hidden/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './VisuallyHidden'; diff --git a/packages/@react-spectrum/README.md b/packages/@react-spectrum/README.md index df2aad70094..9b9c0ef280a 100644 --- a/packages/@react-spectrum/README.md +++ b/packages/@react-spectrum/README.md @@ -1,3 +1,5 @@ # @react-spectrum +โš ๏ธ Under Construction โš ๏ธ + This folder is for packages in the `@react-spectrum` scope, which are React components implementing the Adobe Spectrum theme. diff --git a/packages/@react-spectrum/alert/index.ts b/packages/@react-spectrum/alert/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-spectrum/alert/index.ts +++ b/packages/@react-spectrum/alert/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-spectrum/alert/intl/index.js b/packages/@react-spectrum/alert/intl/index.js index 7552b53ba9e..ab42abafdb9 100644 --- a/packages/@react-spectrum/alert/intl/index.js +++ b/packages/@react-spectrum/alert/intl/index.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import csCZ from './cs-CZ.json'; import daDK from './da-DK.json'; import deDE from './de-DE.json'; diff --git a/packages/@react-spectrum/alert/package.json b/packages/@react-spectrum/alert/package.json index 81adb3a1247..9fda287c9e5 100644 --- a/packages/@react-spectrum/alert/package.json +++ b/packages/@react-spectrum/alert/package.json @@ -2,6 +2,7 @@ "name": "@react-spectrum/alert", "version": "3.0.0-alpha.2", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/Alert.js", "module": "dist/Alert.module.js", "types": "dist/Alert.d.ts", @@ -24,7 +25,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-spectrum/alert/src/Alert.tsx b/packages/@react-spectrum/alert/src/Alert.tsx index bba8959b821..30de6c99684 100644 --- a/packages/@react-spectrum/alert/src/Alert.tsx +++ b/packages/@react-spectrum/alert/src/Alert.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import AlertMedium from '@spectrum-icons/ui/AlertMedium'; import {classNames, filterDOMProps, useStyleProps} from '@react-spectrum/utils'; import HelpMedium from '@spectrum-icons/ui/HelpMedium'; diff --git a/packages/@react-spectrum/alert/src/index.ts b/packages/@react-spectrum/alert/src/index.ts index 79e3b155f44..ab3e4a76553 100644 --- a/packages/@react-spectrum/alert/src/index.ts +++ b/packages/@react-spectrum/alert/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './Alert'; diff --git a/packages/@react-spectrum/alert/stories/Alert.stories.js b/packages/@react-spectrum/alert/stories/Alert.stories.js index 1e09538327e..21907190f49 100644 --- a/packages/@react-spectrum/alert/stories/Alert.stories.js +++ b/packages/@react-spectrum/alert/stories/Alert.stories.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import _123 from '@spectrum-icons/workflow/123'; import {Alert} from '../'; import CalendarCheckColor from '@spectrum-icons/color/CalendarCheckColor'; @@ -5,6 +17,7 @@ import React from 'react'; import {storiesOf} from '@storybook/react'; storiesOf('Alert', module) + .addParameters({providerSwitcher: {status: 'negative'}}) .add( 'header', () => render({title: 'info', variant: 'info'}) diff --git a/packages/@react-spectrum/breadcrumbs/index.ts b/packages/@react-spectrum/breadcrumbs/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-spectrum/breadcrumbs/index.ts +++ b/packages/@react-spectrum/breadcrumbs/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-spectrum/breadcrumbs/package.json b/packages/@react-spectrum/breadcrumbs/package.json index a736f362e38..9f9051c7eed 100644 --- a/packages/@react-spectrum/breadcrumbs/package.json +++ b/packages/@react-spectrum/breadcrumbs/package.json @@ -3,6 +3,7 @@ "version": "3.0.0-alpha.2", "private": true, "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -25,7 +26,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-spectrum/breadcrumbs/src/BreadcrumbItem.tsx b/packages/@react-spectrum/breadcrumbs/src/BreadcrumbItem.tsx index 7798f8e94a1..1f76c38ea5a 100644 --- a/packages/@react-spectrum/breadcrumbs/src/BreadcrumbItem.tsx +++ b/packages/@react-spectrum/breadcrumbs/src/BreadcrumbItem.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {BreadcrumbItemProps} from '@react-types/breadcrumbs'; import ChevronRightSmall from '@spectrum-icons/ui/ChevronRightSmall'; import {classNames, filterDOMProps, getWrappedElement} from '@react-spectrum/utils'; diff --git a/packages/@react-spectrum/breadcrumbs/src/Breadcrumbs.tsx b/packages/@react-spectrum/breadcrumbs/src/Breadcrumbs.tsx index d2621ff9060..a1dc5d425d8 100644 --- a/packages/@react-spectrum/breadcrumbs/src/Breadcrumbs.tsx +++ b/packages/@react-spectrum/breadcrumbs/src/Breadcrumbs.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {ActionButton} from '@react-spectrum/button'; import {BreadcrumbItem} from './'; import {classNames, filterDOMProps, useDOMRef, useStyleProps} from '@react-spectrum/utils'; diff --git a/packages/@react-spectrum/breadcrumbs/src/index.ts b/packages/@react-spectrum/breadcrumbs/src/index.ts index 210197621f1..956a970c19f 100644 --- a/packages/@react-spectrum/breadcrumbs/src/index.ts +++ b/packages/@react-spectrum/breadcrumbs/src/index.ts @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './BreadcrumbItem'; export * from './Breadcrumbs'; diff --git a/packages/@react-spectrum/breadcrumbs/stories/Breadcrumbs.stories.tsx b/packages/@react-spectrum/breadcrumbs/stories/Breadcrumbs.stories.tsx index cb96782ae95..eda8ed0cf03 100644 --- a/packages/@react-spectrum/breadcrumbs/stories/Breadcrumbs.stories.tsx +++ b/packages/@react-spectrum/breadcrumbs/stories/Breadcrumbs.stories.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {action} from '@storybook/addon-actions'; import {BreadcrumbItem, Breadcrumbs} from '../'; import React from 'react'; @@ -10,6 +22,7 @@ const CenterDecorator = storyFn =>
{storyFn()}
render({}) diff --git a/packages/@react-spectrum/breadcrumbs/test/BreadcrumbItem.test.js b/packages/@react-spectrum/breadcrumbs/test/BreadcrumbItem.test.js index b1cc290eb1f..0f39b872d47 100644 --- a/packages/@react-spectrum/breadcrumbs/test/BreadcrumbItem.test.js +++ b/packages/@react-spectrum/breadcrumbs/test/BreadcrumbItem.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {BreadcrumbItem} from '../'; import {cleanup, render} from '@testing-library/react'; import React from 'react'; diff --git a/packages/@react-spectrum/breadcrumbs/test/Breadcrumbs.test.js b/packages/@react-spectrum/breadcrumbs/test/Breadcrumbs.test.js index ca1587352f9..2f9fee5d311 100644 --- a/packages/@react-spectrum/breadcrumbs/test/Breadcrumbs.test.js +++ b/packages/@react-spectrum/breadcrumbs/test/Breadcrumbs.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {BreadcrumbItem, Breadcrumbs} from '../'; import {cleanup, render, within} from '@testing-library/react'; import React, {useRef} from 'react'; diff --git a/packages/@react-spectrum/button/docs/Button.mdx b/packages/@react-spectrum/button/docs/Button.mdx index 359f6dff78d..275a8666593 100644 --- a/packages/@react-spectrum/button/docs/Button.mdx +++ b/packages/@react-spectrum/button/docs/Button.mdx @@ -1,3 +1,12 @@ + + import {Layout} from '@react-spectrum/docs'; export default Layout; diff --git a/packages/@react-spectrum/button/index.ts b/packages/@react-spectrum/button/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-spectrum/button/index.ts +++ b/packages/@react-spectrum/button/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-spectrum/button/package.json b/packages/@react-spectrum/button/package.json index b8289e137a8..d9dea3427f5 100644 --- a/packages/@react-spectrum/button/package.json +++ b/packages/@react-spectrum/button/package.json @@ -2,6 +2,7 @@ "name": "@react-spectrum/button", "version": "3.0.0-rc.1", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -24,7 +25,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-spectrum/button/src/ActionButton.tsx b/packages/@react-spectrum/button/src/ActionButton.tsx index 10c3330f80e..19cbdf176e4 100644 --- a/packages/@react-spectrum/button/src/ActionButton.tsx +++ b/packages/@react-spectrum/button/src/ActionButton.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {classNames, filterDOMProps, useFocusableRef, useStyleProps} from '@react-spectrum/utils'; import CornerTriangle from '@spectrum-icons/ui/CornerTriangle'; import {FocusableRef} from '@react-types/shared'; diff --git a/packages/@react-spectrum/button/src/Button.tsx b/packages/@react-spectrum/button/src/Button.tsx index e46a3907297..073081ba9dd 100644 --- a/packages/@react-spectrum/button/src/Button.tsx +++ b/packages/@react-spectrum/button/src/Button.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {classNames, filterDOMProps, useFocusableRef, useStyleProps} from '@react-spectrum/utils'; import {FocusableRef} from '@react-types/shared'; import {FocusRing} from '@react-aria/focus'; diff --git a/packages/@react-spectrum/button/src/ButtonGroup.tsx b/packages/@react-spectrum/button/src/ButtonGroup.tsx index 2b0ee57868b..3db94b44539 100644 --- a/packages/@react-spectrum/button/src/ButtonGroup.tsx +++ b/packages/@react-spectrum/button/src/ButtonGroup.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {ButtonGroupButton, SpectrumButtonGroupProps} from '@react-types/button'; import {ButtonGroupState, useButtonGroupState} from '@react-stately/button'; import buttonStyles from '@adobe/spectrum-css-temp/components/button/vars.css'; diff --git a/packages/@react-spectrum/button/src/ClearButton.tsx b/packages/@react-spectrum/button/src/ClearButton.tsx index 3b1b1815e29..6bd126cf3d2 100644 --- a/packages/@react-spectrum/button/src/ClearButton.tsx +++ b/packages/@react-spectrum/button/src/ClearButton.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {ButtonProps} from '@react-types/button'; import {classNames, filterDOMProps, useFocusableRef, useStyleProps} from '@react-spectrum/utils'; import CrossSmall from '@spectrum-icons/ui/CrossSmall'; diff --git a/packages/@react-spectrum/button/src/FieldButton.tsx b/packages/@react-spectrum/button/src/FieldButton.tsx index cfb6db1d34b..bf4d8c614da 100644 --- a/packages/@react-spectrum/button/src/FieldButton.tsx +++ b/packages/@react-spectrum/button/src/FieldButton.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {ButtonProps} from '@react-types/button'; import {classNames, filterDOMProps, useFocusableRef, useStyleProps} from '@react-spectrum/utils'; import {FocusableRef} from '@react-types/shared'; diff --git a/packages/@react-spectrum/button/src/LogicButton.tsx b/packages/@react-spectrum/button/src/LogicButton.tsx index 2e4b5fb2118..ffa610bc220 100644 --- a/packages/@react-spectrum/button/src/LogicButton.tsx +++ b/packages/@react-spectrum/button/src/LogicButton.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {classNames, filterDOMProps, useFocusableRef, useStyleProps} from '@react-spectrum/utils'; import {FocusableRef} from '@react-types/shared'; import {FocusRing} from '@react-aria/focus'; diff --git a/packages/@react-spectrum/button/src/index.ts b/packages/@react-spectrum/button/src/index.ts index ee2d965b47c..f97b166b649 100644 --- a/packages/@react-spectrum/button/src/index.ts +++ b/packages/@react-spectrum/button/src/index.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './Button'; export * from './ButtonGroup'; export * from './ActionButton'; diff --git a/packages/@react-spectrum/button/stories/ActionButton.stories.tsx b/packages/@react-spectrum/button/stories/ActionButton.stories.tsx index 50d9145161e..c932d9ccb2d 100644 --- a/packages/@react-spectrum/button/stories/ActionButton.stories.tsx +++ b/packages/@react-spectrum/button/stories/ActionButton.stories.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {action} from '@storybook/addon-actions'; import {ActionButton} from '../'; import Add from '@spectrum-icons/workflow/Add'; @@ -5,6 +17,7 @@ import React from 'react'; import {storiesOf} from '@storybook/react'; storiesOf('Button/ActionButton', module) + .addParameters({providerSwitcher: {status: 'positive'}}) .add( 'default', () => render() diff --git a/packages/@react-spectrum/button/stories/Button.stories.tsx b/packages/@react-spectrum/button/stories/Button.stories.tsx index b9f37777dc4..be5d72d8598 100644 --- a/packages/@react-spectrum/button/stories/Button.stories.tsx +++ b/packages/@react-spectrum/button/stories/Button.stories.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {action} from '@storybook/addon-actions'; import Bell from '@spectrum-icons/workflow/Bell'; import {Button} from '../'; @@ -5,6 +17,7 @@ import React from 'react'; import {storiesOf} from '@storybook/react'; storiesOf('Button', module) + .addParameters({providerSwitcher: {status: 'positive'}}) .add( 'variant: cta', () => render({variant: 'cta'}) diff --git a/packages/@react-spectrum/button/stories/ButtonGroup.stories.tsx b/packages/@react-spectrum/button/stories/ButtonGroup.stories.tsx index f17411c2800..027e587109a 100644 --- a/packages/@react-spectrum/button/stories/ButtonGroup.stories.tsx +++ b/packages/@react-spectrum/button/stories/ButtonGroup.stories.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {action} from '@storybook/addon-actions'; import {ActionButton, ButtonGroup} from '../'; import Add from '@spectrum-icons/workflow/Add'; @@ -13,6 +25,7 @@ import {storiesOf} from '@storybook/react'; import Undo from '@spectrum-icons/workflow/Undo'; storiesOf('ButtonGroup', module) + .addParameters({providerSwitcher: {status: 'negative'}}) .add( 'default', () => render(null, items) @@ -38,7 +51,7 @@ storiesOf('ButtonGroup', module) () => render({isConnected: true}) ) .add( - 'isConected, isJustefied', + 'isConected, isJustified', () => (
{render({isConnected: true, isJustified: true})} diff --git a/packages/@react-spectrum/button/stories/LogicButton.stories.tsx b/packages/@react-spectrum/button/stories/LogicButton.stories.tsx index e226a2020f2..eef3214bd82 100644 --- a/packages/@react-spectrum/button/stories/LogicButton.stories.tsx +++ b/packages/@react-spectrum/button/stories/LogicButton.stories.tsx @@ -1,9 +1,22 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {action} from '@storybook/addon-actions'; import {LogicButton} from '../'; import React from 'react'; import {storiesOf} from '@storybook/react'; storiesOf('Button/LogicButton', module) + .addParameters({providerSwitcher: {status: 'positive'}}) .add( 'logic variant: and', () => render({variant: 'and', label: 'and'}) diff --git a/packages/@react-spectrum/button/test/ActionButton.test.js b/packages/@react-spectrum/button/test/ActionButton.test.js index 564949a1a1b..3d4b2bcb02a 100644 --- a/packages/@react-spectrum/button/test/ActionButton.test.js +++ b/packages/@react-spectrum/button/test/ActionButton.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {ActionButton} from '../'; import {cleanup, render} from '@testing-library/react'; import React from 'react'; diff --git a/packages/@react-spectrum/button/test/Button.test.js b/packages/@react-spectrum/button/test/Button.test.js index d89e2f1887b..11c8d97a0ed 100644 --- a/packages/@react-spectrum/button/test/Button.test.js +++ b/packages/@react-spectrum/button/test/Button.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {ActionButton, Button, ClearButton, LogicButton} from '../'; import {cleanup, fireEvent, render} from '@testing-library/react'; import React from 'react'; diff --git a/packages/@react-spectrum/button/test/ButtonGroup.test.js b/packages/@react-spectrum/button/test/ButtonGroup.test.js index 1045c9bb6ff..76cd1911a81 100644 --- a/packages/@react-spectrum/button/test/ButtonGroup.test.js +++ b/packages/@react-spectrum/button/test/ButtonGroup.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {ActionButton, ButtonGroup} from '../'; import Brush from '@spectrum-icons/workflow/Brush'; import {cleanup, render} from '@testing-library/react'; diff --git a/packages/@react-spectrum/button/test/ClearButton.test.js b/packages/@react-spectrum/button/test/ClearButton.test.js index 1273175d76d..e8baa8e31f5 100644 --- a/packages/@react-spectrum/button/test/ClearButton.test.js +++ b/packages/@react-spectrum/button/test/ClearButton.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, render} from '@testing-library/react'; import {ClearButton} from '../'; import React from 'react'; diff --git a/packages/@react-spectrum/calendar/index.ts b/packages/@react-spectrum/calendar/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-spectrum/calendar/index.ts +++ b/packages/@react-spectrum/calendar/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-spectrum/calendar/package.json b/packages/@react-spectrum/calendar/package.json index 16b9dc889e7..0cd73b11045 100644 --- a/packages/@react-spectrum/calendar/package.json +++ b/packages/@react-spectrum/calendar/package.json @@ -2,6 +2,7 @@ "name": "@react-spectrum/calendar", "version": "3.0.0-alpha.2", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -24,7 +25,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-spectrum/calendar/src/Calendar.tsx b/packages/@react-spectrum/calendar/src/Calendar.tsx index c9ff6fb29ac..d448b6cabce 100644 --- a/packages/@react-spectrum/calendar/src/Calendar.tsx +++ b/packages/@react-spectrum/calendar/src/Calendar.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {CalendarBase} from './CalendarBase'; import React from 'react'; import {SpectrumCalendarProps} from '@react-types/calendar'; diff --git a/packages/@react-spectrum/calendar/src/CalendarBase.tsx b/packages/@react-spectrum/calendar/src/CalendarBase.tsx index 964bbc202f5..5769d24ad0d 100644 --- a/packages/@react-spectrum/calendar/src/CalendarBase.tsx +++ b/packages/@react-spectrum/calendar/src/CalendarBase.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {ActionButton} from '@react-spectrum/button'; import {CalendarAria} from '@react-aria/calendar'; import {CalendarPropsBase} from '@react-types/calendar'; diff --git a/packages/@react-spectrum/calendar/src/CalendarCell.tsx b/packages/@react-spectrum/calendar/src/CalendarCell.tsx index fde3bb7b66e..868def0d3f7 100644 --- a/packages/@react-spectrum/calendar/src/CalendarCell.tsx +++ b/packages/@react-spectrum/calendar/src/CalendarCell.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {CalendarCellOptions, CalendarState, RangeCalendarState} from '@react-stately/calendar'; import {classNames} from '@react-spectrum/utils'; import React from 'react'; diff --git a/packages/@react-spectrum/calendar/src/CalendarTableBody.tsx b/packages/@react-spectrum/calendar/src/CalendarTableBody.tsx index dc7456a9634..7f778d0c9a0 100644 --- a/packages/@react-spectrum/calendar/src/CalendarTableBody.tsx +++ b/packages/@react-spectrum/calendar/src/CalendarTableBody.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {CalendarCell} from './CalendarCell'; import {CalendarState, RangeCalendarState} from '@react-stately/calendar'; import React from 'react'; diff --git a/packages/@react-spectrum/calendar/src/CalendarTableHeader.tsx b/packages/@react-spectrum/calendar/src/CalendarTableHeader.tsx index 90e255b9829..f36d95d89dc 100644 --- a/packages/@react-spectrum/calendar/src/CalendarTableHeader.tsx +++ b/packages/@react-spectrum/calendar/src/CalendarTableHeader.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {classNames} from '@react-spectrum/utils'; import React from 'react'; import {setDay} from 'date-fns'; // pull these out individually diff --git a/packages/@react-spectrum/calendar/src/RangeCalendar.tsx b/packages/@react-spectrum/calendar/src/RangeCalendar.tsx index d4a67459840..26275bc95b7 100644 --- a/packages/@react-spectrum/calendar/src/RangeCalendar.tsx +++ b/packages/@react-spectrum/calendar/src/RangeCalendar.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {CalendarBase} from './CalendarBase'; import React from 'react'; import {SpectrumRangeCalendarProps} from '@react-types/calendar'; diff --git a/packages/@react-spectrum/calendar/src/index.ts b/packages/@react-spectrum/calendar/src/index.ts index ba19560e028..0dae16e831b 100644 --- a/packages/@react-spectrum/calendar/src/index.ts +++ b/packages/@react-spectrum/calendar/src/index.ts @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './Calendar'; export * from './RangeCalendar'; diff --git a/packages/@react-spectrum/calendar/stories/Calendar.stories.tsx b/packages/@react-spectrum/calendar/stories/Calendar.stories.tsx index 1ca68b65aa6..50704789161 100644 --- a/packages/@react-spectrum/calendar/stories/Calendar.stories.tsx +++ b/packages/@react-spectrum/calendar/stories/Calendar.stories.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {action} from '@storybook/addon-actions'; import {addWeeks} from 'date-fns'; import {Calendar} from '../'; diff --git a/packages/@react-spectrum/calendar/stories/RangeCalendar.stories.tsx b/packages/@react-spectrum/calendar/stories/RangeCalendar.stories.tsx index 05595d3943c..920b3f1da6f 100644 --- a/packages/@react-spectrum/calendar/stories/RangeCalendar.stories.tsx +++ b/packages/@react-spectrum/calendar/stories/RangeCalendar.stories.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {action} from '@storybook/addon-actions'; import {addWeeks} from 'date-fns'; import {RangeCalendar} from '../'; diff --git a/packages/@react-spectrum/calendar/test/Calendar.test.js b/packages/@react-spectrum/calendar/test/Calendar.test.js index 5aa1d569781..94bff29482f 100644 --- a/packages/@react-spectrum/calendar/test/Calendar.test.js +++ b/packages/@react-spectrum/calendar/test/Calendar.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + jest.mock('@react-aria/live-announcer'); import {announce} from '@react-aria/live-announcer'; import {Calendar} from '../'; diff --git a/packages/@react-spectrum/calendar/test/CalendarBase.test.js b/packages/@react-spectrum/calendar/test/CalendarBase.test.js index 303ee382dfb..6b9fdcd5b78 100644 --- a/packages/@react-spectrum/calendar/test/CalendarBase.test.js +++ b/packages/@react-spectrum/calendar/test/CalendarBase.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {Calendar, RangeCalendar} from '../'; import {cleanup, fireEvent, render} from '@testing-library/react'; import {getDaysInMonth} from 'date-fns'; diff --git a/packages/@react-spectrum/calendar/test/RangeCalendar.test.js b/packages/@react-spectrum/calendar/test/RangeCalendar.test.js index a1e6f04d8db..f121e2a9461 100644 --- a/packages/@react-spectrum/calendar/test/RangeCalendar.test.js +++ b/packages/@react-spectrum/calendar/test/RangeCalendar.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + jest.mock('@react-aria/live-announcer'); import {announce} from '@react-aria/live-announcer'; import {cleanup, fireEvent, render} from '@testing-library/react'; diff --git a/packages/@react-spectrum/checkbox/index.ts b/packages/@react-spectrum/checkbox/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-spectrum/checkbox/index.ts +++ b/packages/@react-spectrum/checkbox/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-spectrum/checkbox/package.json b/packages/@react-spectrum/checkbox/package.json index 52761c1006d..f9ef7bb4ecd 100644 --- a/packages/@react-spectrum/checkbox/package.json +++ b/packages/@react-spectrum/checkbox/package.json @@ -2,6 +2,7 @@ "name": "@react-spectrum/checkbox", "version": "3.0.0-rc.1", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -24,7 +25,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-spectrum/checkbox/src/Checkbox.tsx b/packages/@react-spectrum/checkbox/src/Checkbox.tsx index 69f63159d0f..353fa24b510 100644 --- a/packages/@react-spectrum/checkbox/src/Checkbox.tsx +++ b/packages/@react-spectrum/checkbox/src/Checkbox.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import CheckmarkSmall from '@spectrum-icons/ui/CheckmarkSmall'; import {classNames, filterDOMProps, useFocusableRef, useStyleProps} from '@react-spectrum/utils'; import DashSmall from '@spectrum-icons/ui/DashSmall'; diff --git a/packages/@react-spectrum/checkbox/src/index.ts b/packages/@react-spectrum/checkbox/src/index.ts index f5c939faf48..3d70d7831fd 100644 --- a/packages/@react-spectrum/checkbox/src/index.ts +++ b/packages/@react-spectrum/checkbox/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './Checkbox'; diff --git a/packages/@react-spectrum/checkbox/stories/Checkbox.stories.tsx b/packages/@react-spectrum/checkbox/stories/Checkbox.stories.tsx index f963d719493..e554c0e844d 100644 --- a/packages/@react-spectrum/checkbox/stories/Checkbox.stories.tsx +++ b/packages/@react-spectrum/checkbox/stories/Checkbox.stories.tsx @@ -1,9 +1,22 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {action} from '@storybook/addon-actions'; import {Checkbox} from '../'; import React from 'react'; import {storiesOf} from '@storybook/react'; storiesOf('Checkbox', module) + .addParameters({providerSwitcher: {status: 'positive'}}) .add( 'Default', () => render() diff --git a/packages/@react-spectrum/checkbox/test/Checkbox.test.js b/packages/@react-spectrum/checkbox/test/Checkbox.test.js index bb4755f08e7..eef68c9af66 100644 --- a/packages/@react-spectrum/checkbox/test/Checkbox.test.js +++ b/packages/@react-spectrum/checkbox/test/Checkbox.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {Checkbox} from '../'; import {cleanup, render} from '@testing-library/react'; import React from 'react'; diff --git a/packages/@react-spectrum/datepicker/index.ts b/packages/@react-spectrum/datepicker/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-spectrum/datepicker/index.ts +++ b/packages/@react-spectrum/datepicker/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-spectrum/datepicker/package.json b/packages/@react-spectrum/datepicker/package.json index bb4cfa4baa2..2070d5fc192 100644 --- a/packages/@react-spectrum/datepicker/package.json +++ b/packages/@react-spectrum/datepicker/package.json @@ -2,6 +2,7 @@ "name": "@react-spectrum/datepicker", "version": "3.0.0-alpha.2", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -24,7 +25,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-spectrum/datepicker/src/DatePicker.tsx b/packages/@react-spectrum/datepicker/src/DatePicker.tsx index fda74442902..b4de7370bea 100644 --- a/packages/@react-spectrum/datepicker/src/DatePicker.tsx +++ b/packages/@react-spectrum/datepicker/src/DatePicker.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {Calendar} from '@react-spectrum/calendar'; import CalendarIcon from '@spectrum-icons/workflow/Calendar'; import {classNames, filterDOMProps, useStyleProps} from '@react-spectrum/utils'; diff --git a/packages/@react-spectrum/datepicker/src/DatePickerField.tsx b/packages/@react-spectrum/datepicker/src/DatePickerField.tsx index e9ce5f30e61..52940470289 100644 --- a/packages/@react-spectrum/datepicker/src/DatePickerField.tsx +++ b/packages/@react-spectrum/datepicker/src/DatePickerField.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import Alert from '@spectrum-icons/ui/AlertMedium'; import Checkmark from '@spectrum-icons/ui/CheckmarkMedium'; import {classNames} from '@react-spectrum/utils'; diff --git a/packages/@react-spectrum/datepicker/src/DatePickerSegment.tsx b/packages/@react-spectrum/datepicker/src/DatePickerSegment.tsx index ce0ec06f70a..657dccaca83 100644 --- a/packages/@react-spectrum/datepicker/src/DatePickerSegment.tsx +++ b/packages/@react-spectrum/datepicker/src/DatePickerSegment.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {classNames} from '@react-spectrum/utils'; import {DatePickerFieldState, DateSegment} from '@react-stately/datepicker'; import React from 'react'; diff --git a/packages/@react-spectrum/datepicker/src/DateRangePicker.tsx b/packages/@react-spectrum/datepicker/src/DateRangePicker.tsx index 14310e3e744..2c23324797f 100644 --- a/packages/@react-spectrum/datepicker/src/DateRangePicker.tsx +++ b/packages/@react-spectrum/datepicker/src/DateRangePicker.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import CalendarIcon from '@spectrum-icons/workflow/Calendar'; import {classNames, filterDOMProps, useStyleProps} from '@react-spectrum/utils'; import {DatePickerField} from './DatePickerField'; diff --git a/packages/@react-spectrum/datepicker/src/index.css b/packages/@react-spectrum/datepicker/src/index.css index 8bc24e636a6..0e4041add74 100644 --- a/packages/@react-spectrum/datepicker/src/index.css +++ b/packages/@react-spectrum/datepicker/src/index.css @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + .react-spectrum-Datepicker-field.react-spectrum-Datepicker-field { /* needs to override the style from Textfield */ width: auto; diff --git a/packages/@react-spectrum/datepicker/src/index.ts b/packages/@react-spectrum/datepicker/src/index.ts index ebbf526ba72..778d426ce56 100644 --- a/packages/@react-spectrum/datepicker/src/index.ts +++ b/packages/@react-spectrum/datepicker/src/index.ts @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './DatePicker'; export * from './DateRangePicker'; diff --git a/packages/@react-spectrum/datepicker/stories/DatePicker.stories.tsx b/packages/@react-spectrum/datepicker/stories/DatePicker.stories.tsx index e1f36db4821..fc08c53ecce 100644 --- a/packages/@react-spectrum/datepicker/stories/DatePicker.stories.tsx +++ b/packages/@react-spectrum/datepicker/stories/DatePicker.stories.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {action} from '@storybook/addon-actions'; import {DatePicker} from '../'; import React from 'react'; diff --git a/packages/@react-spectrum/datepicker/stories/DateRangePicker.stories.tsx b/packages/@react-spectrum/datepicker/stories/DateRangePicker.stories.tsx index bbd574eb10a..9fe54ef2bc3 100644 --- a/packages/@react-spectrum/datepicker/stories/DateRangePicker.stories.tsx +++ b/packages/@react-spectrum/datepicker/stories/DateRangePicker.stories.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {action} from '@storybook/addon-actions'; import {DateRangePicker} from '../'; import React from 'react'; diff --git a/packages/@react-spectrum/datepicker/test/DatePicker.test.js b/packages/@react-spectrum/datepicker/test/DatePicker.test.js index 8c1ad3b6ff6..0e1d07e2ca4 100644 --- a/packages/@react-spectrum/datepicker/test/DatePicker.test.js +++ b/packages/@react-spectrum/datepicker/test/DatePicker.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, fireEvent, render} from '@testing-library/react'; import {DatePicker} from '../'; import {Provider} from '@react-spectrum/provider'; diff --git a/packages/@react-spectrum/datepicker/test/DatePickerBase.test.js b/packages/@react-spectrum/datepicker/test/DatePickerBase.test.js index 3d9bf032d4a..42114a4574f 100644 --- a/packages/@react-spectrum/datepicker/test/DatePickerBase.test.js +++ b/packages/@react-spectrum/datepicker/test/DatePickerBase.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, fireEvent, render} from '@testing-library/react'; import {DatePicker, DateRangePicker} from '../'; import {Provider} from '@react-spectrum/provider'; diff --git a/packages/@react-spectrum/datepicker/test/DateRangePicker.test.js b/packages/@react-spectrum/datepicker/test/DateRangePicker.test.js index ce830c6b165..a63cab546ea 100644 --- a/packages/@react-spectrum/datepicker/test/DateRangePicker.test.js +++ b/packages/@react-spectrum/datepicker/test/DateRangePicker.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, fireEvent, getAllByRole as getAllByRoleInContainer, render} from '@testing-library/react'; import {DateRangePicker} from '../'; import {Provider} from '@react-spectrum/provider'; diff --git a/packages/@react-spectrum/dialog/index.ts b/packages/@react-spectrum/dialog/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-spectrum/dialog/index.ts +++ b/packages/@react-spectrum/dialog/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-spectrum/dialog/package.json b/packages/@react-spectrum/dialog/package.json index 004a9dd6216..0c7c1871a30 100644 --- a/packages/@react-spectrum/dialog/package.json +++ b/packages/@react-spectrum/dialog/package.json @@ -2,6 +2,7 @@ "name": "@react-spectrum/dialog", "version": "3.0.0-alpha.2", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -24,7 +25,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-spectrum/dialog/src/AlertDialog.tsx b/packages/@react-spectrum/dialog/src/AlertDialog.tsx index 9c29aa60a3f..76cfdbb3307 100644 --- a/packages/@react-spectrum/dialog/src/AlertDialog.tsx +++ b/packages/@react-spectrum/dialog/src/AlertDialog.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import AlertMedium from '@spectrum-icons/ui/AlertMedium'; import {Button} from '@react-spectrum/button'; import {classNames, useStyleProps} from '@react-spectrum/utils'; diff --git a/packages/@react-spectrum/dialog/src/Dialog.tsx b/packages/@react-spectrum/dialog/src/Dialog.tsx index 550426f30ec..871ded00c4b 100644 --- a/packages/@react-spectrum/dialog/src/Dialog.tsx +++ b/packages/@react-spectrum/dialog/src/Dialog.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {ActionButton} from '@react-spectrum/button'; import {classNames, filterDOMProps, useStyleProps} from '@react-spectrum/utils'; import CrossLarge from '@spectrum-icons/ui/CrossLarge'; diff --git a/packages/@react-spectrum/dialog/src/DialogTrigger.tsx b/packages/@react-spectrum/dialog/src/DialogTrigger.tsx index 7997118d5fb..a3efe107c48 100644 --- a/packages/@react-spectrum/dialog/src/DialogTrigger.tsx +++ b/packages/@react-spectrum/dialog/src/DialogTrigger.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DialogContext} from './context'; import {DOMRefValue} from '@react-types/shared'; import {Modal, Overlay, Popover, Tray} from '@react-spectrum/overlays'; diff --git a/packages/@react-spectrum/dialog/src/context.ts b/packages/@react-spectrum/dialog/src/context.ts index 413e1a0377c..039903128e9 100644 --- a/packages/@react-spectrum/dialog/src/context.ts +++ b/packages/@react-spectrum/dialog/src/context.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import React, {HTMLAttributes} from 'react'; export interface DialogContextValue extends HTMLAttributes { diff --git a/packages/@react-spectrum/dialog/src/index.ts b/packages/@react-spectrum/dialog/src/index.ts index 7cdcc4c1efa..a6c7c85874c 100644 --- a/packages/@react-spectrum/dialog/src/index.ts +++ b/packages/@react-spectrum/dialog/src/index.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './AlertDialog'; export * from './Dialog'; export * from './DialogTrigger'; diff --git a/packages/@react-spectrum/dialog/stories/Dialog.stories.tsx b/packages/@react-spectrum/dialog/stories/Dialog.stories.tsx index cb96936834b..0533b97d427 100644 --- a/packages/@react-spectrum/dialog/stories/Dialog.stories.tsx +++ b/packages/@react-spectrum/dialog/stories/Dialog.stories.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {action} from '@storybook/addon-actions'; import {ActionButton, Button} from '@react-spectrum/button'; import {AlertDialog, Dialog, DialogTrigger} from '../'; @@ -16,6 +28,7 @@ import {TextField} from '@react-spectrum/textfield'; storiesOf('Dialog', module) // DialogTrigger isn't affected by color scheme, so only visual test light, and ensure animations work properly. .addParameters({chromaticProvider: {colorSchemes: ['light']}, chromatic: {pauseAnimationAtEnd: true}}) + .addParameters({providerSwitcher: {status: 'notice'}}) .add( 'default', () => render({}) @@ -214,7 +227,7 @@ function renderHero({width = 'auto', ...props}) { Trigger - +
The Title
{singleParagraph()} diff --git a/packages/@react-spectrum/dialog/stories/DialogTrigger.stories.tsx b/packages/@react-spectrum/dialog/stories/DialogTrigger.stories.tsx index d02c0076bfb..c308027867a 100644 --- a/packages/@react-spectrum/dialog/stories/DialogTrigger.stories.tsx +++ b/packages/@react-spectrum/dialog/stories/DialogTrigger.stories.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {action} from '@storybook/addon-actions'; import {ActionButton, Button} from '@react-spectrum/button'; import {AlertDialog, Dialog, DialogTrigger} from '../'; @@ -12,6 +24,7 @@ import {Text} from '@react-spectrum/typography'; storiesOf('DialogTrigger', module) // DialogTrigger isn't affected by color scheme, so only visual test light, and ensure animations work properly. .addParameters({chromaticProvider: {colorSchemes: ['light']}, chromatic: {pauseAnimationAtEnd: true}}) + .addParameters({providerSwitcher: {status: 'notice'}}) .add( 'default', () => render({}), diff --git a/packages/@react-spectrum/dialog/test/Dialog.test.js b/packages/@react-spectrum/dialog/test/Dialog.test.js index 2a63c24a254..68fbd6c92a3 100644 --- a/packages/@react-spectrum/dialog/test/Dialog.test.js +++ b/packages/@react-spectrum/dialog/test/Dialog.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, fireEvent, render} from '@testing-library/react'; import {Dialog} from '../'; import {DialogContext} from '../src/context'; diff --git a/packages/@react-spectrum/dialog/test/DialogTrigger.test.js b/packages/@react-spectrum/dialog/test/DialogTrigger.test.js index 9badcd79f54..c5ded8e15f5 100644 --- a/packages/@react-spectrum/dialog/test/DialogTrigger.test.js +++ b/packages/@react-spectrum/dialog/test/DialogTrigger.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {ActionButton} from '@react-spectrum/button'; import {cleanup, fireEvent, render, waitForDomChange} from '@testing-library/react'; import {Dialog, DialogTrigger} from '../'; diff --git a/packages/@react-spectrum/divider/index.ts b/packages/@react-spectrum/divider/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-spectrum/divider/index.ts +++ b/packages/@react-spectrum/divider/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-spectrum/divider/package.json b/packages/@react-spectrum/divider/package.json index cf4df599003..fb1a8b4c71b 100644 --- a/packages/@react-spectrum/divider/package.json +++ b/packages/@react-spectrum/divider/package.json @@ -2,6 +2,7 @@ "name": "@react-spectrum/divider", "version": "3.0.0-rc.1", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -24,7 +25,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-spectrum/divider/src/Divider.tsx b/packages/@react-spectrum/divider/src/Divider.tsx index e699e7dabcb..6ccfa9d5b32 100644 --- a/packages/@react-spectrum/divider/src/Divider.tsx +++ b/packages/@react-spectrum/divider/src/Divider.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {classNames, filterDOMProps, useDOMRef, useStyleProps} from '@react-spectrum/utils'; import {DOMRef} from '@react-types/shared'; import React from 'react'; diff --git a/packages/@react-spectrum/divider/src/index.ts b/packages/@react-spectrum/divider/src/index.ts index 1f84888dc70..f8e9995c2ed 100644 --- a/packages/@react-spectrum/divider/src/index.ts +++ b/packages/@react-spectrum/divider/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './Divider'; diff --git a/packages/@react-spectrum/divider/stories/Divider.stories.tsx b/packages/@react-spectrum/divider/stories/Divider.stories.tsx index 33b70051dac..d13e48a8451 100644 --- a/packages/@react-spectrum/divider/stories/Divider.stories.tsx +++ b/packages/@react-spectrum/divider/stories/Divider.stories.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {ActionButton} from '@react-spectrum/button/src'; import {Divider} from '../'; import Properties from '@spectrum-icons/workflow/Properties'; @@ -6,6 +18,7 @@ import Select from '@spectrum-icons/workflow/Select'; import {storiesOf} from '@storybook/react'; storiesOf('Divider', module) + .addParameters({providerSwitcher: {status: 'positive'}}) .add('Large (Default)', () => (
diff --git a/packages/@react-spectrum/divider/test/Divider.test.js b/packages/@react-spectrum/divider/test/Divider.test.js index 271c33fa2c4..27749b2650f 100644 --- a/packages/@react-spectrum/divider/test/Divider.test.js +++ b/packages/@react-spectrum/divider/test/Divider.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, render} from '@testing-library/react'; import {Divider} from '../'; import React from 'react'; @@ -12,11 +24,11 @@ describe('Divider', function () { it.each` Name | Component | props ${'Divider'} | ${Divider} | ${{}} - ${'Rule'} | ${Rule} | ${{}} + ${'v2 Rule'} | ${Rule} | ${{}} ${'Divider'} | ${Divider} | ${{size: 'M'}} - ${'Rule'} | ${Rule} | ${{variant: 'medium'}} + ${'v2 Rule'} | ${Rule} | ${{variant: 'medium'}} ${'Divider'} | ${Divider} | ${{size: 'S'}} - ${'Rule'} | ${Rule} | ${{variant: 'small'}} + ${'v2 Rule'} | ${Rule} | ${{variant: 'small'}} `('$Name handles defaults', function ({Component, props}) { let {getByRole} = render(); diff --git a/packages/@react-spectrum/form/index.ts b/packages/@react-spectrum/form/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-spectrum/form/index.ts +++ b/packages/@react-spectrum/form/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-spectrum/form/package.json b/packages/@react-spectrum/form/package.json index 1334a69f56f..9df6f4beb3c 100644 --- a/packages/@react-spectrum/form/package.json +++ b/packages/@react-spectrum/form/package.json @@ -2,6 +2,7 @@ "name": "@react-spectrum/form", "version": "3.0.0-rc.1", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -24,7 +25,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-spectrum/form/src/Form.tsx b/packages/@react-spectrum/form/src/Form.tsx index d2e17077f20..0e851546f07 100644 --- a/packages/@react-spectrum/form/src/Form.tsx +++ b/packages/@react-spectrum/form/src/Form.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {Alignment, DOMRef, LabelPosition, SpectrumLabelableProps} from '@react-types/shared'; import {classNames, filterDOMProps, useDOMRef, useStyleProps} from '@react-spectrum/utils'; import {Provider, useProviderProps} from '@react-spectrum/provider'; diff --git a/packages/@react-spectrum/form/src/index.ts b/packages/@react-spectrum/form/src/index.ts index b690c60a16d..358933a4060 100644 --- a/packages/@react-spectrum/form/src/index.ts +++ b/packages/@react-spectrum/form/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './Form'; diff --git a/packages/@react-spectrum/form/stories/Form.stories.tsx b/packages/@react-spectrum/form/stories/Form.stories.tsx index ff4f71ceae2..a823caaadeb 100644 --- a/packages/@react-spectrum/form/stories/Form.stories.tsx +++ b/packages/@react-spectrum/form/stories/Form.stories.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {Form} from '../'; import {Radio, RadioGroup} from '@react-spectrum/radio'; import React from 'react'; @@ -5,6 +17,7 @@ import {storiesOf} from '@storybook/react'; import {TextField} from '@react-spectrum/textfield'; storiesOf('Form', module) + .addParameters({providerSwitcher: {status: 'positive'}}) .add( 'Default', () => render({}) diff --git a/packages/@react-spectrum/form/test/Form.test.js b/packages/@react-spectrum/form/test/Form.test.js index 852445cb9e7..ca830cb304b 100644 --- a/packages/@react-spectrum/form/test/Form.test.js +++ b/packages/@react-spectrum/form/test/Form.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, render} from '@testing-library/react'; import {Form} from '../'; import {Provider} from '@react-spectrum/provider'; diff --git a/packages/@react-spectrum/icon/index.ts b/packages/@react-spectrum/icon/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-spectrum/icon/index.ts +++ b/packages/@react-spectrum/icon/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-spectrum/icon/package.json b/packages/@react-spectrum/icon/package.json index a1a72d512d7..349f1aba1e3 100644 --- a/packages/@react-spectrum/icon/package.json +++ b/packages/@react-spectrum/icon/package.json @@ -2,6 +2,7 @@ "name": "@react-spectrum/icon", "version": "3.0.0-rc.1", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -24,7 +25,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-spectrum/icon/src/Icon.tsx b/packages/@react-spectrum/icon/src/Icon.tsx index 0da7a8b11dc..7e8872064c9 100644 --- a/packages/@react-spectrum/icon/src/Icon.tsx +++ b/packages/@react-spectrum/icon/src/Icon.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {classNames, filterDOMProps, useStyleProps} from '@react-spectrum/utils'; import {DOMProps, StyleProps} from '@react-types/shared'; import React, {ReactElement} from 'react'; diff --git a/packages/@react-spectrum/icon/src/UIIcon.tsx b/packages/@react-spectrum/icon/src/UIIcon.tsx index e0e55bd88f3..6308403478f 100644 --- a/packages/@react-spectrum/icon/src/UIIcon.tsx +++ b/packages/@react-spectrum/icon/src/UIIcon.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {classNames, filterDOMProps, useStyleProps} from '@react-spectrum/utils'; import {DOMProps, StyleProps} from '@react-types/shared'; import React, {ReactElement} from 'react'; diff --git a/packages/@react-spectrum/icon/src/index.ts b/packages/@react-spectrum/icon/src/index.ts index 5d43b7f245b..16f958dd105 100644 --- a/packages/@react-spectrum/icon/src/index.ts +++ b/packages/@react-spectrum/icon/src/index.ts @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './Icon'; export * from './UIIcon'; diff --git a/packages/@react-spectrum/icon/stories/Icon.stories.tsx b/packages/@react-spectrum/icon/stories/Icon.stories.tsx index 72367f007d3..0e30de580fd 100644 --- a/packages/@react-spectrum/icon/stories/Icon.stories.tsx +++ b/packages/@react-spectrum/icon/stories/Icon.stories.tsx @@ -1,8 +1,21 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {Icon} from '../'; import React from 'react'; import {storiesOf} from '@storybook/react'; storiesOf('Icons/Custom', module) + .addParameters({providerSwitcher: {status: 'positive'}}) .add( 'exciting square', () => diff --git a/packages/@react-spectrum/icon/test/Icon.test.js b/packages/@react-spectrum/icon/test/Icon.test.js index 7005cf14f72..5d752c3c9b2 100644 --- a/packages/@react-spectrum/icon/test/Icon.test.js +++ b/packages/@react-spectrum/icon/test/Icon.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, render} from '@testing-library/react'; import {Icon} from '../'; import React from 'react'; diff --git a/packages/@react-spectrum/icon/test/UIIcon.test.js b/packages/@react-spectrum/icon/test/UIIcon.test.js index 2b3db45cdde..1246dbd8a8b 100644 --- a/packages/@react-spectrum/icon/test/UIIcon.test.js +++ b/packages/@react-spectrum/icon/test/UIIcon.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, render} from '@testing-library/react'; import React from 'react'; import {UIIcon} from '../'; diff --git a/packages/@react-spectrum/illustrated-message/index.ts b/packages/@react-spectrum/illustrated-message/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-spectrum/illustrated-message/index.ts +++ b/packages/@react-spectrum/illustrated-message/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-spectrum/illustrated-message/package.json b/packages/@react-spectrum/illustrated-message/package.json index 6a1cb6b15b5..e1590a1e641 100644 --- a/packages/@react-spectrum/illustrated-message/package.json +++ b/packages/@react-spectrum/illustrated-message/package.json @@ -3,6 +3,7 @@ "version": "3.0.0-alpha.2", "private": true, "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -25,7 +26,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-spectrum/illustrated-message/src/IllustratedMessage.tsx b/packages/@react-spectrum/illustrated-message/src/IllustratedMessage.tsx index 04bc1d48605..44ce0cfdc90 100644 --- a/packages/@react-spectrum/illustrated-message/src/IllustratedMessage.tsx +++ b/packages/@react-spectrum/illustrated-message/src/IllustratedMessage.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {classNames, filterDOMProps, useDOMRef, useStyleProps} from '@react-spectrum/utils'; import {DOMRef} from '@react-types/shared'; import React, {forwardRef} from 'react'; diff --git a/packages/@react-spectrum/illustrated-message/src/index.ts b/packages/@react-spectrum/illustrated-message/src/index.ts index 7f21dc9f949..d07f77ad4d0 100644 --- a/packages/@react-spectrum/illustrated-message/src/index.ts +++ b/packages/@react-spectrum/illustrated-message/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './IllustratedMessage'; diff --git a/packages/@react-spectrum/illustrated-message/stories/IllustratedMessage.stories.tsx b/packages/@react-spectrum/illustrated-message/stories/IllustratedMessage.stories.tsx index 679d09023d2..72580986a2f 100644 --- a/packages/@react-spectrum/illustrated-message/stories/IllustratedMessage.stories.tsx +++ b/packages/@react-spectrum/illustrated-message/stories/IllustratedMessage.stories.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {IllustratedMessage} from '../'; import React from 'react'; import {storiesOf} from '@storybook/react'; diff --git a/packages/@react-spectrum/illustrated-message/test/IllustratedMessage.test.js b/packages/@react-spectrum/illustrated-message/test/IllustratedMessage.test.js index 7b1eb10b653..72a7d89a661 100644 --- a/packages/@react-spectrum/illustrated-message/test/IllustratedMessage.test.js +++ b/packages/@react-spectrum/illustrated-message/test/IllustratedMessage.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, render} from '@testing-library/react'; import {IllustratedMessage} from '../'; import React from 'react'; diff --git a/packages/@react-spectrum/image/index.ts b/packages/@react-spectrum/image/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-spectrum/image/index.ts +++ b/packages/@react-spectrum/image/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-spectrum/image/package.json b/packages/@react-spectrum/image/package.json index 306751c85ed..002b0918548 100644 --- a/packages/@react-spectrum/image/package.json +++ b/packages/@react-spectrum/image/package.json @@ -3,23 +3,30 @@ "version": "3.0.0-alpha.1", "private": true, "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", "source": "src/index.ts", - "files": ["dist"], + "files": [ + "dist" + ], "sideEffects": false, "targets": { "main": { - "includeNodeModules": ["@adobe/spectrum-css-temp"] + "includeNodeModules": [ + "@adobe/spectrum-css-temp" + ] }, "module": { - "includeNodeModules": ["@adobe/spectrum-css-temp"] + "includeNodeModules": [ + "@adobe/spectrum-css-temp" + ] } }, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-spectrum/image/src/Image.tsx b/packages/@react-spectrum/image/src/Image.tsx index cc8e66b7f67..4f482e65966 100644 --- a/packages/@react-spectrum/image/src/Image.tsx +++ b/packages/@react-spectrum/image/src/Image.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {classNames, filterDOMProps, useDOMRef, useStyleProps} from '@react-spectrum/utils'; import {DOMRef} from '@react-types/shared'; import React from 'react'; diff --git a/packages/@react-spectrum/image/src/index.ts b/packages/@react-spectrum/image/src/index.ts index 4bbac90149c..9e1b6e85c34 100644 --- a/packages/@react-spectrum/image/src/index.ts +++ b/packages/@react-spectrum/image/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './Image'; diff --git a/packages/@react-spectrum/label/index.ts b/packages/@react-spectrum/label/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-spectrum/label/index.ts +++ b/packages/@react-spectrum/label/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-spectrum/label/package.json b/packages/@react-spectrum/label/package.json index e5387f45c48..dce90c9073a 100644 --- a/packages/@react-spectrum/label/package.json +++ b/packages/@react-spectrum/label/package.json @@ -2,6 +2,7 @@ "name": "@react-spectrum/label", "version": "3.0.0-rc.1", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -24,7 +25,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-spectrum/label/src/Label.tsx b/packages/@react-spectrum/label/src/Label.tsx index 32c8cd0d331..c0c3315afad 100644 --- a/packages/@react-spectrum/label/src/Label.tsx +++ b/packages/@react-spectrum/label/src/Label.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import Asterisk from '@spectrum-icons/ui/Asterisk'; import {classNames, filterDOMProps, useDOMRef, useStyleProps} from '@react-spectrum/utils'; import {DOMRef} from '@react-types/shared'; diff --git a/packages/@react-spectrum/label/src/index.ts b/packages/@react-spectrum/label/src/index.ts index ca58c61a25f..45fef101aa4 100644 --- a/packages/@react-spectrum/label/src/index.ts +++ b/packages/@react-spectrum/label/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './Label'; diff --git a/packages/@react-spectrum/label/stories/Label.stories.tsx b/packages/@react-spectrum/label/stories/Label.stories.tsx index f10cd755cf6..20c38cf3b1c 100644 --- a/packages/@react-spectrum/label/stories/Label.stories.tsx +++ b/packages/@react-spectrum/label/stories/Label.stories.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {Label} from '../'; import React from 'react'; import {SpectrumLabelProps} from '@react-types/label'; @@ -5,6 +17,7 @@ import {storiesOf} from '@storybook/react'; import {TextField} from '@react-spectrum/textfield'; storiesOf('Label', module) + .addParameters({providerSwitcher: {status: 'positive'}}) .add( 'Default', () => render({}) diff --git a/packages/@react-spectrum/layout/index.ts b/packages/@react-spectrum/layout/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-spectrum/layout/index.ts +++ b/packages/@react-spectrum/layout/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-spectrum/layout/package.json b/packages/@react-spectrum/layout/package.json index 1bee1a6e46f..bd48c5f8773 100644 --- a/packages/@react-spectrum/layout/package.json +++ b/packages/@react-spectrum/layout/package.json @@ -3,23 +3,30 @@ "version": "3.0.0-alpha.1", "private": true, "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", "source": "src/index.ts", - "files": ["dist"], + "files": [ + "dist" + ], "sideEffects": false, "targets": { "main": { - "includeNodeModules": ["@adobe/spectrum-css-temp"] + "includeNodeModules": [ + "@adobe/spectrum-css-temp" + ] }, "module": { - "includeNodeModules": ["@adobe/spectrum-css-temp"] + "includeNodeModules": [ + "@adobe/spectrum-css-temp" + ] } }, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-spectrum/layout/src/Flex.tsx b/packages/@react-spectrum/layout/src/Flex.tsx index 577f50a9557..96a64f2c0c0 100644 --- a/packages/@react-spectrum/layout/src/Flex.tsx +++ b/packages/@react-spectrum/layout/src/Flex.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {filterDOMProps, flexStyleProps, useStyleProps} from '@react-spectrum/utils'; import {FlexProps} from '@react-types/layout'; import {HTMLElement} from 'react-dom'; diff --git a/packages/@react-spectrum/layout/src/Grid.tsx b/packages/@react-spectrum/layout/src/Grid.tsx index bb5aeba2c5e..af1cf32a252 100644 --- a/packages/@react-spectrum/layout/src/Grid.tsx +++ b/packages/@react-spectrum/layout/src/Grid.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {classNames, filterDOMProps, gridStyleProps, SlotContext, useStyleProps} from '@react-spectrum/utils'; import {GridProps} from '@react-types/layout'; import {HTMLElement} from 'react-dom'; diff --git a/packages/@react-spectrum/layout/src/index.ts b/packages/@react-spectrum/layout/src/index.ts index d1af3201594..d0ebe9bbd29 100644 --- a/packages/@react-spectrum/layout/src/index.ts +++ b/packages/@react-spectrum/layout/src/index.ts @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './Grid'; export * from './Flex'; diff --git a/packages/@react-spectrum/layout/stories/Grid.stories.tsx b/packages/@react-spectrum/layout/stories/Grid.stories.tsx index 375bcf21d47..701d759e724 100644 --- a/packages/@react-spectrum/layout/stories/Grid.stories.tsx +++ b/packages/@react-spectrum/layout/stories/Grid.stories.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {ActionButton} from '@react-spectrum/button'; import {Content, Header} from '@react-spectrum/view'; import {Divider} from '@react-spectrum/divider'; diff --git a/packages/@react-spectrum/layout/stories/styles.css b/packages/@react-spectrum/layout/stories/styles.css index edc0822d0f6..5cbbc1120c5 100644 --- a/packages/@react-spectrum/layout/stories/styles.css +++ b/packages/@react-spectrum/layout/stories/styles.css @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + .spectrum-Card { border: 1px solid rgb(25, 25, 25); border-radius: 4px; diff --git a/packages/@react-spectrum/layout/test/Grid.test.js b/packages/@react-spectrum/layout/test/Grid.test.js index ffcdc53369f..427457c7f45 100644 --- a/packages/@react-spectrum/layout/test/Grid.test.js +++ b/packages/@react-spectrum/layout/test/Grid.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup} from '@testing-library/react'; import Grid from '../'; import React from 'react'; diff --git a/packages/@react-spectrum/link/index.ts b/packages/@react-spectrum/link/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-spectrum/link/index.ts +++ b/packages/@react-spectrum/link/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-spectrum/link/package.json b/packages/@react-spectrum/link/package.json index a51517a213c..fd04b2b0319 100644 --- a/packages/@react-spectrum/link/package.json +++ b/packages/@react-spectrum/link/package.json @@ -3,6 +3,7 @@ "version": "3.0.0-alpha.2", "private": true, "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -25,7 +26,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-spectrum/link/src/Link.tsx b/packages/@react-spectrum/link/src/Link.tsx index 761d3f722b8..35153c518e6 100644 --- a/packages/@react-spectrum/link/src/Link.tsx +++ b/packages/@react-spectrum/link/src/Link.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {classNames, filterDOMProps, getWrappedElement, useStyleProps} from '@react-spectrum/utils'; import {FocusRing} from '@react-aria/focus'; import React, {useRef} from 'react'; diff --git a/packages/@react-spectrum/link/src/index.ts b/packages/@react-spectrum/link/src/index.ts index 3db78f51f07..ca4c35a4a53 100644 --- a/packages/@react-spectrum/link/src/index.ts +++ b/packages/@react-spectrum/link/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './Link'; diff --git a/packages/@react-spectrum/link/stories/Link.stories.tsx b/packages/@react-spectrum/link/stories/Link.stories.tsx index c742514a6c6..721beb07018 100644 --- a/packages/@react-spectrum/link/stories/Link.stories.tsx +++ b/packages/@react-spectrum/link/stories/Link.stories.tsx @@ -1,9 +1,22 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {action} from '@storybook/addon-actions'; import {Link} from '../'; import React from 'react'; import {storiesOf} from '@storybook/react'; storiesOf('Link', module) + .addParameters({providerSwitcher: {status: 'notice'}}) .add( 'Default', () => render({onPress: action('press'), onPressStart: action('pressstart'), onPressEnd: action('pressend')}) diff --git a/packages/@react-spectrum/link/test/Link.test.js b/packages/@react-spectrum/link/test/Link.test.js index 3b4ef99dfff..787c5bb4432 100644 --- a/packages/@react-spectrum/link/test/Link.test.js +++ b/packages/@react-spectrum/link/test/Link.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, fireEvent, render} from '@testing-library/react'; import {Link} from '../'; import React from 'react'; diff --git a/packages/@react-spectrum/menu-trigger/index.ts b/packages/@react-spectrum/menu-trigger/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-spectrum/menu-trigger/index.ts +++ b/packages/@react-spectrum/menu-trigger/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-spectrum/menu-trigger/package.json b/packages/@react-spectrum/menu-trigger/package.json index ab9e92e2e2a..4f0b4a2755a 100644 --- a/packages/@react-spectrum/menu-trigger/package.json +++ b/packages/@react-spectrum/menu-trigger/package.json @@ -3,6 +3,7 @@ "version": "3.0.0-alpha.2", "private": true, "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -25,7 +26,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", @@ -51,8 +52,7 @@ "peerDependencies": { "@react-spectrum/provider": "^3.0.0-rc.1", "react": "^16.8.0", - "react-dom": "^16.8.0", - "@react-spectrum/provider": "^3.0.0-rc.1" + "react-dom": "^16.8.0" }, "publishConfig": { "access": "public" diff --git a/packages/@react-spectrum/menu-trigger/src/Menu.tsx b/packages/@react-spectrum/menu-trigger/src/Menu.tsx index cb44b1836e2..b7ee9e2fcb8 100644 --- a/packages/@react-spectrum/menu-trigger/src/Menu.tsx +++ b/packages/@react-spectrum/menu-trigger/src/Menu.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import CheckmarkMedium from '@spectrum-icons/ui/CheckmarkMedium'; import {classNames, filterDOMProps, useStyleProps} from '@react-spectrum/utils'; import {CollectionBase, Expandable, MultipleSelection, StyleProps} from '@react-types/shared'; @@ -72,7 +84,7 @@ export function Menu(props: MenuProps) { } selectionManager.setFocusedKey(focusedKey); - }, []); + }, [autoFocus, focusStrategy, layout, setFocusStrategy, state.selectionManager]); return ( diff --git a/packages/@react-spectrum/menu-trigger/src/MenuTrigger.tsx b/packages/@react-spectrum/menu-trigger/src/MenuTrigger.tsx index 1452f8eea5f..6c3c95d8cd0 100644 --- a/packages/@react-spectrum/menu-trigger/src/MenuTrigger.tsx +++ b/packages/@react-spectrum/menu-trigger/src/MenuTrigger.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMRefValue} from '@react-types/shared'; import {FocusStrategy, useMenuTrigger} from '@react-aria/menu-trigger'; import {MenuContext} from './context'; diff --git a/packages/@react-spectrum/menu-trigger/src/context.ts b/packages/@react-spectrum/menu-trigger/src/context.ts index 9f737e6f99f..f9784290656 100644 --- a/packages/@react-spectrum/menu-trigger/src/context.ts +++ b/packages/@react-spectrum/menu-trigger/src/context.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMProps, SelectionMode} from '@react-types/shared'; import {FocusStrategy} from '@react-aria/menu-trigger'; import React from 'react'; diff --git a/packages/@react-spectrum/menu-trigger/src/index.ts b/packages/@react-spectrum/menu-trigger/src/index.ts index 7a25cec12c3..bcd60686725 100644 --- a/packages/@react-spectrum/menu-trigger/src/index.ts +++ b/packages/@react-spectrum/menu-trigger/src/index.ts @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './MenuTrigger'; export * from './Menu'; diff --git a/packages/@react-spectrum/menu-trigger/stories/Menu.stories.tsx b/packages/@react-spectrum/menu-trigger/stories/Menu.stories.tsx index f981ef8981f..af5bcf430e3 100644 --- a/packages/@react-spectrum/menu-trigger/stories/Menu.stories.tsx +++ b/packages/@react-spectrum/menu-trigger/stories/Menu.stories.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {action} from '@storybook/addon-actions'; import {Item, Menu, Section} from '../'; import {Popover} from '@react-spectrum/overlays'; diff --git a/packages/@react-spectrum/menu-trigger/stories/MenuTrigger.stories.tsx b/packages/@react-spectrum/menu-trigger/stories/MenuTrigger.stories.tsx index 484f57e7fc0..a7bdd25acd7 100644 --- a/packages/@react-spectrum/menu-trigger/stories/MenuTrigger.stories.tsx +++ b/packages/@react-spectrum/menu-trigger/stories/MenuTrigger.stories.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {action} from '@storybook/addon-actions'; import {ActionButton, Button} from '@react-spectrum/button'; import ChevronDownMedium from '@spectrum-icons/ui/ChevronDownMedium'; diff --git a/packages/@react-spectrum/menu-trigger/test/Menu.test.js b/packages/@react-spectrum/menu-trigger/test/Menu.test.js index 942a8538fbd..0ef106bf8f4 100644 --- a/packages/@react-spectrum/menu-trigger/test/Menu.test.js +++ b/packages/@react-spectrum/menu-trigger/test/Menu.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, render} from '@testing-library/react'; import {Item, Menu, Section} from '../'; import {MenuContext} from '../src/context'; diff --git a/packages/@react-spectrum/menu-trigger/test/MenuTrigger.test.js b/packages/@react-spectrum/menu-trigger/test/MenuTrigger.test.js index 4e76ca8d3f7..9fc4d703adf 100644 --- a/packages/@react-spectrum/menu-trigger/test/MenuTrigger.test.js +++ b/packages/@react-spectrum/menu-trigger/test/MenuTrigger.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {Button} from '@react-spectrum/button'; import {classNames} from '@react-spectrum/utils'; import {cleanup, fireEvent, render, waitForDomChange, within} from '@testing-library/react'; diff --git a/packages/@react-spectrum/meter/index.ts b/packages/@react-spectrum/meter/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-spectrum/meter/index.ts +++ b/packages/@react-spectrum/meter/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-spectrum/meter/package.json b/packages/@react-spectrum/meter/package.json index 94b2762be32..062d5167674 100644 --- a/packages/@react-spectrum/meter/package.json +++ b/packages/@react-spectrum/meter/package.json @@ -2,6 +2,7 @@ "name": "@react-spectrum/meter", "version": "3.0.0-rc.1", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -24,7 +25,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-spectrum/meter/src/Meter.tsx b/packages/@react-spectrum/meter/src/Meter.tsx index d08ce4d8f18..c22065e61a2 100644 --- a/packages/@react-spectrum/meter/src/Meter.tsx +++ b/packages/@react-spectrum/meter/src/Meter.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {classNames} from '@react-spectrum/utils'; import {DOMRef} from '@react-types/shared'; import {ProgressBarBase} from '@react-spectrum/progress'; diff --git a/packages/@react-spectrum/meter/src/index.ts b/packages/@react-spectrum/meter/src/index.ts index 649945896d5..1e26a9a7a24 100644 --- a/packages/@react-spectrum/meter/src/index.ts +++ b/packages/@react-spectrum/meter/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './Meter'; diff --git a/packages/@react-spectrum/meter/stories/Meter.stories.tsx b/packages/@react-spectrum/meter/stories/Meter.stories.tsx index fa0bfbae11e..471e4ed818f 100644 --- a/packages/@react-spectrum/meter/stories/Meter.stories.tsx +++ b/packages/@react-spectrum/meter/stories/Meter.stories.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {Meter} from '../'; import {number, withKnobs} from '@storybook/addon-knobs'; import React from 'react'; @@ -16,6 +28,7 @@ const formatOptions = { }; storiesOf('Meter', module) + .addParameters({providerSwitcher: {status: 'positive'}}) .addDecorator(withKnobs) .add( 'value: 50', diff --git a/packages/@react-spectrum/meter/test/Meter.test.js b/packages/@react-spectrum/meter/test/Meter.test.js index 7cc0582e4a7..228d33bc3e3 100644 --- a/packages/@react-spectrum/meter/test/Meter.test.js +++ b/packages/@react-spectrum/meter/test/Meter.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, render} from '@testing-library/react'; import {Meter} from '../'; import React from 'react'; diff --git a/packages/@react-spectrum/numberfield/index.ts b/packages/@react-spectrum/numberfield/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-spectrum/numberfield/index.ts +++ b/packages/@react-spectrum/numberfield/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-spectrum/numberfield/package.json b/packages/@react-spectrum/numberfield/package.json index 53becb183c1..0dd49d797bd 100644 --- a/packages/@react-spectrum/numberfield/package.json +++ b/packages/@react-spectrum/numberfield/package.json @@ -2,6 +2,7 @@ "name": "@react-spectrum/numberfield", "version": "3.0.0-alpha.2", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -24,7 +25,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-spectrum/numberfield/src/NumberField.tsx b/packages/@react-spectrum/numberfield/src/NumberField.tsx index fe95b2e8cf1..0ac8c63183e 100644 --- a/packages/@react-spectrum/numberfield/src/NumberField.tsx +++ b/packages/@react-spectrum/numberfield/src/NumberField.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {ActionButton} from '@react-spectrum/button'; import ChevronDownSmall from '@spectrum-icons/ui/ChevronDownSmall'; import ChevronUpSmall from '@spectrum-icons/ui/ChevronUpSmall'; diff --git a/packages/@react-spectrum/numberfield/src/index.ts b/packages/@react-spectrum/numberfield/src/index.ts index ac97eb3e14f..9b63002ad98 100644 --- a/packages/@react-spectrum/numberfield/src/index.ts +++ b/packages/@react-spectrum/numberfield/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './NumberField'; diff --git a/packages/@react-spectrum/numberfield/stories/NumberField.stories.tsx b/packages/@react-spectrum/numberfield/stories/NumberField.stories.tsx index 8ff5b4924f8..fa338ac8849 100644 --- a/packages/@react-spectrum/numberfield/stories/NumberField.stories.tsx +++ b/packages/@react-spectrum/numberfield/stories/NumberField.stories.tsx @@ -1,9 +1,22 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {action} from '@storybook/addon-actions'; import {NumberField} from '../src'; import React from 'react'; import {storiesOf} from '@storybook/react'; storiesOf('NumberField', module) + .addParameters({providerSwitcher: {status: 'notice'}}) .add( 'default', () => render({onChange: action('onChange')}) diff --git a/packages/@react-spectrum/numberfield/test/NumberField.test.js b/packages/@react-spectrum/numberfield/test/NumberField.test.js index 18f7a081120..34ee3803ea4 100644 --- a/packages/@react-spectrum/numberfield/test/NumberField.test.js +++ b/packages/@react-spectrum/numberfield/test/NumberField.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, fireEvent, render, within} from '@testing-library/react'; import {NumberField} from '../'; import NumberInput from '@react/react-spectrum/NumberInput'; diff --git a/packages/@react-spectrum/overlays/index.ts b/packages/@react-spectrum/overlays/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-spectrum/overlays/index.ts +++ b/packages/@react-spectrum/overlays/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-spectrum/overlays/package.json b/packages/@react-spectrum/overlays/package.json index ea9241365b4..a029c22e8e5 100644 --- a/packages/@react-spectrum/overlays/package.json +++ b/packages/@react-spectrum/overlays/package.json @@ -2,6 +2,7 @@ "name": "@react-spectrum/overlays", "version": "3.0.0-alpha.2", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -24,7 +25,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-spectrum/overlays/src/Modal.tsx b/packages/@react-spectrum/overlays/src/Modal.tsx index 172766cee9d..66385a33a24 100644 --- a/packages/@react-spectrum/overlays/src/Modal.tsx +++ b/packages/@react-spectrum/overlays/src/Modal.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {classNames} from '@react-spectrum/utils'; import modalStyles from '@adobe/spectrum-css-temp/components/modal/vars.css'; import {Overlay} from './Overlay'; diff --git a/packages/@react-spectrum/overlays/src/OpenTransition.tsx b/packages/@react-spectrum/overlays/src/OpenTransition.tsx index 0baea8d3116..f9efa46ed38 100644 --- a/packages/@react-spectrum/overlays/src/OpenTransition.tsx +++ b/packages/@react-spectrum/overlays/src/OpenTransition.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import React from 'react'; import Transition from 'react-transition-group/Transition'; diff --git a/packages/@react-spectrum/overlays/src/Overlay.tsx b/packages/@react-spectrum/overlays/src/Overlay.tsx index c2673955e8d..f95f08993c7 100644 --- a/packages/@react-spectrum/overlays/src/Overlay.tsx +++ b/packages/@react-spectrum/overlays/src/Overlay.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMRef} from '@react-types/shared'; import {OpenTransition} from './OpenTransition'; import {Provider} from '@react-spectrum/provider'; diff --git a/packages/@react-spectrum/overlays/src/Popover.tsx b/packages/@react-spectrum/overlays/src/Popover.tsx index 3d7e65fd9c6..3c17898c546 100644 --- a/packages/@react-spectrum/overlays/src/Popover.tsx +++ b/packages/@react-spectrum/overlays/src/Popover.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {classNames} from '@react-spectrum/utils'; import overrideStyles from './overlays.css'; import {Placement} from '@react-types/overlays'; diff --git a/packages/@react-spectrum/overlays/src/Tray.tsx b/packages/@react-spectrum/overlays/src/Tray.tsx index 5f42ed351a4..e8c5f873280 100644 --- a/packages/@react-spectrum/overlays/src/Tray.tsx +++ b/packages/@react-spectrum/overlays/src/Tray.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {classNames} from '@react-spectrum/utils'; import {Overlay} from './Overlay'; import overrideStyles from './overlays.css'; diff --git a/packages/@react-spectrum/overlays/src/Underlay.tsx b/packages/@react-spectrum/overlays/src/Underlay.tsx index 11041ca6c8c..daa733ab5a1 100644 --- a/packages/@react-spectrum/overlays/src/Underlay.tsx +++ b/packages/@react-spectrum/overlays/src/Underlay.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {classNames, filterDOMProps} from '@react-spectrum/utils'; import React from 'react'; import underlayStyles from '@adobe/spectrum-css-temp/components/underlay/vars.css'; diff --git a/packages/@react-spectrum/overlays/src/index.ts b/packages/@react-spectrum/overlays/src/index.ts index bd0f39c9275..f093cbd55d7 100644 --- a/packages/@react-spectrum/overlays/src/index.ts +++ b/packages/@react-spectrum/overlays/src/index.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './Overlay'; export * from './Popover'; export * from './Modal'; diff --git a/packages/@react-spectrum/overlays/src/overlays.css b/packages/@react-spectrum/overlays/src/overlays.css index 7bf4d6a88cd..559c645a9bc 100644 --- a/packages/@react-spectrum/overlays/src/overlays.css +++ b/packages/@react-spectrum/overlays/src/overlays.css @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + .spectrum-Popover { /* This makes the contents of popovers focusable immediately, without waiting a frame for animations to start. */ diff --git a/packages/@react-spectrum/overlays/stories/Modal.stories.tsx b/packages/@react-spectrum/overlays/stories/Modal.stories.tsx index cfcfd538675..bb3d485b94e 100644 --- a/packages/@react-spectrum/overlays/stories/Modal.stories.tsx +++ b/packages/@react-spectrum/overlays/stories/Modal.stories.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {ActionButton, Button} from '@react-spectrum/button'; import {Dialog, DialogTrigger} from '@react-spectrum/dialog'; import {Modal} from '../'; @@ -5,6 +17,7 @@ import React, {Fragment, useState} from 'react'; import {storiesOf} from '@storybook/react'; storiesOf('Modal', module) + .addParameters({providerSwitcher: {status: 'notice'}}) .addParameters({chromatic: {disable: true}}) .add( 'default', diff --git a/packages/@react-spectrum/overlays/test/Modal.test.js b/packages/@react-spectrum/overlays/test/Modal.test.js index 820fdd9516f..9e61dd1eb85 100644 --- a/packages/@react-spectrum/overlays/test/Modal.test.js +++ b/packages/@react-spectrum/overlays/test/Modal.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, fireEvent, render, waitForDomChange} from '@testing-library/react'; import {Modal} from '../'; import {Provider} from '@react-spectrum/provider'; diff --git a/packages/@react-spectrum/overlays/test/Overlay.test.js b/packages/@react-spectrum/overlays/test/Overlay.test.js index 1027f9b3e23..f0818509c62 100644 --- a/packages/@react-spectrum/overlays/test/Overlay.test.js +++ b/packages/@react-spectrum/overlays/test/Overlay.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, render} from '@testing-library/react'; import {Overlay} from '../'; import {Provider} from '@react-spectrum/provider'; diff --git a/packages/@react-spectrum/overlays/test/Popover.test.js b/packages/@react-spectrum/overlays/test/Popover.test.js index f7fb88c58a8..e89e800f9ae 100644 --- a/packages/@react-spectrum/overlays/test/Popover.test.js +++ b/packages/@react-spectrum/overlays/test/Popover.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, fireEvent, render} from '@testing-library/react'; import {Dialog} from '@react-spectrum/dialog'; import {Popover} from '../'; diff --git a/packages/@react-spectrum/overlays/test/Tray.test.js b/packages/@react-spectrum/overlays/test/Tray.test.js index f3cde59c862..d9e7044d06c 100644 --- a/packages/@react-spectrum/overlays/test/Tray.test.js +++ b/packages/@react-spectrum/overlays/test/Tray.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, fireEvent, render, waitForDomChange} from '@testing-library/react'; import {Provider} from '@react-spectrum/provider'; import React from 'react'; diff --git a/packages/@react-spectrum/pagination/index.ts b/packages/@react-spectrum/pagination/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-spectrum/pagination/index.ts +++ b/packages/@react-spectrum/pagination/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-spectrum/pagination/intl/index.js b/packages/@react-spectrum/pagination/intl/index.js index 7552b53ba9e..ab42abafdb9 100644 --- a/packages/@react-spectrum/pagination/intl/index.js +++ b/packages/@react-spectrum/pagination/intl/index.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import csCZ from './cs-CZ.json'; import daDK from './da-DK.json'; import deDE from './de-DE.json'; diff --git a/packages/@react-spectrum/pagination/package.json b/packages/@react-spectrum/pagination/package.json index 3d0a901ba64..05dd2d92843 100644 --- a/packages/@react-spectrum/pagination/package.json +++ b/packages/@react-spectrum/pagination/package.json @@ -2,6 +2,7 @@ "name": "@react-spectrum/pagination", "version": "3.0.0-alpha.2", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -24,7 +25,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-spectrum/pagination/src/Pagination.tsx b/packages/@react-spectrum/pagination/src/Pagination.tsx index f7dd8964518..703be383729 100644 --- a/packages/@react-spectrum/pagination/src/Pagination.tsx +++ b/packages/@react-spectrum/pagination/src/Pagination.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {ActionButton} from '@react-spectrum/button'; import ChevronLeftMedium from '@spectrum-icons/ui/ChevronLeftMedium'; import ChevronRightMedium from '@spectrum-icons/ui/ChevronRightMedium'; diff --git a/packages/@react-spectrum/pagination/src/index.ts b/packages/@react-spectrum/pagination/src/index.ts index e016c96b72e..ce4d5225ea4 100644 --- a/packages/@react-spectrum/pagination/src/index.ts +++ b/packages/@react-spectrum/pagination/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './Pagination'; diff --git a/packages/@react-spectrum/pagination/stories/pagination.stories.js b/packages/@react-spectrum/pagination/stories/pagination.stories.js index 0955cb9a750..e2e64bafd82 100644 --- a/packages/@react-spectrum/pagination/stories/pagination.stories.js +++ b/packages/@react-spectrum/pagination/stories/pagination.stories.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {action} from '@storybook/addon-actions'; import {PaginationInput} from '../'; import React from 'react'; diff --git a/packages/@react-spectrum/progress/index.ts b/packages/@react-spectrum/progress/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-spectrum/progress/index.ts +++ b/packages/@react-spectrum/progress/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-spectrum/progress/package.json b/packages/@react-spectrum/progress/package.json index 189c19ce80c..fe3284b3cad 100644 --- a/packages/@react-spectrum/progress/package.json +++ b/packages/@react-spectrum/progress/package.json @@ -2,6 +2,7 @@ "name": "@react-spectrum/progress", "version": "3.0.0-rc.1", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -24,7 +25,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-spectrum/progress/src/ProgressBar.tsx b/packages/@react-spectrum/progress/src/ProgressBar.tsx index d063fa3d924..13515328d77 100644 --- a/packages/@react-spectrum/progress/src/ProgressBar.tsx +++ b/packages/@react-spectrum/progress/src/ProgressBar.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {classNames} from '@react-spectrum/utils'; import {DOMRef} from '@react-types/shared'; import {ProgressBarBase} from './ProgressBarBase'; diff --git a/packages/@react-spectrum/progress/src/ProgressBarBase.tsx b/packages/@react-spectrum/progress/src/ProgressBarBase.tsx index 37c4c1454bc..793c5a6de20 100644 --- a/packages/@react-spectrum/progress/src/ProgressBarBase.tsx +++ b/packages/@react-spectrum/progress/src/ProgressBarBase.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {clamp} from '@react-aria/utils'; import {classNames, filterDOMProps, useDOMRef, useStyleProps} from '@react-spectrum/utils'; import {DOMRef} from '@react-types/shared'; diff --git a/packages/@react-spectrum/progress/src/ProgressCircle.tsx b/packages/@react-spectrum/progress/src/ProgressCircle.tsx index 5fd88e9876e..95c0ad47a5e 100644 --- a/packages/@react-spectrum/progress/src/ProgressCircle.tsx +++ b/packages/@react-spectrum/progress/src/ProgressCircle.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {clamp} from '@react-aria/utils'; import {classNames, filterDOMProps, useDOMRef, useStyleProps} from '@react-spectrum/utils'; import {DOMRef} from '@react-types/shared'; diff --git a/packages/@react-spectrum/progress/src/index.ts b/packages/@react-spectrum/progress/src/index.ts index 1cdbe9fa789..f8883f68c57 100644 --- a/packages/@react-spectrum/progress/src/index.ts +++ b/packages/@react-spectrum/progress/src/index.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './ProgressBar'; export * from './ProgressCircle'; export * from './ProgressBarBase'; diff --git a/packages/@react-spectrum/progress/stories/ProgressBar.stories.tsx b/packages/@react-spectrum/progress/stories/ProgressBar.stories.tsx index ab418cb4219..8cebb52a15f 100644 --- a/packages/@react-spectrum/progress/stories/ProgressBar.stories.tsx +++ b/packages/@react-spectrum/progress/stories/ProgressBar.stories.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {number, withKnobs} from '@storybook/addon-knobs'; import {ProgressBar} from '../'; import React, {CSSProperties} from 'react'; @@ -25,6 +37,7 @@ const grayedBoxStyle: CSSProperties = { }; storiesOf('Progress/ProgressBar', module) + .addParameters({providerSwitcher: {status: 'positive'}}) .addDecorator(withKnobs) .add( 'Default', diff --git a/packages/@react-spectrum/progress/stories/ProgressCircle.stories.tsx b/packages/@react-spectrum/progress/stories/ProgressCircle.stories.tsx index 2eaabb7e433..505e5afcfb2 100644 --- a/packages/@react-spectrum/progress/stories/ProgressCircle.stories.tsx +++ b/packages/@react-spectrum/progress/stories/ProgressCircle.stories.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {number, withKnobs} from '@storybook/addon-knobs'; import {ProgressCircle} from '../'; import React, {CSSProperties} from 'react'; @@ -20,6 +32,7 @@ const grayedBoxStyle: CSSProperties = { }; storiesOf('Progress/ProgressCircle', module) + .addParameters({providerSwitcher: {status: 'positive'}}) .addDecorator(withKnobs) .add( 'Default', diff --git a/packages/@react-spectrum/progress/test/ProgressBar.test.js b/packages/@react-spectrum/progress/test/ProgressBar.test.js index 455ad42ae31..529d1bf06a5 100644 --- a/packages/@react-spectrum/progress/test/ProgressBar.test.js +++ b/packages/@react-spectrum/progress/test/ProgressBar.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, render} from '@testing-library/react'; import {ProgressBar} from '../'; import React from 'react'; diff --git a/packages/@react-spectrum/progress/test/ProgressCircle.test.js b/packages/@react-spectrum/progress/test/ProgressCircle.test.js index 0a4f7e61628..e559b7c06e7 100644 --- a/packages/@react-spectrum/progress/test/ProgressCircle.test.js +++ b/packages/@react-spectrum/progress/test/ProgressCircle.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, render} from '@testing-library/react'; import {ProgressCircle} from '../'; import React from 'react'; diff --git a/packages/@react-spectrum/provider/index.ts b/packages/@react-spectrum/provider/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-spectrum/provider/index.ts +++ b/packages/@react-spectrum/provider/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-spectrum/provider/package.json b/packages/@react-spectrum/provider/package.json index 0c7917c2e55..72aaa52a613 100644 --- a/packages/@react-spectrum/provider/package.json +++ b/packages/@react-spectrum/provider/package.json @@ -2,6 +2,7 @@ "name": "@react-spectrum/provider", "version": "3.0.0-rc.1", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -24,7 +25,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-spectrum/provider/src/Provider.tsx b/packages/@react-spectrum/provider/src/Provider.tsx index 86bdd5ace94..8111b69a402 100644 --- a/packages/@react-spectrum/provider/src/Provider.tsx +++ b/packages/@react-spectrum/provider/src/Provider.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import classNames from 'classnames'; import configureTypekit from './configureTypekit'; import {DOMRef} from '@react-types/shared'; diff --git a/packages/@react-spectrum/provider/src/configureTypekit.js b/packages/@react-spectrum/provider/src/configureTypekit.js index ccfdaaf9f7a..8d69acd311d 100644 --- a/packages/@react-spectrum/provider/src/configureTypekit.js +++ b/packages/@react-spectrum/provider/src/configureTypekit.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + const loadingTypekitIds = new Set(); export default function configureTypekit(typeKitId) { diff --git a/packages/@react-spectrum/provider/src/index.ts b/packages/@react-spectrum/provider/src/index.ts index 505094109df..a522801b489 100644 --- a/packages/@react-spectrum/provider/src/index.ts +++ b/packages/@react-spectrum/provider/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './Provider'; diff --git a/packages/@react-spectrum/provider/src/mediaQueries.ts b/packages/@react-spectrum/provider/src/mediaQueries.ts index 1bec7ff080b..d02cc2456ef 100644 --- a/packages/@react-spectrum/provider/src/mediaQueries.ts +++ b/packages/@react-spectrum/provider/src/mediaQueries.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {ColorScheme, Scale} from '@react-types/provider'; import {Theme} from '@react-types/provider'; import {useMediaQuery} from '@react-spectrum/utils'; diff --git a/packages/@react-spectrum/provider/stories/Provider.stories.tsx b/packages/@react-spectrum/provider/stories/Provider.stories.tsx index 2c0c7de0f8e..8b15c49dc2e 100644 --- a/packages/@react-spectrum/provider/stories/Provider.stories.tsx +++ b/packages/@react-spectrum/provider/stories/Provider.stories.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {Button} from '@react-spectrum/button'; import {Checkbox} from '@react-spectrum/checkbox'; import customTheme from './custom-theme.css'; @@ -19,6 +31,7 @@ const THEME = { }; storiesOf('Provider', module) + .addParameters({providerSwitcher: {status: 'positive'}}) .add( 'colorScheme: dark', () => render({colorScheme: 'dark', style: {padding: 50, textAlign: 'center', width: 500}}) diff --git a/packages/@react-spectrum/provider/stories/custom-theme.css b/packages/@react-spectrum/provider/stories/custom-theme.css index d9bdcd01ce1..d7d16ac83f1 100644 --- a/packages/@react-spectrum/provider/stories/custom-theme.css +++ b/packages/@react-spectrum/provider/stories/custom-theme.css @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + .theme { /* Global overrides */ --spectrum-global-color-gray-800: hotpink; diff --git a/packages/@react-spectrum/radio/docs/Radio.mdx b/packages/@react-spectrum/radio/docs/Radio.mdx index 3ee4b537223..b8486540bf4 100644 --- a/packages/@react-spectrum/radio/docs/Radio.mdx +++ b/packages/@react-spectrum/radio/docs/Radio.mdx @@ -1,3 +1,12 @@ + + import {Layout} from '@react-spectrum/docs'; export default Layout; diff --git a/packages/@react-spectrum/radio/index.ts b/packages/@react-spectrum/radio/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-spectrum/radio/index.ts +++ b/packages/@react-spectrum/radio/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-spectrum/radio/package.json b/packages/@react-spectrum/radio/package.json index c59cdd2d814..60706ec9f01 100644 --- a/packages/@react-spectrum/radio/package.json +++ b/packages/@react-spectrum/radio/package.json @@ -2,6 +2,7 @@ "name": "@react-spectrum/radio", "version": "3.0.0-rc.1", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -24,7 +25,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-spectrum/radio/src/Radio.tsx b/packages/@react-spectrum/radio/src/Radio.tsx index d888816243b..a80c11ee242 100644 --- a/packages/@react-spectrum/radio/src/Radio.tsx +++ b/packages/@react-spectrum/radio/src/Radio.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {classNames, filterDOMProps, useFocusableRef, useStyleProps} from '@react-spectrum/utils'; import {FocusableRef} from '@react-types/shared'; import {FocusRing} from '@react-aria/focus'; diff --git a/packages/@react-spectrum/radio/src/RadioGroup.tsx b/packages/@react-spectrum/radio/src/RadioGroup.tsx index 3431bcc9a84..6d4af923c5c 100644 --- a/packages/@react-spectrum/radio/src/RadioGroup.tsx +++ b/packages/@react-spectrum/radio/src/RadioGroup.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {classNames, filterDOMProps, useDOMRef, useStyleProps} from '@react-spectrum/utils'; import {DOMRef, LabelPosition} from '@react-types/shared'; import {Label} from '@react-spectrum/label'; diff --git a/packages/@react-spectrum/radio/src/index.ts b/packages/@react-spectrum/radio/src/index.ts index e047ad0922c..9801b63cbdc 100644 --- a/packages/@react-spectrum/radio/src/index.ts +++ b/packages/@react-spectrum/radio/src/index.ts @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './Radio'; export * from './RadioGroup'; diff --git a/packages/@react-spectrum/radio/stories/Radio.stories.tsx b/packages/@react-spectrum/radio/stories/Radio.stories.tsx index 6567e190cc6..b74f8d495d2 100644 --- a/packages/@react-spectrum/radio/stories/Radio.stories.tsx +++ b/packages/@react-spectrum/radio/stories/Radio.stories.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {action} from '@storybook/addon-actions'; import {Provider} from '@react-spectrum/provider'; import {Radio, RadioGroup} from '../src'; @@ -5,6 +17,7 @@ import React from 'react'; import {storiesOf} from '@storybook/react'; storiesOf('RadioGroup', module) + .addParameters({providerSwitcher: {status: 'positive'}}) .add( 'default', () => render({}) diff --git a/packages/@react-spectrum/radio/test/Radio.test.js b/packages/@react-spectrum/radio/test/Radio.test.js index 14a429c7398..76c9f02149f 100644 --- a/packages/@react-spectrum/radio/test/Radio.test.js +++ b/packages/@react-spectrum/radio/test/Radio.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, render} from '@testing-library/react'; import {Provider} from '@react-spectrum/provider'; import {Radio, RadioGroup} from '../'; diff --git a/packages/@react-spectrum/searchfield/index.ts b/packages/@react-spectrum/searchfield/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-spectrum/searchfield/index.ts +++ b/packages/@react-spectrum/searchfield/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-spectrum/searchfield/package.json b/packages/@react-spectrum/searchfield/package.json index 96be4fa64b6..fd5afeaa065 100644 --- a/packages/@react-spectrum/searchfield/package.json +++ b/packages/@react-spectrum/searchfield/package.json @@ -2,6 +2,7 @@ "name": "@react-spectrum/searchfield", "version": "3.0.0-rc.1", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -24,7 +25,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-spectrum/searchfield/src/SearchField.tsx b/packages/@react-spectrum/searchfield/src/SearchField.tsx index 9d508e314f5..57b31c5bc5f 100644 --- a/packages/@react-spectrum/searchfield/src/SearchField.tsx +++ b/packages/@react-spectrum/searchfield/src/SearchField.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {classNames} from '@react-spectrum/utils'; import {ClearButton} from '@react-spectrum/button'; import Magnifier from '@spectrum-icons/ui/Magnifier'; diff --git a/packages/@react-spectrum/searchfield/src/index.ts b/packages/@react-spectrum/searchfield/src/index.ts index 9f5ef334723..034aa20819e 100644 --- a/packages/@react-spectrum/searchfield/src/index.ts +++ b/packages/@react-spectrum/searchfield/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './SearchField'; diff --git a/packages/@react-spectrum/searchfield/stories/SearchField.stories.js b/packages/@react-spectrum/searchfield/stories/SearchField.stories.js index e2eb4225529..e4df6b0bd69 100644 --- a/packages/@react-spectrum/searchfield/stories/SearchField.stories.js +++ b/packages/@react-spectrum/searchfield/stories/SearchField.stories.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {action} from '@storybook/addon-actions'; import React from 'react'; import Refresh from '@spectrum-icons/workflow/Refresh'; @@ -7,6 +19,7 @@ import {storiesOf} from '@storybook/react'; const info = 'A containing element with `role="search"` has been added to define a **search** landmark region.'; storiesOf('SearchField', module) + .addParameters({providerSwitcher: {status: 'positive'}}) .add( 'Default', () => renderSearchLandmark(render()), diff --git a/packages/@react-spectrum/searchfield/test/SearchField.test.js b/packages/@react-spectrum/searchfield/test/SearchField.test.js index 81a8e10d1fe..283bde99ab2 100644 --- a/packages/@react-spectrum/searchfield/test/SearchField.test.js +++ b/packages/@react-spectrum/searchfield/test/SearchField.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import Checkmark from '@spectrum-icons/workflow/Checkmark'; import {cleanup, fireEvent, render, within} from '@testing-library/react'; import React from 'react'; diff --git a/packages/@react-spectrum/sidenav/index.ts b/packages/@react-spectrum/sidenav/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-spectrum/sidenav/index.ts +++ b/packages/@react-spectrum/sidenav/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-spectrum/sidenav/package.json b/packages/@react-spectrum/sidenav/package.json index a4d7a2d847b..fe9668ada7d 100644 --- a/packages/@react-spectrum/sidenav/package.json +++ b/packages/@react-spectrum/sidenav/package.json @@ -3,6 +3,7 @@ "version": "3.0.0-alpha.1", "private": true, "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -19,7 +20,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-spectrum/sidenav/src/SideNav.tsx b/packages/@react-spectrum/sidenav/src/SideNav.tsx index bd298716958..7648a2184f0 100644 --- a/packages/@react-spectrum/sidenav/src/SideNav.tsx +++ b/packages/@react-spectrum/sidenav/src/SideNav.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {classNames, filterDOMProps, useStyleProps} from '@react-spectrum/utils'; import {CollectionBase, Expandable, SingleSelectionBase, StyleProps} from '@react-types/shared'; import {CollectionView} from '@react-aria/collections'; diff --git a/packages/@react-spectrum/sidenav/src/index.ts b/packages/@react-spectrum/sidenav/src/index.ts index caaad63a915..50e262373ce 100644 --- a/packages/@react-spectrum/sidenav/src/index.ts +++ b/packages/@react-spectrum/sidenav/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './SideNav'; diff --git a/packages/@react-spectrum/sidenav/stories/SideNav.css b/packages/@react-spectrum/sidenav/stories/SideNav.css index cffd0712e0b..b4da5806433 100644 --- a/packages/@react-spectrum/sidenav/stories/SideNav.css +++ b/packages/@react-spectrum/sidenav/stories/SideNav.css @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + .storybook-SideNav { height: 400px; width: 200px; diff --git a/packages/@react-spectrum/sidenav/stories/SideNav.stories.tsx b/packages/@react-spectrum/sidenav/stories/SideNav.stories.tsx index 80aa163158f..c330bae2e80 100644 --- a/packages/@react-spectrum/sidenav/stories/SideNav.stories.tsx +++ b/packages/@react-spectrum/sidenav/stories/SideNav.stories.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {action} from '@storybook/addon-actions'; import {Item, Section} from '@react-spectrum/tree'; import React from 'react'; diff --git a/packages/@react-spectrum/sidenav/test/SideNav.test.js b/packages/@react-spectrum/sidenav/test/SideNav.test.js index 5bc3d53a848..a5e579d1346 100644 --- a/packages/@react-spectrum/sidenav/test/SideNav.test.js +++ b/packages/@react-spectrum/sidenav/test/SideNav.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, render, waitForDomChange} from '@testing-library/react'; import {Item} from '@react-spectrum/tree'; import {Provider} from '@react-spectrum/provider'; diff --git a/packages/@react-spectrum/splitview/index.ts b/packages/@react-spectrum/splitview/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-spectrum/splitview/index.ts +++ b/packages/@react-spectrum/splitview/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-spectrum/splitview/package.json b/packages/@react-spectrum/splitview/package.json index cf9d1db6f6e..44cc05135c6 100644 --- a/packages/@react-spectrum/splitview/package.json +++ b/packages/@react-spectrum/splitview/package.json @@ -2,6 +2,7 @@ "name": "@react-spectrum/splitview", "version": "3.0.0-alpha.2", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -24,7 +25,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@adobe/focus-ring-polyfill": "^0.x", diff --git a/packages/@react-spectrum/splitview/src/SplitView.css b/packages/@react-spectrum/splitview/src/SplitView.css index 04384148ff7..4b6769120d9 100644 --- a/packages/@react-spectrum/splitview/src/SplitView.css +++ b/packages/@react-spectrum/splitview/src/SplitView.css @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + .react-spectrum-SplitView--horizontal:after { content: ''; position: absolute; diff --git a/packages/@react-spectrum/splitview/src/SplitView.tsx b/packages/@react-spectrum/splitview/src/SplitView.tsx index 55d20cc3507..c4ac598ebb4 100644 --- a/packages/@react-spectrum/splitview/src/SplitView.tsx +++ b/packages/@react-spectrum/splitview/src/SplitView.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {classNames, useStyleProps} from '@react-spectrum/utils'; import {DOMProps, SplitViewProps, StyleProps} from '@react-types/shared'; import React, {useRef} from 'react'; diff --git a/packages/@react-spectrum/splitview/src/index.ts b/packages/@react-spectrum/splitview/src/index.ts index 2032b001d88..d8116a48228 100644 --- a/packages/@react-spectrum/splitview/src/index.ts +++ b/packages/@react-spectrum/splitview/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './SplitView'; diff --git a/packages/@react-spectrum/splitview/stories/SplitView.css b/packages/@react-spectrum/splitview/stories/SplitView.css index 012f900c2cf..fd79f01f963 100644 --- a/packages/@react-spectrum/splitview/stories/SplitView.css +++ b/packages/@react-spectrum/splitview/stories/SplitView.css @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + .storybook-SplitView { height: 200px; } diff --git a/packages/@react-spectrum/splitview/stories/SplitView.stories.js b/packages/@react-spectrum/splitview/stories/SplitView.stories.js index 3cbab48504c..d906d553821 100644 --- a/packages/@react-spectrum/splitview/stories/SplitView.stories.js +++ b/packages/@react-spectrum/splitview/stories/SplitView.stories.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {action} from '@storybook/addon-actions'; import React from 'react'; import {SplitView} from '../'; diff --git a/packages/@react-spectrum/splitview/test/SplitView.test.js b/packages/@react-spectrum/splitview/test/SplitView.test.js index 328ddc8b422..6ac2b1db59a 100644 --- a/packages/@react-spectrum/splitview/test/SplitView.test.js +++ b/packages/@react-spectrum/splitview/test/SplitView.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, fireEvent, render} from '@testing-library/react'; import React from 'react'; import {SplitView} from '../'; diff --git a/packages/@react-spectrum/statuslight/index.ts b/packages/@react-spectrum/statuslight/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-spectrum/statuslight/index.ts +++ b/packages/@react-spectrum/statuslight/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-spectrum/statuslight/package.json b/packages/@react-spectrum/statuslight/package.json index 8f9a412a8cb..eded42f2d9c 100644 --- a/packages/@react-spectrum/statuslight/package.json +++ b/packages/@react-spectrum/statuslight/package.json @@ -2,6 +2,7 @@ "name": "@react-spectrum/statuslight", "version": "3.0.0-rc.1", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -24,7 +25,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-spectrum/statuslight/src/StatusLight.tsx b/packages/@react-spectrum/statuslight/src/StatusLight.tsx index 7405cd299c6..c2ccfd859c2 100644 --- a/packages/@react-spectrum/statuslight/src/StatusLight.tsx +++ b/packages/@react-spectrum/statuslight/src/StatusLight.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {classNames, filterDOMProps, useDOMRef, useStyleProps} from '@react-spectrum/utils'; import {DOMRef} from '@react-types/shared'; import React, {forwardRef} from 'react'; diff --git a/packages/@react-spectrum/statuslight/src/index.ts b/packages/@react-spectrum/statuslight/src/index.ts index dd61d1e9f08..cf4d2d8fcd8 100644 --- a/packages/@react-spectrum/statuslight/src/index.ts +++ b/packages/@react-spectrum/statuslight/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './StatusLight'; diff --git a/packages/@react-spectrum/statuslight/stories/StatusLight.stories.tsx b/packages/@react-spectrum/statuslight/stories/StatusLight.stories.tsx index d5cecf2f04b..b04921a0bd4 100644 --- a/packages/@react-spectrum/statuslight/stories/StatusLight.stories.tsx +++ b/packages/@react-spectrum/statuslight/stories/StatusLight.stories.tsx @@ -1,8 +1,21 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import React from 'react'; import {StatusLight} from '../'; import {storiesOf} from '@storybook/react'; storiesOf('StatusLight', module) + .addParameters({providerSwitcher: {status: 'positive'}}) .add( 'variant: celery', () => render({variant: 'celery'}) diff --git a/packages/@react-spectrum/statuslight/test/StatusLight.test.js b/packages/@react-spectrum/statuslight/test/StatusLight.test.js index 1e2fc91cdfa..480b7c6e28d 100644 --- a/packages/@react-spectrum/statuslight/test/StatusLight.test.js +++ b/packages/@react-spectrum/statuslight/test/StatusLight.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, render} from '@testing-library/react'; import React from 'react'; import {StatusLight} from '../'; diff --git a/packages/@react-spectrum/switch/index.ts b/packages/@react-spectrum/switch/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-spectrum/switch/index.ts +++ b/packages/@react-spectrum/switch/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-spectrum/switch/package.json b/packages/@react-spectrum/switch/package.json index 9141b717bb3..d331cd49500 100644 --- a/packages/@react-spectrum/switch/package.json +++ b/packages/@react-spectrum/switch/package.json @@ -2,6 +2,7 @@ "name": "@react-spectrum/switch", "version": "3.0.0-rc.1", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -24,7 +25,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-spectrum/switch/src/Switch.tsx b/packages/@react-spectrum/switch/src/Switch.tsx index 10b93e23003..6cb68ae03b3 100644 --- a/packages/@react-spectrum/switch/src/Switch.tsx +++ b/packages/@react-spectrum/switch/src/Switch.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {classNames, filterDOMProps, useFocusableRef, useStyleProps} from '@react-spectrum/utils'; import {FocusableRef} from '@react-types/shared'; import {FocusRing} from '@react-aria/focus'; diff --git a/packages/@react-spectrum/switch/src/index.ts b/packages/@react-spectrum/switch/src/index.ts index 1b19c1d39c3..e171609a37d 100644 --- a/packages/@react-spectrum/switch/src/index.ts +++ b/packages/@react-spectrum/switch/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './Switch'; diff --git a/packages/@react-spectrum/switch/stories/Switch.stories.tsx b/packages/@react-spectrum/switch/stories/Switch.stories.tsx index 2d66759bbae..374adc88b02 100644 --- a/packages/@react-spectrum/switch/stories/Switch.stories.tsx +++ b/packages/@react-spectrum/switch/stories/Switch.stories.tsx @@ -1,9 +1,22 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {action} from '@storybook/addon-actions'; import React from 'react'; import {storiesOf} from '@storybook/react'; import {Switch} from '../'; storiesOf('Switch', module) + .addParameters({providerSwitcher: {status: 'positive'}}) .add( 'Default', () => render() diff --git a/packages/@react-spectrum/switch/test/Switch.test.js b/packages/@react-spectrum/switch/test/Switch.test.js index 101f954f9f4..55911e76be9 100644 --- a/packages/@react-spectrum/switch/test/Switch.test.js +++ b/packages/@react-spectrum/switch/test/Switch.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, render} from '@testing-library/react'; import React from 'react'; import {Switch} from '../'; diff --git a/packages/@react-spectrum/tabs/index.ts b/packages/@react-spectrum/tabs/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-spectrum/tabs/index.ts +++ b/packages/@react-spectrum/tabs/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-spectrum/tabs/package.json b/packages/@react-spectrum/tabs/package.json index 0d36242c614..ec72993379c 100644 --- a/packages/@react-spectrum/tabs/package.json +++ b/packages/@react-spectrum/tabs/package.json @@ -2,6 +2,7 @@ "name": "@react-spectrum/tabs", "version": "3.0.0-alpha.2", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -24,7 +25,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-spectrum/tabs/src/Tab.tsx b/packages/@react-spectrum/tabs/src/Tab.tsx index 10f323c1632..802c5c8fe9b 100644 --- a/packages/@react-spectrum/tabs/src/Tab.tsx +++ b/packages/@react-spectrum/tabs/src/Tab.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {classNames, filterDOMProps, useStyleProps} from '@react-spectrum/utils'; import {DOMProps, StyleProps} from '@react-types/shared'; import React, {ReactNode} from 'react'; diff --git a/packages/@react-spectrum/tabs/src/TabList.tsx b/packages/@react-spectrum/tabs/src/TabList.tsx index 7febabaae4f..32ff0b49ccb 100644 --- a/packages/@react-spectrum/tabs/src/TabList.tsx +++ b/packages/@react-spectrum/tabs/src/TabList.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {classNames, filterDOMProps, useStyleProps} from '@react-spectrum/utils'; import {DOMProps, Orientation, StyleProps} from '@react-types/shared'; import React, {ReactElement, ReactNode, useEffect, useRef, useState} from 'react'; diff --git a/packages/@react-spectrum/tabs/src/Tabs.tsx b/packages/@react-spectrum/tabs/src/Tabs.tsx index ce8d8570446..fc4a95ff496 100644 --- a/packages/@react-spectrum/tabs/src/Tabs.tsx +++ b/packages/@react-spectrum/tabs/src/Tabs.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {classNames, filterDOMProps, useStyleProps} from '@react-spectrum/utils'; import {DOMProps, Orientation, StyleProps} from '@react-types/shared'; import React, {ReactElement, ReactNode} from 'react'; diff --git a/packages/@react-spectrum/tabs/src/index.ts b/packages/@react-spectrum/tabs/src/index.ts index f09a8a1caa0..ae97e9a8086 100644 --- a/packages/@react-spectrum/tabs/src/index.ts +++ b/packages/@react-spectrum/tabs/src/index.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './TabList'; export * from './Tab'; export * from './Tabs'; diff --git a/packages/@react-spectrum/tabs/stories/TabList.stories.js b/packages/@react-spectrum/tabs/stories/TabList.stories.js index c51d1acc437..0570c29c458 100644 --- a/packages/@react-spectrum/tabs/stories/TabList.stories.js +++ b/packages/@react-spectrum/tabs/stories/TabList.stories.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {action} from '@storybook/addon-actions'; import React from 'react'; import {storiesOf} from '@storybook/react'; diff --git a/packages/@react-spectrum/tabs/stories/Tabs.stories.js b/packages/@react-spectrum/tabs/stories/Tabs.stories.js index 5fa6b744504..fff9f4d9393 100644 --- a/packages/@react-spectrum/tabs/stories/Tabs.stories.js +++ b/packages/@react-spectrum/tabs/stories/Tabs.stories.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {action} from '@storybook/addon-actions'; import React from 'react'; import {storiesOf} from '@storybook/react'; diff --git a/packages/@react-spectrum/tabs/style/index.css b/packages/@react-spectrum/tabs/style/index.css index c020d9657e2..dccd5661d68 100644 --- a/packages/@react-spectrum/tabs/style/index.css +++ b/packages/@react-spectrum/tabs/style/index.css @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + .react-spectrum-TabPanel { display: flex; flex-direction: column; diff --git a/packages/@react-spectrum/tag/index.ts b/packages/@react-spectrum/tag/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-spectrum/tag/index.ts +++ b/packages/@react-spectrum/tag/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-spectrum/tag/package.json b/packages/@react-spectrum/tag/package.json index 4eeea668f66..5f8c44dd913 100644 --- a/packages/@react-spectrum/tag/package.json +++ b/packages/@react-spectrum/tag/package.json @@ -2,6 +2,7 @@ "name": "@react-spectrum/tag", "version": "3.0.0-alpha.2", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -24,7 +25,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-spectrum/tag/src/Tag.tsx b/packages/@react-spectrum/tag/src/Tag.tsx index 24fab737688..6bdc5f3c7f3 100644 --- a/packages/@react-spectrum/tag/src/Tag.tsx +++ b/packages/@react-spectrum/tag/src/Tag.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import Alert from '@spectrum-icons/workflow/Alert'; import {classNames, filterDOMProps, useStyleProps} from '@react-spectrum/utils'; import {ClearButton} from '@react-spectrum/button'; diff --git a/packages/@react-spectrum/tag/src/TagGroup.tsx b/packages/@react-spectrum/tag/src/TagGroup.tsx index 49535c25c17..bd29f195a22 100644 --- a/packages/@react-spectrum/tag/src/TagGroup.tsx +++ b/packages/@react-spectrum/tag/src/TagGroup.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {classNames, filterDOMProps, useStyleProps} from '@react-spectrum/utils'; import React, {useContext} from 'react'; import {Removable} from '@react-types/shared'; diff --git a/packages/@react-spectrum/tag/src/index.ts b/packages/@react-spectrum/tag/src/index.ts index e50e63c2baa..f5e44e9300f 100644 --- a/packages/@react-spectrum/tag/src/index.ts +++ b/packages/@react-spectrum/tag/src/index.ts @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './Tag'; export * from './TagGroup'; diff --git a/packages/@react-spectrum/tag/stories/Tag.stories.tsx b/packages/@react-spectrum/tag/stories/Tag.stories.tsx index d2a7ce19927..baa11b1ea2b 100644 --- a/packages/@react-spectrum/tag/stories/Tag.stories.tsx +++ b/packages/@react-spectrum/tag/stories/Tag.stories.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {action} from '@storybook/addon-actions'; import Camera from '@spectrum-icons/workflow/Camera'; import React from 'react'; diff --git a/packages/@react-spectrum/tag/stories/TagGroup.stories.tsx b/packages/@react-spectrum/tag/stories/TagGroup.stories.tsx index 13210930ba6..f21148150f6 100644 --- a/packages/@react-spectrum/tag/stories/TagGroup.stories.tsx +++ b/packages/@react-spectrum/tag/stories/TagGroup.stories.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {action} from '@storybook/addon-actions'; import React, {useState} from 'react'; import {storiesOf} from '@storybook/react'; diff --git a/packages/@react-spectrum/tag/test/Tag.test.js b/packages/@react-spectrum/tag/test/Tag.test.js index 5f1b184b129..0e2df701e08 100644 --- a/packages/@react-spectrum/tag/test/Tag.test.js +++ b/packages/@react-spectrum/tag/test/Tag.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, render} from '@testing-library/react'; import {fireEvent} from '@testing-library/react'; import React from 'react'; diff --git a/packages/@react-spectrum/tag/test/TagGroup.test.js b/packages/@react-spectrum/tag/test/TagGroup.test.js index f3f4cfe9825..cc0dd5126ac 100644 --- a/packages/@react-spectrum/tag/test/TagGroup.test.js +++ b/packages/@react-spectrum/tag/test/TagGroup.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, render} from '@testing-library/react'; import {fireEvent} from '@testing-library/react'; import React from 'react'; diff --git a/packages/@react-spectrum/test-utils/index.ts b/packages/@react-spectrum/test-utils/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-spectrum/test-utils/index.ts +++ b/packages/@react-spectrum/test-utils/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-spectrum/test-utils/package.json b/packages/@react-spectrum/test-utils/package.json index e24351a8bf1..18a4602c38b 100644 --- a/packages/@react-spectrum/test-utils/package.json +++ b/packages/@react-spectrum/test-utils/package.json @@ -3,6 +3,7 @@ "version": "3.0.0-alpha.2", "private": true, "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -13,7 +14,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2" diff --git a/packages/@react-spectrum/test-utils/src/index.ts b/packages/@react-spectrum/test-utils/src/index.ts index bef63968bec..41db0c7cfe0 100644 --- a/packages/@react-spectrum/test-utils/src/index.ts +++ b/packages/@react-spectrum/test-utils/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './triggerPress'; diff --git a/packages/@react-spectrum/test-utils/src/triggerPress.js b/packages/@react-spectrum/test-utils/src/triggerPress.js index c80da97cd7c..905ca53492c 100644 --- a/packages/@react-spectrum/test-utils/src/triggerPress.js +++ b/packages/@react-spectrum/test-utils/src/triggerPress.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {fireEvent} from '@testing-library/react'; // Triggers a "press" event on an element. diff --git a/packages/@react-spectrum/textfield/docs/TextField.mdx b/packages/@react-spectrum/textfield/docs/TextField.mdx index cac4618f5ff..e345c0ef98f 100644 --- a/packages/@react-spectrum/textfield/docs/TextField.mdx +++ b/packages/@react-spectrum/textfield/docs/TextField.mdx @@ -1,3 +1,12 @@ + + import {Layout} from '@react-spectrum/docs'; export default Layout; diff --git a/packages/@react-spectrum/textfield/index.ts b/packages/@react-spectrum/textfield/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-spectrum/textfield/index.ts +++ b/packages/@react-spectrum/textfield/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-spectrum/textfield/package.json b/packages/@react-spectrum/textfield/package.json index 7913f236e3a..68f3442af9a 100644 --- a/packages/@react-spectrum/textfield/package.json +++ b/packages/@react-spectrum/textfield/package.json @@ -2,6 +2,7 @@ "name": "@react-spectrum/textfield", "version": "3.0.0-rc.1", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -24,7 +25,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-spectrum/textfield/src/TextArea.tsx b/packages/@react-spectrum/textfield/src/TextArea.tsx index 334fe881aad..0657ea3b62c 100644 --- a/packages/@react-spectrum/textfield/src/TextArea.tsx +++ b/packages/@react-spectrum/textfield/src/TextArea.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {chain} from '@react-aria/utils'; import React, {RefObject, useRef} from 'react'; import {SpectrumTextFieldProps, TextFieldRef} from '@react-types/textfield'; diff --git a/packages/@react-spectrum/textfield/src/TextField.tsx b/packages/@react-spectrum/textfield/src/TextField.tsx index 4fc08d3f30a..e77347539a6 100644 --- a/packages/@react-spectrum/textfield/src/TextField.tsx +++ b/packages/@react-spectrum/textfield/src/TextField.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import React, {forwardRef, RefObject} from 'react'; import {SpectrumTextFieldProps, TextFieldRef} from '@react-types/textfield'; import {TextFieldBase} from './TextFieldBase'; diff --git a/packages/@react-spectrum/textfield/src/TextFieldBase.tsx b/packages/@react-spectrum/textfield/src/TextFieldBase.tsx index 3bd78218f71..dfb15336c29 100644 --- a/packages/@react-spectrum/textfield/src/TextFieldBase.tsx +++ b/packages/@react-spectrum/textfield/src/TextFieldBase.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import AlertMedium from '@spectrum-icons/ui/AlertMedium'; import CheckmarkMedium from '@spectrum-icons/ui/CheckmarkMedium'; import {classNames, createFocusableRef, filterDOMProps, TextInputDOMPropNames, useStyleProps} from '@react-spectrum/utils'; diff --git a/packages/@react-spectrum/textfield/src/index.ts b/packages/@react-spectrum/textfield/src/index.ts index 691e3709fbe..e15cfd8ab2b 100644 --- a/packages/@react-spectrum/textfield/src/index.ts +++ b/packages/@react-spectrum/textfield/src/index.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './TextArea'; export * from './TextField'; export * from './TextFieldBase'; diff --git a/packages/@react-spectrum/textfield/stories/TextArea.stories.js b/packages/@react-spectrum/textfield/stories/TextArea.stories.js index c1b349f88ea..405bdb16dd7 100644 --- a/packages/@react-spectrum/textfield/stories/TextArea.stories.js +++ b/packages/@react-spectrum/textfield/stories/TextArea.stories.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {action} from '@storybook/addon-actions'; import Info from '@spectrum-icons/workflow/Info'; import React from 'react'; @@ -5,6 +17,7 @@ import {storiesOf} from '@storybook/react'; import {TextArea} from '../'; storiesOf('TextArea', module) + .addParameters({providerSwitcher: {status: 'positive'}}) .add( 'Default', () => render() @@ -44,7 +57,7 @@ storiesOf('TextArea', module) .add( 'isReadOnly: true, value: read only value', () => render({value: 'Read only value', isReadOnly: true}) - ) + ) .add( 'isRequired: true', () => render({isRequired: true}) diff --git a/packages/@react-spectrum/textfield/stories/Textfield.stories.js b/packages/@react-spectrum/textfield/stories/Textfield.stories.js index d34b20b95fc..a37e8431e6e 100644 --- a/packages/@react-spectrum/textfield/stories/Textfield.stories.js +++ b/packages/@react-spectrum/textfield/stories/Textfield.stories.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {action} from '@storybook/addon-actions'; import Info from '@spectrum-icons/workflow/Info'; import React from 'react'; @@ -5,6 +17,7 @@ import {storiesOf} from '@storybook/react'; import {TextField} from '../'; storiesOf('TextField', module) + .addParameters({providerSwitcher: {status: 'positive'}}) .add( 'Default', () => render() @@ -44,7 +57,7 @@ storiesOf('TextField', module) .add( 'isReadOnly: true, value: read only value', () => render({value: 'read only value', isReadOnly: true}) - ) + ) .add( 'isRequired: true', () => render({isRequired: true}) diff --git a/packages/@react-spectrum/textfield/test/TextArea.test.js b/packages/@react-spectrum/textfield/test/TextArea.test.js index 319e19b52f6..2ba765f1dd6 100644 --- a/packages/@react-spectrum/textfield/test/TextArea.test.js +++ b/packages/@react-spectrum/textfield/test/TextArea.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, fireEvent, render} from '@testing-library/react'; import React from 'react'; import {TextArea} from '../'; diff --git a/packages/@react-spectrum/textfield/test/TextField.test.js b/packages/@react-spectrum/textfield/test/TextField.test.js index 186d05521f0..5c2dd3d2a14 100644 --- a/packages/@react-spectrum/textfield/test/TextField.test.js +++ b/packages/@react-spectrum/textfield/test/TextField.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import Checkmark from '@spectrum-icons/workflow/Checkmark'; import {cleanup, fireEvent, render} from '@testing-library/react'; import React from 'react'; diff --git a/packages/@react-spectrum/theme-default/index.ts b/packages/@react-spectrum/theme-default/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-spectrum/theme-default/index.ts +++ b/packages/@react-spectrum/theme-default/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-spectrum/theme-default/package.json b/packages/@react-spectrum/theme-default/package.json index 609f3c5afab..c4c33e3cff0 100644 --- a/packages/@react-spectrum/theme-default/package.json +++ b/packages/@react-spectrum/theme-default/package.json @@ -2,6 +2,7 @@ "name": "@react-spectrum/theme-default", "version": "3.0.0-rc.1", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -24,7 +25,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-spectrum/theme-default/src/index.ts b/packages/@react-spectrum/theme-default/src/index.ts index d15f30be069..54d232f2fc0 100644 --- a/packages/@react-spectrum/theme-default/src/index.ts +++ b/packages/@react-spectrum/theme-default/src/index.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import dark from '@adobe/spectrum-css-temp/vars/spectrum-dark.css'; import global from '@adobe/spectrum-css-temp/vars/spectrum-global.css'; import large from '@adobe/spectrum-css-temp/vars/spectrum-large.css'; diff --git a/packages/@react-spectrum/toast/index.ts b/packages/@react-spectrum/toast/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-spectrum/toast/index.ts +++ b/packages/@react-spectrum/toast/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-spectrum/toast/package.json b/packages/@react-spectrum/toast/package.json index 4f14142f4f5..9cab62c8c3a 100644 --- a/packages/@react-spectrum/toast/package.json +++ b/packages/@react-spectrum/toast/package.json @@ -3,6 +3,7 @@ "version": "3.0.0-alpha.1", "private": true, "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -25,7 +26,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-spectrum/toast/src/Toast.tsx b/packages/@react-spectrum/toast/src/Toast.tsx index 07891c2e2e9..2efa7f357b2 100644 --- a/packages/@react-spectrum/toast/src/Toast.tsx +++ b/packages/@react-spectrum/toast/src/Toast.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import AlertMedium from '@spectrum-icons/ui/AlertMedium'; import {Button, ClearButton} from '@react-spectrum/button'; import {classNames, filterDOMProps, useDOMRef, useStyleProps} from '@react-spectrum/utils'; diff --git a/packages/@react-spectrum/toast/src/ToastContainer.tsx b/packages/@react-spectrum/toast/src/ToastContainer.tsx index d996048cf0d..610c4b2129e 100644 --- a/packages/@react-spectrum/toast/src/ToastContainer.tsx +++ b/packages/@react-spectrum/toast/src/ToastContainer.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {classNames} from '@react-spectrum/utils'; import React, {ReactElement} from 'react'; import {Toast} from './'; diff --git a/packages/@react-spectrum/toast/src/ToastProvider.tsx b/packages/@react-spectrum/toast/src/ToastProvider.tsx index 66680a4259d..2069795b786 100644 --- a/packages/@react-spectrum/toast/src/ToastProvider.tsx +++ b/packages/@react-spectrum/toast/src/ToastProvider.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import React, {ReactElement, ReactNode, useContext} from 'react'; import {ToastContainer} from './'; import {ToastOptions, ToastStateBase} from '@react-types/toast'; diff --git a/packages/@react-spectrum/toast/src/index.ts b/packages/@react-spectrum/toast/src/index.ts index 3045efc1c58..8b2b8252f50 100644 --- a/packages/@react-spectrum/toast/src/index.ts +++ b/packages/@react-spectrum/toast/src/index.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './Toast'; export * from './ToastContainer'; export * from './ToastProvider'; diff --git a/packages/@react-spectrum/toast/src/toastContainer.css b/packages/@react-spectrum/toast/src/toastContainer.css index 44c545ee770..53f12649245 100644 --- a/packages/@react-spectrum/toast/src/toastContainer.css +++ b/packages/@react-spectrum/toast/src/toastContainer.css @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + .react-spectrum-ToastContainer { position: fixed; top: unset; diff --git a/packages/@react-spectrum/toast/stories/Toast.stories.tsx b/packages/@react-spectrum/toast/stories/Toast.stories.tsx index c0a90181b1b..de25e92b91e 100644 --- a/packages/@react-spectrum/toast/stories/Toast.stories.tsx +++ b/packages/@react-spectrum/toast/stories/Toast.stories.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {action} from '@storybook/addon-actions'; import {Button} from '@react-spectrum/button'; import React from 'react'; diff --git a/packages/@react-spectrum/toast/test/Toast.test.js b/packages/@react-spectrum/toast/test/Toast.test.js index 9f03ef714cf..d08587de460 100644 --- a/packages/@react-spectrum/toast/test/Toast.test.js +++ b/packages/@react-spectrum/toast/test/Toast.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, render} from '@testing-library/react'; import React from 'react'; import {Toast} from '../'; diff --git a/packages/@react-spectrum/toast/test/ToastContainer.test.js b/packages/@react-spectrum/toast/test/ToastContainer.test.js index f680be00caf..f3436cda775 100644 --- a/packages/@react-spectrum/toast/test/ToastContainer.test.js +++ b/packages/@react-spectrum/toast/test/ToastContainer.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {Button} from '@react-spectrum/button'; import {cleanup, render} from '@testing-library/react'; import React from 'react'; diff --git a/packages/@react-spectrum/tooltip/index.ts b/packages/@react-spectrum/tooltip/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-spectrum/tooltip/index.ts +++ b/packages/@react-spectrum/tooltip/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-spectrum/tooltip/package.json b/packages/@react-spectrum/tooltip/package.json index d5b007b5e58..2c77d7451c0 100644 --- a/packages/@react-spectrum/tooltip/package.json +++ b/packages/@react-spectrum/tooltip/package.json @@ -2,6 +2,7 @@ "name": "@react-spectrum/tooltip", "version": "3.0.0-alpha.2", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -24,7 +25,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-spectrum/tooltip/src/Tooltip.tsx b/packages/@react-spectrum/tooltip/src/Tooltip.tsx index 29b19a5c144..634dbe7d2ae 100644 --- a/packages/@react-spectrum/tooltip/src/Tooltip.tsx +++ b/packages/@react-spectrum/tooltip/src/Tooltip.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {classNames, filterDOMProps, useStyleProps} from '@react-spectrum/utils'; import React, {RefObject, useRef} from 'react'; import {SpectrumTooltipProps} from '@react-types/tooltip'; diff --git a/packages/@react-spectrum/tooltip/src/TooltipTrigger.tsx b/packages/@react-spectrum/tooltip/src/TooltipTrigger.tsx index a842e4581e4..ce21679958e 100644 --- a/packages/@react-spectrum/tooltip/src/TooltipTrigger.tsx +++ b/packages/@react-spectrum/tooltip/src/TooltipTrigger.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMPropsResponder, PressResponder} from '@react-aria/interactions'; import {DOMRefValue} from '@react-types/shared'; import {Overlay} from '@react-spectrum/overlays'; diff --git a/packages/@react-spectrum/tooltip/src/index.ts b/packages/@react-spectrum/tooltip/src/index.ts index 8cb0b510485..9e347c66cc6 100644 --- a/packages/@react-spectrum/tooltip/src/index.ts +++ b/packages/@react-spectrum/tooltip/src/index.ts @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './Tooltip'; export * from './TooltipTrigger'; diff --git a/packages/@react-spectrum/tooltip/stories/Tooltip.stories.tsx b/packages/@react-spectrum/tooltip/stories/Tooltip.stories.tsx index c8299c57528..d62caec0f04 100644 --- a/packages/@react-spectrum/tooltip/stories/Tooltip.stories.tsx +++ b/packages/@react-spectrum/tooltip/stories/Tooltip.stories.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {ActionButton} from '@react-spectrum/button'; import React from 'react'; import {storiesOf} from '@storybook/react'; diff --git a/packages/@react-spectrum/tooltip/test/Tooltip.test.js b/packages/@react-spectrum/tooltip/test/Tooltip.test.js index b1ce77cfdb2..a4b9cf6c54c 100644 --- a/packages/@react-spectrum/tooltip/test/Tooltip.test.js +++ b/packages/@react-spectrum/tooltip/test/Tooltip.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, render} from '@testing-library/react'; import React from 'react'; import {Tooltip} from '../'; diff --git a/packages/@react-spectrum/tooltip/test/TooltipTrigger.test.js b/packages/@react-spectrum/tooltip/test/TooltipTrigger.test.js index 0a93b3115f7..5198d393091 100644 --- a/packages/@react-spectrum/tooltip/test/TooltipTrigger.test.js +++ b/packages/@react-spectrum/tooltip/test/TooltipTrigger.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {ActionButton} from '@react-spectrum/button'; import {cleanup, fireEvent, render, wait, waitForDomChange} from '@testing-library/react'; import {Provider} from '@react-spectrum/provider'; diff --git a/packages/@react-spectrum/tree/index.ts b/packages/@react-spectrum/tree/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-spectrum/tree/index.ts +++ b/packages/@react-spectrum/tree/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-spectrum/tree/package.json b/packages/@react-spectrum/tree/package.json index 90998e1d67a..2b285e6b0d0 100644 --- a/packages/@react-spectrum/tree/package.json +++ b/packages/@react-spectrum/tree/package.json @@ -2,6 +2,7 @@ "name": "@react-spectrum/tree", "version": "3.0.0-alpha.2", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -24,7 +25,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-spectrum/tree/src/Tree.tsx b/packages/@react-spectrum/tree/src/Tree.tsx index d92518f5639..6614d3422aa 100644 --- a/packages/@react-spectrum/tree/src/Tree.tsx +++ b/packages/@react-spectrum/tree/src/Tree.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import ChevronRightMedium from '@spectrum-icons/ui/ChevronRightMedium'; import {classNames, filterDOMProps} from '@react-spectrum/utils'; import {CollectionBase, Expandable, MultipleSelection} from '@react-types/shared'; diff --git a/packages/@react-spectrum/tree/src/index.ts b/packages/@react-spectrum/tree/src/index.ts index 7cc3d4b4374..08474c8c243 100644 --- a/packages/@react-spectrum/tree/src/index.ts +++ b/packages/@react-spectrum/tree/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './Tree'; diff --git a/packages/@react-spectrum/tree/stories/TreeView.stories.tsx b/packages/@react-spectrum/tree/stories/TreeView.stories.tsx index 4396f84d1c5..61915ad9af6 100644 --- a/packages/@react-spectrum/tree/stories/TreeView.stories.tsx +++ b/packages/@react-spectrum/tree/stories/TreeView.stories.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {Item, Section, Tree} from '../src'; import React from 'react'; import {storiesOf} from '@storybook/react'; diff --git a/packages/@react-spectrum/typography/index.ts b/packages/@react-spectrum/typography/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-spectrum/typography/index.ts +++ b/packages/@react-spectrum/typography/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-spectrum/typography/package.json b/packages/@react-spectrum/typography/package.json index 08734f3d367..87fceaf7a4f 100644 --- a/packages/@react-spectrum/typography/package.json +++ b/packages/@react-spectrum/typography/package.json @@ -3,23 +3,30 @@ "version": "3.0.0-alpha.1", "private": true, "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", "source": "src/index.ts", - "files": ["dist"], + "files": [ + "dist" + ], "sideEffects": false, "targets": { "main": { - "includeNodeModules": ["@adobe/spectrum-css-temp"] + "includeNodeModules": [ + "@adobe/spectrum-css-temp" + ] }, "module": { - "includeNodeModules": ["@adobe/spectrum-css-temp"] + "includeNodeModules": [ + "@adobe/spectrum-css-temp" + ] } }, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-spectrum/typography/src/Heading.tsx b/packages/@react-spectrum/typography/src/Heading.tsx index e5b7697de08..9c0610dae42 100644 --- a/packages/@react-spectrum/typography/src/Heading.tsx +++ b/packages/@react-spectrum/typography/src/Heading.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMProps, StyleProps} from '@react-types/shared'; import {filterDOMProps, useStyleProps} from '@react-spectrum/utils'; import {HTMLElement} from 'react-dom'; diff --git a/packages/@react-spectrum/typography/src/Keyboard.tsx b/packages/@react-spectrum/typography/src/Keyboard.tsx index 9846e2324fa..1125a13fe2e 100644 --- a/packages/@react-spectrum/typography/src/Keyboard.tsx +++ b/packages/@react-spectrum/typography/src/Keyboard.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {filterDOMProps, useStyleProps} from '@react-spectrum/utils'; import {HTMLElement} from 'react-dom'; import {KeyboardProps} from '@react-types/typography'; diff --git a/packages/@react-spectrum/typography/src/Text.tsx b/packages/@react-spectrum/typography/src/Text.tsx index 7551ed7a4e5..2e0f05f57df 100644 --- a/packages/@react-spectrum/typography/src/Text.tsx +++ b/packages/@react-spectrum/typography/src/Text.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {filterDOMProps, useStyleProps} from '@react-spectrum/utils'; import {HTMLElement} from 'react-dom'; import React, {RefObject} from 'react'; diff --git a/packages/@react-spectrum/typography/src/index.ts b/packages/@react-spectrum/typography/src/index.ts index 4f227ffc6d8..c281eff5632 100644 --- a/packages/@react-spectrum/typography/src/index.ts +++ b/packages/@react-spectrum/typography/src/index.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './Text'; export * from './Heading'; export * from './Keyboard'; diff --git a/packages/@react-spectrum/utils/index.ts b/packages/@react-spectrum/utils/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-spectrum/utils/index.ts +++ b/packages/@react-spectrum/utils/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-spectrum/utils/package.json b/packages/@react-spectrum/utils/package.json index 6cc73568a54..799ad065c53 100644 --- a/packages/@react-spectrum/utils/package.json +++ b/packages/@react-spectrum/utils/package.json @@ -2,6 +2,7 @@ "name": "@react-spectrum/utils", "version": "3.0.0-rc.1", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-spectrum/utils/src/Slots.ts b/packages/@react-spectrum/utils/src/Slots.ts index c151a5de470..5a2ec8a1456 100644 --- a/packages/@react-spectrum/utils/src/Slots.ts +++ b/packages/@react-spectrum/utils/src/Slots.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import React, {useContext} from 'react'; export let SlotContext = React.createContext(null); diff --git a/packages/@react-spectrum/utils/src/classNames.ts b/packages/@react-spectrum/utils/src/classNames.ts index 7cc301a65fc..1c7023d28f8 100644 --- a/packages/@react-spectrum/utils/src/classNames.ts +++ b/packages/@react-spectrum/utils/src/classNames.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import _classNames from 'classnames'; export let shouldKeepSpectrumClassNames = false; diff --git a/packages/@react-spectrum/utils/src/filterDOMProps.ts b/packages/@react-spectrum/utils/src/filterDOMProps.ts index 8e464042c79..d802ee1ef9f 100644 --- a/packages/@react-spectrum/utils/src/filterDOMProps.ts +++ b/packages/@react-spectrum/utils/src/filterDOMProps.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMProps} from '@react-types/shared'; // IMPORTANT: this needs to be synced with the TypeScript definition of DOMProps diff --git a/packages/@react-spectrum/utils/src/getWrappedElement.tsx b/packages/@react-spectrum/utils/src/getWrappedElement.tsx index e1bc2f394d8..cdfcad6b4a0 100644 --- a/packages/@react-spectrum/utils/src/getWrappedElement.tsx +++ b/packages/@react-spectrum/utils/src/getWrappedElement.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import React, {ReactElement, ReactNode} from 'react'; export function getWrappedElement(children: string | ReactElement | ReactNode): ReactElement { diff --git a/packages/@react-spectrum/utils/src/index.ts b/packages/@react-spectrum/utils/src/index.ts index bbcc54fc0f3..93c5d46ce7a 100644 --- a/packages/@react-spectrum/utils/src/index.ts +++ b/packages/@react-spectrum/utils/src/index.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './classNames'; export * from './getWrappedElement'; export * from './filterDOMProps'; diff --git a/packages/@react-spectrum/utils/src/styleProps.ts b/packages/@react-spectrum/utils/src/styleProps.ts index 0c2cb5977ff..280627f0460 100644 --- a/packages/@react-spectrum/utils/src/styleProps.ts +++ b/packages/@react-spectrum/utils/src/styleProps.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {BackgroundColorValue, BorderColorValue, BorderRadiusValue, BorderSizeValue, ColorValue, DimensionValue, StyleProps, ViewStyleProps} from '@react-types/shared'; import classNames from 'classnames'; import {CSSProperties, HTMLAttributes} from 'react'; diff --git a/packages/@react-spectrum/utils/src/useDOMRef.ts b/packages/@react-spectrum/utils/src/useDOMRef.ts index 75da95530e0..2ba42678add 100644 --- a/packages/@react-spectrum/utils/src/useDOMRef.ts +++ b/packages/@react-spectrum/utils/src/useDOMRef.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMRef, DOMRefValue, FocusableRef, FocusableRefValue} from '@react-types/shared'; import {RefObject, useImperativeHandle, useRef} from 'react'; diff --git a/packages/@react-spectrum/utils/src/useMediaQuery.ts b/packages/@react-spectrum/utils/src/useMediaQuery.ts index e93e48ede95..65658fc5acc 100644 --- a/packages/@react-spectrum/utils/src/useMediaQuery.ts +++ b/packages/@react-spectrum/utils/src/useMediaQuery.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {useEffect, useState} from 'react'; export function useMediaQuery(query: string) { diff --git a/packages/@react-spectrum/view/index.ts b/packages/@react-spectrum/view/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-spectrum/view/index.ts +++ b/packages/@react-spectrum/view/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-spectrum/view/package.json b/packages/@react-spectrum/view/package.json index 7abe63b88e3..4f2ba4fb6e3 100644 --- a/packages/@react-spectrum/view/package.json +++ b/packages/@react-spectrum/view/package.json @@ -2,6 +2,7 @@ "name": "@react-spectrum/view", "version": "3.0.0-alpha.2", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -24,7 +25,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2" diff --git a/packages/@react-spectrum/view/src/Content.tsx b/packages/@react-spectrum/view/src/Content.tsx index cb28fe6ba3b..f2739f19894 100644 --- a/packages/@react-spectrum/view/src/Content.tsx +++ b/packages/@react-spectrum/view/src/Content.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMProps, ViewStyleProps} from '@react-types/shared'; import {filterDOMProps, useStyleProps} from '@react-spectrum/utils'; import {HTMLElement} from 'react-dom'; diff --git a/packages/@react-spectrum/view/src/Footer.tsx b/packages/@react-spectrum/view/src/Footer.tsx index e253adf6fb1..8eea5f7d6ad 100644 --- a/packages/@react-spectrum/view/src/Footer.tsx +++ b/packages/@react-spectrum/view/src/Footer.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMProps, ViewStyleProps} from '@react-types/shared'; import {filterDOMProps, useStyleProps} from '@react-spectrum/utils'; import {HTMLElement} from 'react-dom'; diff --git a/packages/@react-spectrum/view/src/Header.tsx b/packages/@react-spectrum/view/src/Header.tsx index 3e0afca23ea..36475bfb3cd 100644 --- a/packages/@react-spectrum/view/src/Header.tsx +++ b/packages/@react-spectrum/view/src/Header.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMProps, ViewStyleProps} from '@react-types/shared'; import {filterDOMProps, useStyleProps} from '@react-spectrum/utils'; import {HTMLElement} from 'react-dom'; diff --git a/packages/@react-spectrum/view/src/View.tsx b/packages/@react-spectrum/view/src/View.tsx index e0aa7bd2c09..02d6788938d 100644 --- a/packages/@react-spectrum/view/src/View.tsx +++ b/packages/@react-spectrum/view/src/View.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {filterDOMProps, useStyleProps, viewStyleProps} from '@react-spectrum/utils'; import {HTMLElement} from 'react-dom'; import React, {HTMLAttributes, JSXElementConstructor, ReactNode, RefObject} from 'react'; diff --git a/packages/@react-spectrum/view/src/index.ts b/packages/@react-spectrum/view/src/index.ts index 1fb61502c2a..557d861c509 100644 --- a/packages/@react-spectrum/view/src/index.ts +++ b/packages/@react-spectrum/view/src/index.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './View'; export * from './Content'; export * from './Footer'; diff --git a/packages/@react-spectrum/view/stories/View.stories.tsx b/packages/@react-spectrum/view/stories/View.stories.tsx index 06ca7995d27..c17d845f67d 100644 --- a/packages/@react-spectrum/view/stories/View.stories.tsx +++ b/packages/@react-spectrum/view/stories/View.stories.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {Button} from '@react-spectrum/button'; import React from 'react'; import {storiesOf} from '@storybook/react'; diff --git a/packages/@react-spectrum/view/test/View.test.js b/packages/@react-spectrum/view/test/View.test.js index 862fd44197e..9b5b2dd2129 100644 --- a/packages/@react-spectrum/view/test/View.test.js +++ b/packages/@react-spectrum/view/test/View.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, render} from '@testing-library/react'; import React from 'react'; import {View} from '../'; diff --git a/packages/@react-spectrum/well/index.ts b/packages/@react-spectrum/well/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-spectrum/well/index.ts +++ b/packages/@react-spectrum/well/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-spectrum/well/package.json b/packages/@react-spectrum/well/package.json index 8716b39bab2..0fe8bd3a261 100644 --- a/packages/@react-spectrum/well/package.json +++ b/packages/@react-spectrum/well/package.json @@ -2,6 +2,7 @@ "name": "@react-spectrum/well", "version": "3.0.0-rc.1", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -24,7 +25,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-spectrum/well/src/Well.tsx b/packages/@react-spectrum/well/src/Well.tsx index 84fd01423fc..1a5cbad1662 100644 --- a/packages/@react-spectrum/well/src/Well.tsx +++ b/packages/@react-spectrum/well/src/Well.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {classNames, filterDOMProps, useDOMRef, useStyleProps} from '@react-spectrum/utils'; import {DOMRef} from '@react-types/shared'; import React, {forwardRef} from 'react'; diff --git a/packages/@react-spectrum/well/src/index.ts b/packages/@react-spectrum/well/src/index.ts index 52068dbaa92..93595f4ff04 100644 --- a/packages/@react-spectrum/well/src/index.ts +++ b/packages/@react-spectrum/well/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './Well'; diff --git a/packages/@react-spectrum/well/stories/Well.stories.js b/packages/@react-spectrum/well/stories/Well.stories.js index 356810e0f46..0db81b40429 100644 --- a/packages/@react-spectrum/well/stories/Well.stories.js +++ b/packages/@react-spectrum/well/stories/Well.stories.js @@ -1,8 +1,21 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import React from 'react'; import {storiesOf} from '@storybook/react'; import {Well} from '../'; storiesOf('Well', module) + .addParameters({providerSwitcher: {status: 'positive'}}) .add( 'Default', () => render() diff --git a/packages/@react-spectrum/well/test/Well.test.js b/packages/@react-spectrum/well/test/Well.test.js index acf80eef5e6..3f0c672fcd4 100644 --- a/packages/@react-spectrum/well/test/Well.test.js +++ b/packages/@react-spectrum/well/test/Well.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, render} from '@testing-library/react'; import React, {useRef} from 'react'; import V2Well from '@react/react-spectrum/Well'; diff --git a/packages/@react-stately/README.md b/packages/@react-stately/README.md index ee5c65415ce..9c468ca1833 100644 --- a/packages/@react-stately/README.md +++ b/packages/@react-stately/README.md @@ -1,3 +1,5 @@ # @react-stately +โš ๏ธ Under Construction โš ๏ธ + This folder is for packages in the `@react-stately` scope, which React Hooks that implement shared cross-platform state management for common components. diff --git a/packages/@react-stately/button/index.ts b/packages/@react-stately/button/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-stately/button/index.ts +++ b/packages/@react-stately/button/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-stately/button/package.json b/packages/@react-stately/button/package.json index 7d9cc40e5a6..1ee114d6f04 100644 --- a/packages/@react-stately/button/package.json +++ b/packages/@react-stately/button/package.json @@ -2,24 +2,27 @@ "name": "@react-stately/button", "version": "3.0.0-alpha.2", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "private": true, "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", "source": "src/index.ts", - "files": ["dist"], + "files": [ + "dist" + ], "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", "@react-stately/utils": "^3.0.0-alpha.2", - "@react-stately/collections": "^3.0.0-alpha.2", - "@react-stately/selection": "^3.0.0-alpha.2", - "@react-types/button": "^3.0.0-alpha.2", - "@react-types/shared": "^3.0.0-alpha.2" + "@react-stately/collections": "^3.0.0-alpha.2", + "@react-stately/selection": "^3.0.0-alpha.2", + "@react-types/button": "^3.0.0-alpha.2", + "@react-types/shared": "^3.0.0-alpha.2" }, "peerDependencies": { "react": "^16.8.0" diff --git a/packages/@react-stately/button/src/ButtonGroupCollection.ts b/packages/@react-stately/button/src/ButtonGroupCollection.ts index c8f14138062..38f4d697073 100644 --- a/packages/@react-stately/button/src/ButtonGroupCollection.ts +++ b/packages/@react-stately/button/src/ButtonGroupCollection.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {Collection} from '@react-stately/collections'; import {Key, ReactElement} from 'react'; diff --git a/packages/@react-stately/button/src/ButtonGroupKeyboardDelegate.ts b/packages/@react-stately/button/src/ButtonGroupKeyboardDelegate.ts index ff7fbb451a2..b948d09392c 100644 --- a/packages/@react-stately/button/src/ButtonGroupKeyboardDelegate.ts +++ b/packages/@react-stately/button/src/ButtonGroupKeyboardDelegate.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {Collection} from '@react-stately/collections'; import {Key} from 'react'; import {KeyboardDelegate} from '@react-types/shared'; diff --git a/packages/@react-stately/button/src/index.ts b/packages/@react-stately/button/src/index.ts index 5989b8a5ccc..ff4656a442d 100644 --- a/packages/@react-stately/button/src/index.ts +++ b/packages/@react-stately/button/src/index.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './ButtonGroupCollection'; export * from './ButtonGroupKeyboardDelegate'; export * from './types'; diff --git a/packages/@react-stately/button/src/types.ts b/packages/@react-stately/button/src/types.ts index 3ebea5732f7..eeb7ac5771a 100644 --- a/packages/@react-stately/button/src/types.ts +++ b/packages/@react-stately/button/src/types.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {ButtonGroupButton} from '@react-types/button'; import {ButtonGroupCollection} from './'; import {ReactElement} from 'react'; diff --git a/packages/@react-stately/button/src/useButtonGroupState.ts b/packages/@react-stately/button/src/useButtonGroupState.ts index 547720a8646..4040256734c 100644 --- a/packages/@react-stately/button/src/useButtonGroupState.ts +++ b/packages/@react-stately/button/src/useButtonGroupState.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {ButtonGroupCollection} from './'; import {ButtonGroupState, ButtonGroupStateBase} from './types'; import {MultipleSelection} from '@react-types/shared'; diff --git a/packages/@react-stately/calendar/index.ts b/packages/@react-stately/calendar/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-stately/calendar/index.ts +++ b/packages/@react-stately/calendar/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-stately/calendar/package.json b/packages/@react-stately/calendar/package.json index 68c3ce0db1f..1969e25fa2d 100644 --- a/packages/@react-stately/calendar/package.json +++ b/packages/@react-stately/calendar/package.json @@ -2,6 +2,7 @@ "name": "@react-stately/calendar", "version": "3.0.0-alpha.2", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-stately/calendar/src/index.ts b/packages/@react-stately/calendar/src/index.ts index f2243f4640d..5a0efbb8566 100644 --- a/packages/@react-stately/calendar/src/index.ts +++ b/packages/@react-stately/calendar/src/index.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './types'; export * from './useCalendarState'; export * from './useRangeCalendarState'; diff --git a/packages/@react-stately/calendar/src/types.ts b/packages/@react-stately/calendar/src/types.ts index 3e2bf53a53d..87be24464b4 100644 --- a/packages/@react-stately/calendar/src/types.ts +++ b/packages/@react-stately/calendar/src/types.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {RangeValue} from '@react-types/shared'; export interface CalendarStateBase { diff --git a/packages/@react-stately/calendar/src/useCalendarState.ts b/packages/@react-stately/calendar/src/useCalendarState.ts index 8420285252e..06d9dc4b856 100644 --- a/packages/@react-stately/calendar/src/useCalendarState.ts +++ b/packages/@react-stately/calendar/src/useCalendarState.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {addDays, addMonths, addWeeks, addYears, endOfDay, endOfMonth, getDaysInMonth, isSameDay, isSameMonth, startOfDay, startOfMonth, subDays, subMonths, subWeeks, subYears} from 'date-fns'; import {CalendarProps} from '@react-types/calendar'; import {CalendarState} from './types'; diff --git a/packages/@react-stately/calendar/src/useRangeCalendarState.ts b/packages/@react-stately/calendar/src/useRangeCalendarState.ts index 1218540dcc7..2faa073cfea 100644 --- a/packages/@react-stately/calendar/src/useRangeCalendarState.ts +++ b/packages/@react-stately/calendar/src/useRangeCalendarState.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DateValue} from '@react-types/datepicker'; import {endOfDay, getDaysInMonth, isSameDay, startOfDay} from 'date-fns'; import {RangeCalendarProps} from '@react-types/calendar'; diff --git a/packages/@react-stately/calendar/src/useWeekStart.ts b/packages/@react-stately/calendar/src/useWeekStart.ts index 26ee172361a..5f1d2bda68a 100644 --- a/packages/@react-stately/calendar/src/useWeekStart.ts +++ b/packages/@react-stately/calendar/src/useWeekStart.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {useLocale} from '@react-aria/i18n'; // Data from https://github.com/unicode-cldr/cldr-core/blob/master/supplemental/weekData.json diff --git a/packages/@react-stately/collections/index.ts b/packages/@react-stately/collections/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-stately/collections/index.ts +++ b/packages/@react-stately/collections/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-stately/collections/package.json b/packages/@react-stately/collections/package.json index f506b499c29..52ab2ce246e 100644 --- a/packages/@react-stately/collections/package.json +++ b/packages/@react-stately/collections/package.json @@ -2,6 +2,7 @@ "name": "@react-stately/collections", "version": "3.0.0-alpha.2", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-stately/collections/src/CollectionBuilder.ts b/packages/@react-stately/collections/src/CollectionBuilder.ts index d5764529013..493dfd2425c 100644 --- a/packages/@react-stately/collections/src/CollectionBuilder.ts +++ b/packages/@react-stately/collections/src/CollectionBuilder.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {CollectionBase, CollectionElement, ItemElement, ItemProps, ItemRenderer, SectionElement, SectionProps} from '@react-types/shared'; import {ItemStates, Node} from './types'; import React, {Key, ReactElement} from 'react'; diff --git a/packages/@react-stately/collections/src/CollectionManager.ts b/packages/@react-stately/collections/src/CollectionManager.ts index 9b8fa80a64d..8729c67ddf3 100644 --- a/packages/@react-stately/collections/src/CollectionManager.ts +++ b/packages/@react-stately/collections/src/CollectionManager.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {CancelablePromise, easeOut, tween} from './tween'; import {Collection, CollectionManagerDelegate, InvalidationContext} from './types'; import {concatIterators, difference} from './utils'; diff --git a/packages/@react-stately/collections/src/Layout.ts b/packages/@react-stately/collections/src/Layout.ts index 925db6964a2..236c3fed3e1 100644 --- a/packages/@react-stately/collections/src/Layout.ts +++ b/packages/@react-stately/collections/src/Layout.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {CollectionManager} from './CollectionManager'; import {InvalidationContext} from './types'; import {Key} from 'react'; diff --git a/packages/@react-stately/collections/src/LayoutInfo.ts b/packages/@react-stately/collections/src/LayoutInfo.ts index 9fd3fbf74e7..9e7b330902b 100644 --- a/packages/@react-stately/collections/src/LayoutInfo.ts +++ b/packages/@react-stately/collections/src/LayoutInfo.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {Key} from 'react'; import {Rect} from './Rect'; diff --git a/packages/@react-stately/collections/src/ListLayout.ts b/packages/@react-stately/collections/src/ListLayout.ts index 8ae00bf381a..1f67326c98d 100644 --- a/packages/@react-stately/collections/src/ListLayout.ts +++ b/packages/@react-stately/collections/src/ListLayout.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {Collection, Node} from './types'; import {Key} from 'react'; import {KeyboardDelegate} from '@react-types/shared'; diff --git a/packages/@react-stately/collections/src/OverscanManager.ts b/packages/@react-stately/collections/src/OverscanManager.ts index 81de96d1a68..452eb4016aa 100644 --- a/packages/@react-stately/collections/src/OverscanManager.ts +++ b/packages/@react-stately/collections/src/OverscanManager.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {Point} from './Point'; import {Rect} from './Rect'; diff --git a/packages/@react-stately/collections/src/Point.ts b/packages/@react-stately/collections/src/Point.ts index f2e00d19f78..0f2e955c4d8 100644 --- a/packages/@react-stately/collections/src/Point.ts +++ b/packages/@react-stately/collections/src/Point.ts @@ -1,6 +1,15 @@ -/** - * Represents a 2d point +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. */ + export class Point { /** The x-coordinate of the point */ x: number; diff --git a/packages/@react-stately/collections/src/Rect.ts b/packages/@react-stately/collections/src/Rect.ts index aebb8712558..74fa6bab394 100644 --- a/packages/@react-stately/collections/src/Rect.ts +++ b/packages/@react-stately/collections/src/Rect.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {Point} from './Point'; import {Size} from './Size'; diff --git a/packages/@react-stately/collections/src/ReusableView.ts b/packages/@react-stately/collections/src/ReusableView.ts index 5861ea9255f..d3a32d46480 100644 --- a/packages/@react-stately/collections/src/ReusableView.ts +++ b/packages/@react-stately/collections/src/ReusableView.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {Key} from 'react'; import {LayoutInfo} from './LayoutInfo'; diff --git a/packages/@react-stately/collections/src/Size.ts b/packages/@react-stately/collections/src/Size.ts index b0986a2c7c6..b27a30dd039 100644 --- a/packages/@react-stately/collections/src/Size.ts +++ b/packages/@react-stately/collections/src/Size.ts @@ -1,6 +1,15 @@ -/** - * Represents a 2d size, with a width and height. +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. */ + export class Size { width: number; height: number; diff --git a/packages/@react-stately/collections/src/Transaction.ts b/packages/@react-stately/collections/src/Transaction.ts index c819f0d148c..8b560f03633 100644 --- a/packages/@react-stately/collections/src/Transaction.ts +++ b/packages/@react-stately/collections/src/Transaction.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {Key} from 'react'; import {LayoutInfo} from './LayoutInfo'; import {ReusableView} from './ReusableView'; diff --git a/packages/@react-stately/collections/src/TreeCollection.ts b/packages/@react-stately/collections/src/TreeCollection.ts index 7f91661a872..d2eebda5bd8 100644 --- a/packages/@react-stately/collections/src/TreeCollection.ts +++ b/packages/@react-stately/collections/src/TreeCollection.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {Collection, Node} from './types'; import {Key} from 'react'; diff --git a/packages/@react-stately/collections/src/index.ts b/packages/@react-stately/collections/src/index.ts index 4d02b617ee3..d59c3df104d 100644 --- a/packages/@react-stately/collections/src/index.ts +++ b/packages/@react-stately/collections/src/index.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './CollectionBuilder'; export * from './TreeCollection'; export * from './types'; diff --git a/packages/@react-stately/collections/src/tween.ts b/packages/@react-stately/collections/src/tween.ts index a3ca1323937..0a57aa8bc48 100644 --- a/packages/@react-stately/collections/src/tween.ts +++ b/packages/@react-stately/collections/src/tween.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {Point} from './Point'; // use high res timer if available diff --git a/packages/@react-stately/collections/src/types.ts b/packages/@react-stately/collections/src/types.ts index d6273f46c3f..d5b6b0b4dd4 100644 --- a/packages/@react-stately/collections/src/types.ts +++ b/packages/@react-stately/collections/src/types.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {Key, ReactNode} from 'react'; import {Rect} from './Rect'; import {ReusableView} from './ReusableView'; diff --git a/packages/@react-stately/collections/src/useAsyncList.ts b/packages/@react-stately/collections/src/useAsyncList.ts index fb379fb2746..ed7590f53a4 100644 --- a/packages/@react-stately/collections/src/useAsyncList.ts +++ b/packages/@react-stately/collections/src/useAsyncList.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {AsyncListOptions, AsyncListProps, SortDescriptor} from '@react-types/shared'; import {useEffect, useReducer} from 'react'; diff --git a/packages/@react-stately/collections/src/useCollectionState.ts b/packages/@react-stately/collections/src/useCollectionState.ts index ae9651552b9..645bcd24b8e 100644 --- a/packages/@react-stately/collections/src/useCollectionState.ts +++ b/packages/@react-stately/collections/src/useCollectionState.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {Collection} from './types'; import {CollectionManager} from './CollectionManager'; import {Key, useLayoutEffect, useMemo, useState} from 'react'; diff --git a/packages/@react-stately/collections/src/utils.ts b/packages/@react-stately/collections/src/utils.ts index cda66e8ea84..067c9c13e91 100644 --- a/packages/@react-stately/collections/src/utils.ts +++ b/packages/@react-stately/collections/src/utils.ts @@ -1,7 +1,15 @@ -/** - * Returns a Set containing the keys in Map a that are not in b. - * @private +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. */ + export function keyDiff(a: Map, b: Map): Set { let res = new Set(); diff --git a/packages/@react-stately/collections/stories/AsyncHook.stories.tsx b/packages/@react-stately/collections/stories/AsyncHook.stories.tsx index 02cfe295106..3ccb1da5a7d 100644 --- a/packages/@react-stately/collections/stories/AsyncHook.stories.tsx +++ b/packages/@react-stately/collections/stories/AsyncHook.stories.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {ActionButton} from '@react-spectrum/button'; import {Item, useAsyncList} from '../src'; import {ProgressCircle} from '@react-spectrum/progress'; diff --git a/packages/@react-stately/collections/test/useAsyncList.test.js b/packages/@react-stately/collections/test/useAsyncList.test.js index b540f6785b2..56b5e1a31a9 100644 --- a/packages/@react-stately/collections/test/useAsyncList.test.js +++ b/packages/@react-stately/collections/test/useAsyncList.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {act, renderHook} from 'react-hooks-testing-library'; import React from 'react'; import {useAsyncList} from '../src'; diff --git a/packages/@react-stately/datepicker/index.ts b/packages/@react-stately/datepicker/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-stately/datepicker/index.ts +++ b/packages/@react-stately/datepicker/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-stately/datepicker/package.json b/packages/@react-stately/datepicker/package.json index 26d14f9626d..f968c330fbd 100644 --- a/packages/@react-stately/datepicker/package.json +++ b/packages/@react-stately/datepicker/package.json @@ -2,6 +2,7 @@ "name": "@react-stately/datepicker", "version": "3.0.0-alpha.2", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-stately/datepicker/src/index.ts b/packages/@react-stately/datepicker/src/index.ts index 5543329e354..7d3e543ac30 100644 --- a/packages/@react-stately/datepicker/src/index.ts +++ b/packages/@react-stately/datepicker/src/index.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useDatePickerState'; export * from './useDatePickerFieldState'; export * from './useDateRangePickerState'; diff --git a/packages/@react-stately/datepicker/src/useDatePickerFieldState.ts b/packages/@react-stately/datepicker/src/useDatePickerFieldState.ts index 6c22b4e45d0..45420d8023f 100644 --- a/packages/@react-stately/datepicker/src/useDatePickerFieldState.ts +++ b/packages/@react-stately/datepicker/src/useDatePickerFieldState.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DatePickerProps, DateValue} from '@react-types/datepicker'; import {getDate, getDaysInMonth, getHours, getMinutes, getMonth, getSeconds, getYear, setDate, setHours, setMinutes, setMonth, setSeconds, setYear} from 'date-fns'; import parse from 'date-fns/parse'; diff --git a/packages/@react-stately/datepicker/src/useDatePickerState.ts b/packages/@react-stately/datepicker/src/useDatePickerState.ts index 84932a45c5a..e7635c453b0 100644 --- a/packages/@react-stately/datepicker/src/useDatePickerState.ts +++ b/packages/@react-stately/datepicker/src/useDatePickerState.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DatePickerProps} from '@react-types/datepicker'; import {isInvalid, setTime} from './utils'; import {useControlledState} from '@react-stately/utils'; diff --git a/packages/@react-stately/datepicker/src/useDateRangePickerState.ts b/packages/@react-stately/datepicker/src/useDateRangePickerState.ts index 07a355bd4a8..6f063631821 100644 --- a/packages/@react-stately/datepicker/src/useDateRangePickerState.ts +++ b/packages/@react-stately/datepicker/src/useDateRangePickerState.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DateRange, DateRangePickerProps, DateValue} from '@react-types/datepicker'; import {isInvalid, setTime} from './utils'; import {RangeValue, ValidationState} from '@react-types/shared'; diff --git a/packages/@react-stately/datepicker/src/utils.ts b/packages/@react-stately/datepicker/src/utils.ts index cbde0dd37c5..a129212db52 100644 --- a/packages/@react-stately/datepicker/src/utils.ts +++ b/packages/@react-stately/datepicker/src/utils.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DateValue} from '@react-types/datepicker'; export function setTime(date: Date, time: Date) { diff --git a/packages/@react-stately/numberfield/index.ts b/packages/@react-stately/numberfield/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-stately/numberfield/index.ts +++ b/packages/@react-stately/numberfield/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-stately/numberfield/package.json b/packages/@react-stately/numberfield/package.json index ed75ce9872c..704192d7a57 100644 --- a/packages/@react-stately/numberfield/package.json +++ b/packages/@react-stately/numberfield/package.json @@ -2,6 +2,7 @@ "name": "@react-stately/numberfield", "version": "3.0.0-alpha.2", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-stately/numberfield/src/index.ts b/packages/@react-stately/numberfield/src/index.ts index 327b7ad6f70..37a9c6cd59f 100644 --- a/packages/@react-stately/numberfield/src/index.ts +++ b/packages/@react-stately/numberfield/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useNumberFieldState'; diff --git a/packages/@react-stately/numberfield/src/useNumberFieldState.ts b/packages/@react-stately/numberfield/src/useNumberFieldState.ts index f1bbbbe8a33..b30741fbc38 100644 --- a/packages/@react-stately/numberfield/src/useNumberFieldState.ts +++ b/packages/@react-stately/numberfield/src/useNumberFieldState.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {clamp} from '@react-aria/utils'; import {useControlledState} from '@react-stately/utils'; import {useRef} from 'react'; diff --git a/packages/@react-stately/pagination/index.ts b/packages/@react-stately/pagination/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-stately/pagination/index.ts +++ b/packages/@react-stately/pagination/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-stately/pagination/package.json b/packages/@react-stately/pagination/package.json index 9688d831fb5..b5be0f637e4 100644 --- a/packages/@react-stately/pagination/package.json +++ b/packages/@react-stately/pagination/package.json @@ -2,6 +2,7 @@ "name": "@react-stately/pagination", "version": "3.0.0-alpha.2", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-stately/pagination/src/index.ts b/packages/@react-stately/pagination/src/index.ts index 38b88dc163d..ab410e4d0a7 100644 --- a/packages/@react-stately/pagination/src/index.ts +++ b/packages/@react-stately/pagination/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './usePaginationState'; diff --git a/packages/@react-stately/pagination/src/usePaginationState.ts b/packages/@react-stately/pagination/src/usePaginationState.ts index 4d4673cbade..19033ded7f5 100644 --- a/packages/@react-stately/pagination/src/usePaginationState.ts +++ b/packages/@react-stately/pagination/src/usePaginationState.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {PaginationProps} from '@react-types/pagination'; import {useControlledState} from '@react-stately/utils'; import {useRef} from 'react'; diff --git a/packages/@react-stately/pagination/test/usePaginationState.test.js b/packages/@react-stately/pagination/test/usePaginationState.test.js index 3928baf51bd..6da3adccc60 100644 --- a/packages/@react-stately/pagination/test/usePaginationState.test.js +++ b/packages/@react-stately/pagination/test/usePaginationState.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {act, renderHook} from 'react-hooks-testing-library'; import React from 'react'; import {usePaginationState} from '../'; diff --git a/packages/@react-stately/radio/index.ts b/packages/@react-stately/radio/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-stately/radio/index.ts +++ b/packages/@react-stately/radio/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-stately/radio/package.json b/packages/@react-stately/radio/package.json index 6df3baac626..d94eff153a6 100644 --- a/packages/@react-stately/radio/package.json +++ b/packages/@react-stately/radio/package.json @@ -2,6 +2,7 @@ "name": "@react-stately/radio", "version": "3.0.0-rc.1", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-stately/radio/src/index.ts b/packages/@react-stately/radio/src/index.ts index c00e0d232b8..e5a4a160f26 100644 --- a/packages/@react-stately/radio/src/index.ts +++ b/packages/@react-stately/radio/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useRadioGroupState'; diff --git a/packages/@react-stately/radio/src/useRadioGroupState.ts b/packages/@react-stately/radio/src/useRadioGroupState.ts index d0524bdf5b8..5626e9a4ba1 100644 --- a/packages/@react-stately/radio/src/useRadioGroupState.ts +++ b/packages/@react-stately/radio/src/useRadioGroupState.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {RadioGroupProps} from '@react-types/radio'; import {useControlledState} from '@react-stately/utils'; diff --git a/packages/@react-stately/searchfield/index.ts b/packages/@react-stately/searchfield/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-stately/searchfield/index.ts +++ b/packages/@react-stately/searchfield/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-stately/searchfield/package.json b/packages/@react-stately/searchfield/package.json index 90b15eb12a8..2e8d158349a 100644 --- a/packages/@react-stately/searchfield/package.json +++ b/packages/@react-stately/searchfield/package.json @@ -2,6 +2,7 @@ "name": "@react-stately/searchfield", "version": "3.0.0-rc.1", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-stately/searchfield/src/index.ts b/packages/@react-stately/searchfield/src/index.ts index 39fe04f2050..9126ca3a8f8 100644 --- a/packages/@react-stately/searchfield/src/index.ts +++ b/packages/@react-stately/searchfield/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useSearchFieldState'; diff --git a/packages/@react-stately/searchfield/src/useSearchFieldState.ts b/packages/@react-stately/searchfield/src/useSearchFieldState.ts index 3a41b5fffb6..84e49b4536c 100644 --- a/packages/@react-stately/searchfield/src/useSearchFieldState.ts +++ b/packages/@react-stately/searchfield/src/useSearchFieldState.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {useControlledState} from '@react-stately/utils'; import {ValueBase} from '@react-types/shared'; diff --git a/packages/@react-stately/searchfield/test/useSearchFieldState.test.js b/packages/@react-stately/searchfield/test/useSearchFieldState.test.js index b981ed204b2..c547ad15e09 100644 --- a/packages/@react-stately/searchfield/test/useSearchFieldState.test.js +++ b/packages/@react-stately/searchfield/test/useSearchFieldState.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {act, renderHook} from 'react-hooks-testing-library'; import {useSearchFieldState} from '../'; diff --git a/packages/@react-stately/selection/index.ts b/packages/@react-stately/selection/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-stately/selection/index.ts +++ b/packages/@react-stately/selection/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-stately/selection/package.json b/packages/@react-stately/selection/package.json index 8d668cf94d2..b55daf31b49 100644 --- a/packages/@react-stately/selection/package.json +++ b/packages/@react-stately/selection/package.json @@ -2,6 +2,7 @@ "name": "@react-stately/selection", "version": "3.0.0-alpha.2", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "private": true, "main": "dist/main.js", "module": "dist/module.js", @@ -13,7 +14,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-stately/selection/src/Selection.ts b/packages/@react-stately/selection/src/Selection.ts index fee391cc1f9..3d1c3d36f3b 100644 --- a/packages/@react-stately/selection/src/Selection.ts +++ b/packages/@react-stately/selection/src/Selection.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {Key} from 'react'; /** diff --git a/packages/@react-stately/selection/src/SelectionManager.ts b/packages/@react-stately/selection/src/SelectionManager.ts index 976e025d27b..ade20f499f4 100644 --- a/packages/@react-stately/selection/src/SelectionManager.ts +++ b/packages/@react-stately/selection/src/SelectionManager.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {Collection} from '@react-stately/collections'; import {Key} from 'react'; import {MultipleSelectionManager, MultipleSelectionState} from './types'; diff --git a/packages/@react-stately/selection/src/index.ts b/packages/@react-stately/selection/src/index.ts index ab37403c9dd..9d8fb705263 100644 --- a/packages/@react-stately/selection/src/index.ts +++ b/packages/@react-stately/selection/src/index.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useMultipleSelectionState'; export * from './SelectionManager'; export * from './types'; diff --git a/packages/@react-stately/selection/src/types.ts b/packages/@react-stately/selection/src/types.ts index 631b1a582b1..1e3250c9e1f 100644 --- a/packages/@react-stately/selection/src/types.ts +++ b/packages/@react-stately/selection/src/types.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {Key} from 'react'; import {SelectionMode} from '@react-types/shared'; diff --git a/packages/@react-stately/selection/src/useMultipleSelectionState.ts b/packages/@react-stately/selection/src/useMultipleSelectionState.ts index 173e5c221ee..e247eafad37 100644 --- a/packages/@react-stately/selection/src/useMultipleSelectionState.ts +++ b/packages/@react-stately/selection/src/useMultipleSelectionState.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {MultipleSelection} from '@react-types/shared'; import {MultipleSelectionState} from './types'; import {Selection} from './Selection'; diff --git a/packages/@react-stately/splitview/index.ts b/packages/@react-stately/splitview/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-stately/splitview/index.ts +++ b/packages/@react-stately/splitview/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-stately/splitview/package.json b/packages/@react-stately/splitview/package.json index a38b8515d7f..64d0ace01eb 100644 --- a/packages/@react-stately/splitview/package.json +++ b/packages/@react-stately/splitview/package.json @@ -2,6 +2,7 @@ "name": "@react-stately/splitview", "version": "3.0.0-alpha.2", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-stately/splitview/src/index.ts b/packages/@react-stately/splitview/src/index.ts index 515536ae85c..89982aeff55 100644 --- a/packages/@react-stately/splitview/src/index.ts +++ b/packages/@react-stately/splitview/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useSplitViewState'; diff --git a/packages/@react-stately/splitview/src/useSplitViewState.ts b/packages/@react-stately/splitview/src/useSplitViewState.ts index 051dde9548e..c1ec840f53a 100644 --- a/packages/@react-stately/splitview/src/useSplitViewState.ts +++ b/packages/@react-stately/splitview/src/useSplitViewState.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {SplitViewState, SplitViewStatelyProps} from '@react-types/shared'; import {useControlledState} from '@react-stately/utils'; import {useRef, useState} from 'react'; diff --git a/packages/@react-stately/tabs/index.ts b/packages/@react-stately/tabs/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-stately/tabs/index.ts +++ b/packages/@react-stately/tabs/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-stately/tabs/package.json b/packages/@react-stately/tabs/package.json index 64cc5aff432..bbf5bf6012a 100644 --- a/packages/@react-stately/tabs/package.json +++ b/packages/@react-stately/tabs/package.json @@ -2,6 +2,7 @@ "name": "@react-stately/tabs", "version": "3.0.0-alpha.2", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-stately/tabs/src/index.ts b/packages/@react-stately/tabs/src/index.ts index f0ef2570c5b..a6cf5024679 100644 --- a/packages/@react-stately/tabs/src/index.ts +++ b/packages/@react-stately/tabs/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useTabListState'; diff --git a/packages/@react-stately/tabs/src/useTabListState.ts b/packages/@react-stately/tabs/src/useTabListState.ts index 763647ccdb4..402e130c11f 100644 --- a/packages/@react-stately/tabs/src/useTabListState.ts +++ b/packages/@react-stately/tabs/src/useTabListState.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import React, {ReactElement, useEffect} from 'react'; import {useControlledState} from '@react-stately/utils'; diff --git a/packages/@react-stately/tabs/test/useTabListStateJest.test.js b/packages/@react-stately/tabs/test/useTabListStateJest.test.js index 308ba32dd69..3b3c558d936 100644 --- a/packages/@react-stately/tabs/test/useTabListStateJest.test.js +++ b/packages/@react-stately/tabs/test/useTabListStateJest.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {act, renderHook} from 'react-hooks-testing-library'; import assert from 'assert'; import React from 'react'; diff --git a/packages/@react-stately/toast/index.ts b/packages/@react-stately/toast/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-stately/toast/index.ts +++ b/packages/@react-stately/toast/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-stately/toast/package.json b/packages/@react-stately/toast/package.json index c1c0eb58f4c..2b37ba6dc3d 100644 --- a/packages/@react-stately/toast/package.json +++ b/packages/@react-stately/toast/package.json @@ -2,6 +2,7 @@ "name": "@react-stately/toast", "version": "3.0.0-alpha.1", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2" diff --git a/packages/@react-stately/toast/src/index.ts b/packages/@react-stately/toast/src/index.ts index 8b7d0dd438d..b06ce5fd5d4 100644 --- a/packages/@react-stately/toast/src/index.ts +++ b/packages/@react-stately/toast/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useToastState'; diff --git a/packages/@react-stately/toast/src/useToastState.ts b/packages/@react-stately/toast/src/useToastState.ts index a669036a756..775b1a42e83 100644 --- a/packages/@react-stately/toast/src/useToastState.ts +++ b/packages/@react-stately/toast/src/useToastState.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {ToastStateBase} from '@react-types/toast'; import {useState} from 'react'; diff --git a/packages/@react-stately/toast/test/useToastState.test.js b/packages/@react-stately/toast/test/useToastState.test.js index 3b7e1552031..60a38d0b9fb 100644 --- a/packages/@react-stately/toast/test/useToastState.test.js +++ b/packages/@react-stately/toast/test/useToastState.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {act, renderHook} from 'react-hooks-testing-library'; import {useToastState} from '../'; diff --git a/packages/@react-stately/toggle/index.ts b/packages/@react-stately/toggle/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-stately/toggle/index.ts +++ b/packages/@react-stately/toggle/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-stately/toggle/package.json b/packages/@react-stately/toggle/package.json index ba6b3261b7a..7155a42a3f4 100644 --- a/packages/@react-stately/toggle/package.json +++ b/packages/@react-stately/toggle/package.json @@ -2,6 +2,7 @@ "name": "@react-stately/toggle", "version": "3.0.0-rc.1", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-stately/toggle/src/index.ts b/packages/@react-stately/toggle/src/index.ts index 686f2bfac76..a269b3366c7 100644 --- a/packages/@react-stately/toggle/src/index.ts +++ b/packages/@react-stately/toggle/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useToggleState'; diff --git a/packages/@react-stately/toggle/src/useToggleState.ts b/packages/@react-stately/toggle/src/useToggleState.ts index 18355c8c5b9..ac01bc5c67d 100644 --- a/packages/@react-stately/toggle/src/useToggleState.ts +++ b/packages/@react-stately/toggle/src/useToggleState.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {CheckboxBase} from '@react-types/checkbox'; import {useControlledState} from '@react-stately/utils'; diff --git a/packages/@react-stately/tooltip/index.ts b/packages/@react-stately/tooltip/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-stately/tooltip/index.ts +++ b/packages/@react-stately/tooltip/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-stately/tooltip/package.json b/packages/@react-stately/tooltip/package.json index 37c749d0b9d..f7525d73eec 100644 --- a/packages/@react-stately/tooltip/package.json +++ b/packages/@react-stately/tooltip/package.json @@ -2,6 +2,7 @@ "name": "@react-stately/tooltip", "version": "3.0.0-alpha.2", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-stately/tooltip/src/TooltipManager.ts b/packages/@react-stately/tooltip/src/TooltipManager.ts index 5f425e5d1ee..284f8b55181 100644 --- a/packages/@react-stately/tooltip/src/TooltipManager.ts +++ b/packages/@react-stately/tooltip/src/TooltipManager.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export class TooltipManager { visibleTooltips?: null | {triggerId: string, state: {open: boolean, setOpen(value: boolean), tooltipManager: string}} @@ -5,8 +17,6 @@ export class TooltipManager { hoverShowTimeout?: null | ReturnType; // Arbitrary timeout lengths in place for current demo purposes. Delays to be adjusted for warmup / cooldown logic PR - // https://git.corp.adobe.com/Spectrum/spectrum-dna/blob/master/data/elements/tooltip/TooltipBase.mjs - // https://git.corp.adobe.com/Spectrum/spectrum-dna/blob/aab3963cebeb16df0081a805a1394fbc2d46a851/data/globals/GlobalAnimation.mjs constructor() { this.visibleTooltips = null; this.hoverHideTimeout = null; diff --git a/packages/@react-stately/tooltip/src/index.ts b/packages/@react-stately/tooltip/src/index.ts index 521dcc2fb46..d70f73203c7 100644 --- a/packages/@react-stately/tooltip/src/index.ts +++ b/packages/@react-stately/tooltip/src/index.ts @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useTooltipTriggerState'; export * from './TooltipManager'; diff --git a/packages/@react-stately/tooltip/src/useTooltipTriggerState.ts b/packages/@react-stately/tooltip/src/useTooltipTriggerState.ts index 3463350fbd5..2aba8d9ee87 100644 --- a/packages/@react-stately/tooltip/src/useTooltipTriggerState.ts +++ b/packages/@react-stately/tooltip/src/useTooltipTriggerState.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {TooltipManager} from './TooltipManager'; import {TooltipTriggerProps} from '@react-types/tooltip'; import {useControlledState} from '@react-stately/utils'; diff --git a/packages/@react-stately/tree/index.ts b/packages/@react-stately/tree/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-stately/tree/index.ts +++ b/packages/@react-stately/tree/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-stately/tree/package.json b/packages/@react-stately/tree/package.json index 527663bb266..c7c540eacd2 100644 --- a/packages/@react-stately/tree/package.json +++ b/packages/@react-stately/tree/package.json @@ -2,6 +2,7 @@ "name": "@react-stately/tree", "version": "3.0.0-alpha.2", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/packages/@react-stately/tree/src/index.ts b/packages/@react-stately/tree/src/index.ts index ed4782f970d..362b4ab8386 100644 --- a/packages/@react-stately/tree/src/index.ts +++ b/packages/@react-stately/tree/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useTreeState'; diff --git a/packages/@react-stately/tree/src/useTreeState.ts b/packages/@react-stately/tree/src/useTreeState.ts index e412857464b..bc01285f23f 100644 --- a/packages/@react-stately/tree/src/useTreeState.ts +++ b/packages/@react-stately/tree/src/useTreeState.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {CollectionBase, Expandable, MultipleSelection} from '@react-types/shared'; import {CollectionBuilder, TreeCollection} from '@react-stately/collections'; import {Key, useMemo, useState} from 'react'; diff --git a/packages/@react-stately/utils/index.ts b/packages/@react-stately/utils/index.ts index 8420b1093fd..1210ae1e402 100644 --- a/packages/@react-stately/utils/index.ts +++ b/packages/@react-stately/utils/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/packages/@react-stately/utils/package.json b/packages/@react-stately/utils/package.json index 475c261aa01..ad93b525549 100644 --- a/packages/@react-stately/utils/package.json +++ b/packages/@react-stately/utils/package.json @@ -2,6 +2,7 @@ "name": "@react-stately/utils", "version": "3.0.0-rc.1", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -12,7 +13,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "peerDependencies": { "react": "^16.8.0" diff --git a/packages/@react-stately/utils/src/index.ts b/packages/@react-stately/utils/src/index.ts index 3a9d887d899..6fe8b55c923 100644 --- a/packages/@react-stately/utils/src/index.ts +++ b/packages/@react-stately/utils/src/index.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './useControlledState'; diff --git a/packages/@react-stately/utils/src/useControlledState.ts b/packages/@react-stately/utils/src/useControlledState.ts index 5d676236e83..03ffb6c70d0 100644 --- a/packages/@react-stately/utils/src/useControlledState.ts +++ b/packages/@react-stately/utils/src/useControlledState.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {useCallback, useRef, useState} from 'react'; export function useControlledState( diff --git a/packages/@react-stately/utils/test/useControlledState.test.js b/packages/@react-stately/utils/test/useControlledState.test.js index 2ff34cf4f41..7aa467caf56 100644 --- a/packages/@react-stately/utils/test/useControlledState.test.js +++ b/packages/@react-stately/utils/test/useControlledState.test.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {act, renderHook} from 'react-hooks-testing-library'; import {cleanup, render} from '@testing-library/react'; import React, {useEffect, useState} from 'react'; diff --git a/packages/@react-types/alert/package.json b/packages/@react-types/alert/package.json index f5c987207b7..fb51be6e72b 100644 --- a/packages/@react-types/alert/package.json +++ b/packages/@react-types/alert/package.json @@ -5,7 +5,7 @@ "types": "src/index.d.ts", "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@react-types/shared": "^3.0.0-alpha.2" diff --git a/packages/@react-types/alert/src/index.d.ts b/packages/@react-types/alert/src/index.d.ts index 906b7da092a..b39a6bffb55 100644 --- a/packages/@react-types/alert/src/index.d.ts +++ b/packages/@react-types/alert/src/index.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMProps, StyleProps} from '@react-types/shared'; import {ReactNode} from 'react'; diff --git a/packages/@react-types/breadcrumbs/package.json b/packages/@react-types/breadcrumbs/package.json index 8f0df1c5e44..88255d480ce 100644 --- a/packages/@react-types/breadcrumbs/package.json +++ b/packages/@react-types/breadcrumbs/package.json @@ -5,7 +5,7 @@ "types": "src/index.d.ts", "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@react-types/shared": "^3.0.0-alpha.2" diff --git a/packages/@react-types/breadcrumbs/src/index.d.ts b/packages/@react-types/breadcrumbs/src/index.d.ts index 5aa4a4b0473..013e784cdc7 100644 --- a/packages/@react-types/breadcrumbs/src/index.d.ts +++ b/packages/@react-types/breadcrumbs/src/index.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMProps, PressEvents, StyleProps} from '@react-types/shared'; import {ReactElement, ReactNode} from 'react'; diff --git a/packages/@react-types/button/package.json b/packages/@react-types/button/package.json index 0fe255fba27..06c49ff2527 100644 --- a/packages/@react-types/button/package.json +++ b/packages/@react-types/button/package.json @@ -5,7 +5,7 @@ "types": "src/index.d.ts", "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@react-types/shared": "^3.0.0-rc.1" diff --git a/packages/@react-types/button/src/index.d.ts b/packages/@react-types/button/src/index.d.ts index d2225e3cc25..590d6297d59 100644 --- a/packages/@react-types/button/src/index.d.ts +++ b/packages/@react-types/button/src/index.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMProps, FocusableProps, HoverEvents, MultipleSelection, PressEvents, StyleProps} from '@react-types/shared'; import {JSXElementConstructor, ReactElement, ReactNode} from 'react'; diff --git a/packages/@react-types/calendar/package.json b/packages/@react-types/calendar/package.json index d1f2be5edb3..8f8714d4f95 100644 --- a/packages/@react-types/calendar/package.json +++ b/packages/@react-types/calendar/package.json @@ -5,7 +5,7 @@ "types": "src/index.d.ts", "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@react-types/shared": "^3.0.0-alpha.2" diff --git a/packages/@react-types/calendar/src/index.d.ts b/packages/@react-types/calendar/src/index.d.ts index 7f8f73d610e..2d760a925b1 100644 --- a/packages/@react-types/calendar/src/index.d.ts +++ b/packages/@react-types/calendar/src/index.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMProps, RangeValue, StyleProps, ValueBase} from '@react-types/shared'; export type DateValue = string | number | Date; diff --git a/packages/@react-types/checkbox/package.json b/packages/@react-types/checkbox/package.json index 12557f14dbf..395866a5559 100644 --- a/packages/@react-types/checkbox/package.json +++ b/packages/@react-types/checkbox/package.json @@ -5,7 +5,7 @@ "types": "src/index.d.ts", "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@react-types/shared": "^3.0.0-rc.1" diff --git a/packages/@react-types/checkbox/src/index.d.ts b/packages/@react-types/checkbox/src/index.d.ts index 6431b770c70..fbc697a6327 100644 --- a/packages/@react-types/checkbox/src/index.d.ts +++ b/packages/@react-types/checkbox/src/index.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMProps, InputBase, StyleProps} from '@react-types/shared'; import {ReactNode} from 'react'; diff --git a/packages/@react-types/datepicker/package.json b/packages/@react-types/datepicker/package.json index 1ee9d12d4eb..fbc86c22ffe 100644 --- a/packages/@react-types/datepicker/package.json +++ b/packages/@react-types/datepicker/package.json @@ -5,7 +5,7 @@ "types": "src/index.d.ts", "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@react-types/shared": "^3.0.0-alpha.2" diff --git a/packages/@react-types/datepicker/src/index.d.ts b/packages/@react-types/datepicker/src/index.d.ts index 07e67a83210..0d7c508307d 100644 --- a/packages/@react-types/datepicker/src/index.d.ts +++ b/packages/@react-types/datepicker/src/index.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMProps, InputBase, LabelableProps, RangeValue, SpectrumLabelableProps, StyleProps, ValueBase} from '@react-types/shared'; export type DateValue = string | number | Date; diff --git a/packages/@react-types/dialog/package.json b/packages/@react-types/dialog/package.json index 32bd52d1828..373aeae3be5 100644 --- a/packages/@react-types/dialog/package.json +++ b/packages/@react-types/dialog/package.json @@ -5,7 +5,7 @@ "types": "src/index.d.ts", "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@react-types/overlays": "^3.0.0-alpha.2", diff --git a/packages/@react-types/dialog/src/index.d.ts b/packages/@react-types/dialog/src/index.d.ts index e7f1ec7cd5d..a4448f8f397 100644 --- a/packages/@react-types/dialog/src/index.d.ts +++ b/packages/@react-types/dialog/src/index.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMProps, StyleProps} from '@react-types/shared'; import {HTMLAttributes, ReactElement, ReactNode, RefObject} from 'react'; import {PositionProps} from '@react-types/overlays'; diff --git a/packages/@react-types/divider/package.json b/packages/@react-types/divider/package.json index 087d5a76849..a23b3792094 100644 --- a/packages/@react-types/divider/package.json +++ b/packages/@react-types/divider/package.json @@ -5,7 +5,7 @@ "types": "src/index.d.ts", "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@react-types/shared": "^3.0.0-rc.1" diff --git a/packages/@react-types/divider/src/index.d.ts b/packages/@react-types/divider/src/index.d.ts index 8e28829dfcd..e2fd6ab2c89 100644 --- a/packages/@react-types/divider/src/index.d.ts +++ b/packages/@react-types/divider/src/index.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMProps, Orientation, StyleProps} from '@react-types/shared'; export interface SpectrumDividerProps extends DOMProps, StyleProps { diff --git a/packages/@react-types/form/package.json b/packages/@react-types/form/package.json index d8ed1839b0a..2fe339d9213 100644 --- a/packages/@react-types/form/package.json +++ b/packages/@react-types/form/package.json @@ -5,7 +5,7 @@ "types": "src/index.d.ts", "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@react-types/shared": "^3.0.0-rc.1" diff --git a/packages/@react-types/form/src/index.d.ts b/packages/@react-types/form/src/index.d.ts index 20f15d1618e..85b0f240bb7 100644 --- a/packages/@react-types/form/src/index.d.ts +++ b/packages/@react-types/form/src/index.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMProps, SpectrumLabelableProps, StyleProps, ValidationState} from '@react-types/shared'; import {ReactElement} from 'react'; diff --git a/packages/@react-types/illustrated-message/package.json b/packages/@react-types/illustrated-message/package.json index 085061b0325..bd0f86cca1d 100644 --- a/packages/@react-types/illustrated-message/package.json +++ b/packages/@react-types/illustrated-message/package.json @@ -5,7 +5,7 @@ "types": "src/index.d.ts", "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@react-types/shared": "^3.0.0-alpha.2" diff --git a/packages/@react-types/illustrated-message/src/index.d.ts b/packages/@react-types/illustrated-message/src/index.d.ts index cd44b0d6359..76d53acb594 100644 --- a/packages/@react-types/illustrated-message/src/index.d.ts +++ b/packages/@react-types/illustrated-message/src/index.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMProps, StyleProps} from '@react-types/shared'; import {ReactElement, ReactNode} from 'react'; diff --git a/packages/@react-types/image/package.json b/packages/@react-types/image/package.json index 770366b3fdf..856d7c5c226 100644 --- a/packages/@react-types/image/package.json +++ b/packages/@react-types/image/package.json @@ -5,7 +5,7 @@ "types": "src/index.d.ts", "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@react-types/shared": "^3.0.0-alpha.1" diff --git a/packages/@react-types/image/src/index.d.ts b/packages/@react-types/image/src/index.d.ts index e7df4c14627..0376bfe507f 100644 --- a/packages/@react-types/image/src/index.d.ts +++ b/packages/@react-types/image/src/index.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMProps, StyleProps} from '@react-types/shared'; export interface ImageProps { diff --git a/packages/@react-types/label/package.json b/packages/@react-types/label/package.json index f23ed2d604e..6573208e8fc 100644 --- a/packages/@react-types/label/package.json +++ b/packages/@react-types/label/package.json @@ -5,7 +5,7 @@ "types": "src/index.d.ts", "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@react-types/shared": "^3.0.0-rc.1" diff --git a/packages/@react-types/label/src/index.d.ts b/packages/@react-types/label/src/index.d.ts index 824bbb34ee5..2366ff8c11e 100644 --- a/packages/@react-types/label/src/index.d.ts +++ b/packages/@react-types/label/src/index.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {Alignment, DOMProps, LabelPosition, NecessityIndicator, StyleProps} from '@react-types/shared'; import {ElementType, ReactNode} from 'react'; diff --git a/packages/@react-types/layout/package.json b/packages/@react-types/layout/package.json index c2cdb322b49..7d5f1c9c53c 100644 --- a/packages/@react-types/layout/package.json +++ b/packages/@react-types/layout/package.json @@ -6,7 +6,7 @@ "types": "src/index.d.ts", "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@react-types/shared": "^3.0.0-rc.1" diff --git a/packages/@react-types/layout/src/flex.d.ts b/packages/@react-types/layout/src/flex.d.ts index a8f2255370f..a1ab3f38812 100644 --- a/packages/@react-types/layout/src/flex.d.ts +++ b/packages/@react-types/layout/src/flex.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMProps, FlexStyleProps} from '@react-types/shared'; import {ReactElement} from 'react'; diff --git a/packages/@react-types/layout/src/grid.d.ts b/packages/@react-types/layout/src/grid.d.ts index 6574ddb7471..565ccac4350 100644 --- a/packages/@react-types/layout/src/grid.d.ts +++ b/packages/@react-types/layout/src/grid.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMProps, GridStyleProps} from '@react-types/shared'; import {ReactNode} from 'react'; diff --git a/packages/@react-types/layout/src/index.d.ts b/packages/@react-types/layout/src/index.d.ts index b687af81f8f..bbc3da83565 100644 --- a/packages/@react-types/layout/src/index.d.ts +++ b/packages/@react-types/layout/src/index.d.ts @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './flex'; export * from './grid'; diff --git a/packages/@react-types/link/package.json b/packages/@react-types/link/package.json index fa4822f51b8..53e4d538141 100644 --- a/packages/@react-types/link/package.json +++ b/packages/@react-types/link/package.json @@ -5,7 +5,7 @@ "types": "src/index.d.ts", "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@react-aria/interactions": "^3.0.0-alpha.2", diff --git a/packages/@react-types/link/src/index.d.ts b/packages/@react-types/link/src/index.d.ts index 324e8342c1b..202a7af3c94 100644 --- a/packages/@react-types/link/src/index.d.ts +++ b/packages/@react-types/link/src/index.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMProps, PressEvents, StyleProps} from '@react-types/shared'; import {ReactNode} from 'react'; diff --git a/packages/@react-types/meter/package.json b/packages/@react-types/meter/package.json index 0d20208896f..ba28ce9e56b 100644 --- a/packages/@react-types/meter/package.json +++ b/packages/@react-types/meter/package.json @@ -5,7 +5,7 @@ "types": "src/index.d.ts", "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@react-types/shared": "^3.0.0-rc.1" diff --git a/packages/@react-types/meter/src/index.d.ts b/packages/@react-types/meter/src/index.d.ts index f6ca058ff8e..f02cb6c0d3d 100644 --- a/packages/@react-types/meter/src/index.d.ts +++ b/packages/@react-types/meter/src/index.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {ProgressBarBaseProps, SpectrumProgressBarBaseProps} from '@react-types/progress'; export type MeterProps = ProgressBarBaseProps; diff --git a/packages/@react-types/numberfield/package.json b/packages/@react-types/numberfield/package.json index ec4212fe677..ae43b83b5a3 100644 --- a/packages/@react-types/numberfield/package.json +++ b/packages/@react-types/numberfield/package.json @@ -5,7 +5,7 @@ "types": "src/index.d.ts", "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@react-types/shared": "^3.0.0-alpha.2" diff --git a/packages/@react-types/numberfield/src/index.d.ts b/packages/@react-types/numberfield/src/index.d.ts index 9d2aa1bf984..e0fa7ced6a7 100644 --- a/packages/@react-types/numberfield/src/index.d.ts +++ b/packages/@react-types/numberfield/src/index.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMProps, InputBase, RangeInputBase, StyleProps, TextInputBase, ValueBase} from '@react-types/shared'; export interface NumberFieldProps extends InputBase, TextInputBase, ValueBase, RangeInputBase { diff --git a/packages/@react-types/overlays/package.json b/packages/@react-types/overlays/package.json index 2a01e7dfe33..44984ff6b83 100644 --- a/packages/@react-types/overlays/package.json +++ b/packages/@react-types/overlays/package.json @@ -5,7 +5,7 @@ "types": "src/index.d.ts", "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@react-types/shared": "^3.0.0-alpha.2" diff --git a/packages/@react-types/overlays/src/index.d.ts b/packages/@react-types/overlays/src/index.d.ts index cddedc92763..5f3545fb05a 100644 --- a/packages/@react-types/overlays/src/index.d.ts +++ b/packages/@react-types/overlays/src/index.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export type Placement = 'bottom' | 'bottom left' | 'bottom right' | 'bottom start' | 'bottom end' | 'top' | 'top left' | 'top right' | 'top start' | 'top end' | 'left' | 'left top' | 'left bottom' | 'start' | 'start top' | 'start bottom' | diff --git a/packages/@react-types/pagination/package.json b/packages/@react-types/pagination/package.json index 505ef43a969..db835013034 100644 --- a/packages/@react-types/pagination/package.json +++ b/packages/@react-types/pagination/package.json @@ -5,7 +5,7 @@ "types": "src/index.d.ts", "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@react-types/shared": "^3.0.0-alpha.2" diff --git a/packages/@react-types/pagination/src/index.d.ts b/packages/@react-types/pagination/src/index.d.ts index d70c354908b..7b49c95191c 100644 --- a/packages/@react-types/pagination/src/index.d.ts +++ b/packages/@react-types/pagination/src/index.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {ValueBase} from '@react-types/shared'; export interface PaginationBase extends ValueBase { diff --git a/packages/@react-types/progress/package.json b/packages/@react-types/progress/package.json index d0ce2830295..f47f6a215e0 100644 --- a/packages/@react-types/progress/package.json +++ b/packages/@react-types/progress/package.json @@ -5,7 +5,7 @@ "types": "src/index.d.ts", "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@react-types/shared": "^3.0.0-rc.1" diff --git a/packages/@react-types/progress/src/index.d.ts b/packages/@react-types/progress/src/index.d.ts index 6e870f8e95c..6b07b0bd99d 100644 --- a/packages/@react-types/progress/src/index.d.ts +++ b/packages/@react-types/progress/src/index.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMProps, LabelPosition, StyleProps} from '@react-types/shared'; import {ReactNode} from 'react'; diff --git a/packages/@react-types/provider/package.json b/packages/@react-types/provider/package.json index 9232d703c00..0d8f1104617 100644 --- a/packages/@react-types/provider/package.json +++ b/packages/@react-types/provider/package.json @@ -5,7 +5,7 @@ "types": "src/index.d.ts", "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@react-types/shared": "^3.0.0-rc.1" diff --git a/packages/@react-types/provider/src/index.d.ts b/packages/@react-types/provider/src/index.d.ts index f3d272fdef9..111246871b0 100644 --- a/packages/@react-types/provider/src/index.d.ts +++ b/packages/@react-types/provider/src/index.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMProps, StyleProps, ValidationState} from '@react-types/shared'; import {ReactNode} from 'react'; diff --git a/packages/@react-types/radio/package.json b/packages/@react-types/radio/package.json index 790138c8ab3..f87a9f178a7 100644 --- a/packages/@react-types/radio/package.json +++ b/packages/@react-types/radio/package.json @@ -5,7 +5,7 @@ "types": "src/index.d.ts", "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@react-types/shared": "^3.0.0-rc.1" diff --git a/packages/@react-types/radio/src/index.d.ts b/packages/@react-types/radio/src/index.d.ts index 107edc99828..60fc6d7dc4b 100644 --- a/packages/@react-types/radio/src/index.d.ts +++ b/packages/@react-types/radio/src/index.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import { DOMProps, FocusableProps, diff --git a/packages/@react-types/searchfield/package.json b/packages/@react-types/searchfield/package.json index a6f075f9288..13ff37e4e02 100644 --- a/packages/@react-types/searchfield/package.json +++ b/packages/@react-types/searchfield/package.json @@ -5,7 +5,7 @@ "types": "src/index.d.ts", "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@react-types/textfield": "^3.0.0-rc.1" diff --git a/packages/@react-types/searchfield/src/index.d.ts b/packages/@react-types/searchfield/src/index.d.ts index ceaabf4384a..eafad9fb4c4 100644 --- a/packages/@react-types/searchfield/src/index.d.ts +++ b/packages/@react-types/searchfield/src/index.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {SpectrumTextFieldProps, TextFieldProps} from '@react-types/textfield'; export interface SearchFieldProps extends TextFieldProps { diff --git a/packages/@react-types/shared/package.json b/packages/@react-types/shared/package.json index 7958dc3996d..47e670391a7 100644 --- a/packages/@react-types/shared/package.json +++ b/packages/@react-types/shared/package.json @@ -5,7 +5,7 @@ "types": "src/index.d.ts", "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "peerDependencies": { "react": "^16.8.0" diff --git a/packages/@react-types/shared/src/collections.d.ts b/packages/@react-types/shared/src/collections.d.ts index 14d7b2b2273..b80c31dc58b 100644 --- a/packages/@react-types/shared/src/collections.d.ts +++ b/packages/@react-types/shared/src/collections.d.ts @@ -1,4 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ import {Key, ReactElement, ReactNode} from 'react'; export interface ItemProps { diff --git a/packages/@react-types/shared/src/css.d.ts b/packages/@react-types/shared/src/css.d.ts index 8883d8175e9..346a09842ff 100644 --- a/packages/@react-types/shared/src/css.d.ts +++ b/packages/@react-types/shared/src/css.d.ts @@ -1,4 +1,15 @@ -// https://github.com/Microsoft/TypeScript/issues/2709 hopefully move more centrally later +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + declare module '*.css' { const content: any; export default content; diff --git a/packages/@react-types/shared/src/dna.d.ts b/packages/@react-types/shared/src/dna.d.ts index 77b7d2d2dce..90ff947490b 100644 --- a/packages/@react-types/shared/src/dna.d.ts +++ b/packages/@react-types/shared/src/dna.d.ts @@ -1,4 +1,14 @@ -// This file is generated by lib/varsToTypeScript.js! DO NOT EDIT. +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ export type DimensionValue = | 'size-0' diff --git a/packages/@react-types/shared/src/dnd.d.ts b/packages/@react-types/shared/src/dnd.d.ts index 09c103f5efd..1e5571e7350 100644 --- a/packages/@react-types/shared/src/dnd.d.ts +++ b/packages/@react-types/shared/src/dnd.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {Key, ReactNode} from 'react'; export interface DndBase { diff --git a/packages/@react-types/shared/src/dom.d.ts b/packages/@react-types/shared/src/dom.d.ts index 1ff093a6700..bcc2c014f6f 100644 --- a/packages/@react-types/shared/src/dom.d.ts +++ b/packages/@react-types/shared/src/dom.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {ClipboardEventHandler, CompositionEventHandler, FormEventHandler, ReactEventHandler} from 'react'; // A set of common DOM props that are allowed on any component diff --git a/packages/@react-types/shared/src/events.d.ts b/packages/@react-types/shared/src/events.d.ts index c996573e0c2..c7c72ad971a 100644 --- a/packages/@react-types/shared/src/events.d.ts +++ b/packages/@react-types/shared/src/events.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import { FocusEvent as ReactFocusEvent, KeyboardEvent as ReactKeyboardEvent, diff --git a/packages/@react-types/shared/src/index.d.ts b/packages/@react-types/shared/src/index.d.ts index f379a7af04c..1ebd1edbdbb 100644 --- a/packages/@react-types/shared/src/index.d.ts +++ b/packages/@react-types/shared/src/index.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './dom'; export * from './inputs'; export * from './selection'; diff --git a/packages/@react-types/shared/src/inputs.d.ts b/packages/@react-types/shared/src/inputs.d.ts index 64985dbb82b..101a68fae02 100644 --- a/packages/@react-types/shared/src/inputs.d.ts +++ b/packages/@react-types/shared/src/inputs.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {FocusableProps} from './events'; export type ValidationState = 'valid' | 'invalid'; diff --git a/packages/@react-types/shared/src/labelable.d.ts b/packages/@react-types/shared/src/labelable.d.ts index a8e0a687aff..121b5c2f121 100644 --- a/packages/@react-types/shared/src/labelable.d.ts +++ b/packages/@react-types/shared/src/labelable.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {ReactNode} from 'react'; export type LabelPosition = 'top' | 'side'; diff --git a/packages/@react-types/shared/src/orientation.d.ts b/packages/@react-types/shared/src/orientation.d.ts index 5c7be1d0550..6c79a0dfddc 100644 --- a/packages/@react-types/shared/src/orientation.d.ts +++ b/packages/@react-types/shared/src/orientation.d.ts @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export type Orientation = 'horizontal' | 'vertical'; diff --git a/packages/@react-types/shared/src/refs.d.ts b/packages/@react-types/shared/src/refs.d.ts index e3d96e78b27..8d1afa0b44d 100644 --- a/packages/@react-types/shared/src/refs.d.ts +++ b/packages/@react-types/shared/src/refs.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {Ref} from 'react'; export interface DOMRefValue { diff --git a/packages/@react-types/shared/src/removable.d.ts b/packages/@react-types/shared/src/removable.d.ts index 6c06846c60e..6c933f299fb 100644 --- a/packages/@react-types/shared/src/removable.d.ts +++ b/packages/@react-types/shared/src/removable.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {SyntheticEvent} from 'react'; export interface Removable { diff --git a/packages/@react-types/shared/src/selection.d.ts b/packages/@react-types/shared/src/selection.d.ts index 371b118c876..4ffe239d564 100644 --- a/packages/@react-types/shared/src/selection.d.ts +++ b/packages/@react-types/shared/src/selection.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export interface SelectionOptions { allowsSelection?: boolean, allowsMultipleSelection?: boolean, diff --git a/packages/@react-types/shared/src/splitview.d.ts b/packages/@react-types/shared/src/splitview.d.ts index 72b9ca72a71..42a63f1316a 100644 --- a/packages/@react-types/shared/src/splitview.d.ts +++ b/packages/@react-types/shared/src/splitview.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import { Dispatch, MouseEventHandler, diff --git a/packages/@react-types/shared/src/style.d.ts b/packages/@react-types/shared/src/style.d.ts index de52864c33a..1421bfa6d85 100644 --- a/packages/@react-types/shared/src/style.d.ts +++ b/packages/@react-types/shared/src/style.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {BackgroundColorValue, BorderColorValue, BorderRadiusValue, BorderSizeValue, DimensionValue} from './dna'; import {CSSProperties} from 'react'; diff --git a/packages/@react-types/statuslight/package.json b/packages/@react-types/statuslight/package.json index 42630f35701..2aa6fb474dd 100644 --- a/packages/@react-types/statuslight/package.json +++ b/packages/@react-types/statuslight/package.json @@ -5,7 +5,7 @@ "types": "src/index.d.ts", "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@react-types/shared": "^3.0.0-rc.1" diff --git a/packages/@react-types/statuslight/src/index.d.ts b/packages/@react-types/statuslight/src/index.d.ts index d481c3edbaa..90016933564 100644 --- a/packages/@react-types/statuslight/src/index.d.ts +++ b/packages/@react-types/statuslight/src/index.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMProps, StyleProps} from '@react-types/shared'; import {ReactNode} from 'react'; diff --git a/packages/@react-types/switch/package.json b/packages/@react-types/switch/package.json index 4ffcd6186a1..9939c4d79c2 100644 --- a/packages/@react-types/switch/package.json +++ b/packages/@react-types/switch/package.json @@ -5,7 +5,7 @@ "types": "src/index.d.ts", "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@react-types/checkbox": "^3.0.0-rc.1", diff --git a/packages/@react-types/switch/src/index.d.ts b/packages/@react-types/switch/src/index.d.ts index 6d4efd480b8..9813998db8c 100644 --- a/packages/@react-types/switch/src/index.d.ts +++ b/packages/@react-types/switch/src/index.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {CheckboxBase} from '@react-types/checkbox'; import {DOMProps, StyleProps} from '@react-types/shared'; diff --git a/packages/@react-types/tag/package.json b/packages/@react-types/tag/package.json index 325d901da44..0a15963bebe 100644 --- a/packages/@react-types/tag/package.json +++ b/packages/@react-types/tag/package.json @@ -5,7 +5,7 @@ "types": "src/index.d.ts", "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@react-types/shared": "^3.0.0-alpha.2" diff --git a/packages/@react-types/tag/src/index.d.ts b/packages/@react-types/tag/src/index.d.ts index 7f2e858e130..f5b22c1b8cb 100644 --- a/packages/@react-types/tag/src/index.d.ts +++ b/packages/@react-types/tag/src/index.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMProps, MultipleSelectionBase, Removable, StyleProps} from '@react-types/shared'; import {ReactChild, ReactElement, ReactNode} from 'react'; diff --git a/packages/@react-types/textfield/package.json b/packages/@react-types/textfield/package.json index 4cbfd380036..aca5070d676 100644 --- a/packages/@react-types/textfield/package.json +++ b/packages/@react-types/textfield/package.json @@ -5,7 +5,7 @@ "types": "src/index.d.ts", "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@react-types/shared": "^3.0.0-rc.1" diff --git a/packages/@react-types/textfield/src/index.d.ts b/packages/@react-types/textfield/src/index.d.ts index e14fcaeef96..29ef55236cc 100644 --- a/packages/@react-types/textfield/src/index.d.ts +++ b/packages/@react-types/textfield/src/index.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {FocusableRefValue, InputBase, LabelableProps, SpectrumLabelableProps, StyleProps, TextInputBase, TextInputDOMProps, ValueBase} from '@react-types/shared'; import {ReactElement} from 'react'; diff --git a/packages/@react-types/toast/package.json b/packages/@react-types/toast/package.json index 6559f8d5332..f1fbd78fa2c 100644 --- a/packages/@react-types/toast/package.json +++ b/packages/@react-types/toast/package.json @@ -5,7 +5,7 @@ "types": "src/index.d.ts", "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@react-types/shared": "^3.0.0-alpha.2" diff --git a/packages/@react-types/toast/src/index.d.ts b/packages/@react-types/toast/src/index.d.ts index 7c337cc9c25..05843a725b2 100644 --- a/packages/@react-types/toast/src/index.d.ts +++ b/packages/@react-types/toast/src/index.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMProps, StyleProps} from '@react-types/shared'; import {ReactNode} from 'react'; diff --git a/packages/@react-types/tooltip/package.json b/packages/@react-types/tooltip/package.json index 99975514dee..a4cf336c958 100644 --- a/packages/@react-types/tooltip/package.json +++ b/packages/@react-types/tooltip/package.json @@ -5,7 +5,7 @@ "types": "src/index.d.ts", "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@react-types/overlays": "^3.0.0-alpha.2" diff --git a/packages/@react-types/tooltip/src/index.d.ts b/packages/@react-types/tooltip/src/index.d.ts index 15178d26c1d..8334389b871 100644 --- a/packages/@react-types/tooltip/src/index.d.ts +++ b/packages/@react-types/tooltip/src/index.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMProps, StyleProps} from '@react-types/shared'; import {PositionProps} from '@react-types/overlays'; import {ReactElement, ReactNode, RefObject} from 'react'; diff --git a/packages/@react-types/typography/package.json b/packages/@react-types/typography/package.json index 917343e6b9a..129cc5b0dc3 100644 --- a/packages/@react-types/typography/package.json +++ b/packages/@react-types/typography/package.json @@ -5,7 +5,7 @@ "types": "src/index.d.ts", "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@react-types/shared": "^3.0.0-alpha.1" diff --git a/packages/@react-types/typography/src/heading.d.ts b/packages/@react-types/typography/src/heading.d.ts index 5133c2198f6..17f7a937229 100644 --- a/packages/@react-types/typography/src/heading.d.ts +++ b/packages/@react-types/typography/src/heading.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMProps, StyleProps} from '@react-types/shared'; import {ReactElement} from 'react'; diff --git a/packages/@react-types/typography/src/index.d.ts b/packages/@react-types/typography/src/index.d.ts index 7f6dfb02aa6..06f14a6d789 100644 --- a/packages/@react-types/typography/src/index.d.ts +++ b/packages/@react-types/typography/src/index.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './heading'; export * from './keyboard'; export * from './text'; diff --git a/packages/@react-types/typography/src/keyboard.d.ts b/packages/@react-types/typography/src/keyboard.d.ts index 6a998086772..c2a55e215d7 100644 --- a/packages/@react-types/typography/src/keyboard.d.ts +++ b/packages/@react-types/typography/src/keyboard.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMProps, StyleProps} from '@react-types/shared'; import {ReactElement, ReactNode} from 'react'; diff --git a/packages/@react-types/typography/src/text.d.ts b/packages/@react-types/typography/src/text.d.ts index b890213af3e..ed035bace21 100644 --- a/packages/@react-types/typography/src/text.d.ts +++ b/packages/@react-types/typography/src/text.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMProps, StyleProps} from '@react-types/shared'; import {ReactElement, ReactNode} from 'react'; diff --git a/packages/@react-types/well/package.json b/packages/@react-types/well/package.json index bca71f394c7..7b301b1cbe9 100644 --- a/packages/@react-types/well/package.json +++ b/packages/@react-types/well/package.json @@ -5,7 +5,7 @@ "types": "src/index.d.ts", "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@react-types/shared": "^3.0.0-rc.1" diff --git a/packages/@react-types/well/src/index.d.ts b/packages/@react-types/well/src/index.d.ts index 93fd931872f..1c311d5802b 100644 --- a/packages/@react-types/well/src/index.d.ts +++ b/packages/@react-types/well/src/index.d.ts @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMProps, StyleProps} from '@react-types/shared'; import {ReactNode} from 'react'; diff --git a/packages/@spectrum-icons/build-tools/README.md b/packages/@spectrum-icons/build-tools/README.md index ef64b879f5b..fc3bb1df9ba 100644 --- a/packages/@spectrum-icons/build-tools/README.md +++ b/packages/@spectrum-icons/build-tools/README.md @@ -1,5 +1,7 @@ # Generating icon packages +โš ๏ธ Under Construction โš ๏ธ + A4U creates React components of icon sets. These are useful to use standalone, however, they cannot automatically pick up things like the color or scale from a React Spectrum application. To use your custom icon sets from A4U the same way that you can use our core set of icons, we have this build tool which will take all the icons in a package you point to and wrap them in our `` component. diff --git a/packages/@spectrum-icons/build-tools/generateIcons.js b/packages/@spectrum-icons/build-tools/generateIcons.js index d6196ef0ff3..a1e065cd0c3 100644 --- a/packages/@spectrum-icons/build-tools/generateIcons.js +++ b/packages/@spectrum-icons/build-tools/generateIcons.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import fs from 'fs-extra'; import path from 'path'; diff --git a/packages/@spectrum-icons/color/package.json b/packages/@spectrum-icons/color/package.json index 4a3372fd8cf..85008a139c9 100644 --- a/packages/@spectrum-icons/color/package.json +++ b/packages/@spectrum-icons/color/package.json @@ -4,11 +4,11 @@ "description": "Spectrum UI components in React", "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "scripts": { - "build": "BUILD_ENV=production babel --root-mode upward src -d . --extensions '.tsx'", - "make-icons": "babel-node --presets @babel/env ./scripts/generateIcons.js -i '[]' && pwd && tsc --project './tsconfig.types.json'" + "build-icons": "BUILD_ENV=production babel --root-mode upward src -d . --extensions '.tsx'", + "make-icons": "babel-node --presets @babel/env ./scripts/generateIcons.js -i '[]' && pwd && ( tsc --project './tsconfig.types.json' || true )" }, "dependencies": { "@adobe/react-spectrum-workflow-color": "^1.0.0", diff --git a/packages/@spectrum-icons/color/scripts/generateIcons.js b/packages/@spectrum-icons/color/scripts/generateIcons.js index b6798498690..0597db9fde7 100644 --- a/packages/@spectrum-icons/color/scripts/generateIcons.js +++ b/packages/@spectrum-icons/color/scripts/generateIcons.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {generateIcons} from '@spectrum-icons/build-tools/generateIcons'; import path from 'path'; diff --git a/packages/@spectrum-icons/color/stories/IconsColor.stories.tsx b/packages/@spectrum-icons/color/stories/IconsColor.stories.tsx index 10dde307ffb..641176d298b 100644 --- a/packages/@spectrum-icons/color/stories/IconsColor.stories.tsx +++ b/packages/@spectrum-icons/color/stories/IconsColor.stories.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import CalendarCheckColor from '../CalendarCheckColor'; import React from 'react'; import {storiesOf} from '@storybook/react'; diff --git a/packages/@spectrum-icons/ui/package.json b/packages/@spectrum-icons/ui/package.json index 00b0373f02a..bda50e880d9 100644 --- a/packages/@spectrum-icons/ui/package.json +++ b/packages/@spectrum-icons/ui/package.json @@ -4,11 +4,11 @@ "description": "Spectrum UI components in React", "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "scripts": { - "build": "BUILD_ENV=production babel --root-mode upward src -d . --extensions '.tsx'", - "make-icons": "babel-node --presets @babel/env ./scripts/generateIcons.js -i '[]' && pwd && tsc --project './tsconfig.types.json'" + "build-icons": "BUILD_ENV=production babel --root-mode upward src -d . --extensions '.tsx'", + "make-icons": "babel-node --presets @babel/env ./scripts/generateIcons.js -i '[]' && pwd && ( tsc --project './tsconfig.types.json' || true )" }, "dependencies": { "@adobe/react-spectrum-ui": "^1.0.0", diff --git a/packages/@spectrum-icons/ui/scripts/generateIcons.js b/packages/@spectrum-icons/ui/scripts/generateIcons.js index 592a37c21bc..f84d3cd360c 100644 --- a/packages/@spectrum-icons/ui/scripts/generateIcons.js +++ b/packages/@spectrum-icons/ui/scripts/generateIcons.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {generateIcons} from '@spectrum-icons/build-tools/generateIcons'; import * as path from 'path'; diff --git a/packages/@spectrum-icons/workflow/package.json b/packages/@spectrum-icons/workflow/package.json index fae2640648e..690777449a4 100644 --- a/packages/@spectrum-icons/workflow/package.json +++ b/packages/@spectrum-icons/workflow/package.json @@ -4,11 +4,11 @@ "description": "Spectrum UI components in React", "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "scripts": { - "build": "BUILD_ENV=production babel --root-mode upward src -d . --extensions '.tsx'", - "make-icons": "babel-node --presets @babel/env ./scripts/generateIcons.js -i '[]' && pwd && tsc --project './tsconfig.types.json'" + "build-icons": "BUILD_ENV=production babel --root-mode upward src -d . --extensions '.tsx'", + "make-icons": "babel-node --presets @babel/env ./scripts/generateIcons.js -i '[]' && pwd && ( tsc --project './tsconfig.types.json' || true )" }, "dependencies": { "@adobe/react-spectrum-workflow": "^1.0.0", diff --git a/packages/@spectrum-icons/workflow/scripts/generateIcons.js b/packages/@spectrum-icons/workflow/scripts/generateIcons.js index 328e7d484f6..9caa4afeb17 100644 --- a/packages/@spectrum-icons/workflow/scripts/generateIcons.js +++ b/packages/@spectrum-icons/workflow/scripts/generateIcons.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {generateIcons} from '@spectrum-icons/build-tools/generateIcons'; import path from 'path'; diff --git a/packages/@spectrum-icons/workflow/stories/IconsWorkflow.stories.tsx b/packages/@spectrum-icons/workflow/stories/IconsWorkflow.stories.tsx index 6fafc4d6f2f..14493de2004 100644 --- a/packages/@spectrum-icons/workflow/stories/IconsWorkflow.stories.tsx +++ b/packages/@spectrum-icons/workflow/stories/IconsWorkflow.stories.tsx @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import Icon3DMaterials from '../3DMaterials'; import Add from '../Add'; import Bell from '../Bell'; diff --git a/packages/README.md b/packages/README.md deleted file mode 100644 index 5ddb045052d..00000000000 --- a/packages/README.md +++ /dev/null @@ -1,39 +0,0 @@ -## V3 Development - -### Adding a new component -We have included a package generator for convenience in getting started with a new component. Run: - -`yarn plop` - -This will start a series of prompts. You can create a React Spectrum component or a standalone single package (useful for tools). - -If doing a standalone, the scope name should be all lower case. Do NOT include the `@` - -If doing a React Spectrum component, and you have an idea of what it will need, you can add all three (aria/spectrum/stately) at once, or you can pick and choose. The generated files may still contain references to the others packages, but we figured it was easier to delete than to add. - -- package names should be all lowercase -- component names should be PascalCase -- component css should be the name of the spectrum-css package, if multiple are required, you can add more manually - - -### Useful patterns - -#### Testing for V2/V3 parity -When writing tests for V3 components that are in V2, it's helpful to write tests that run the same set of asserts against both. If you look in the Button component, you can find examples of this. Jest makes it easy with a string pattern before each test that looks like this: -``` -it.each` - Name | Component | props - ${'Button'} | ${ActionButton} | ${{onPress: onPressSpy, holdAffordance: true}} - ${'V2Button'} | ${V2Button} | ${{variant: 'action', onClick: onPressSpy, holdAffordance: true}} - `('$Name has hold affordance', function ({Component, props}) { -``` -Name is to create a way of differentiating which test ran and is used in the description of the test. - -Each column header can be used inside the test or description. To use it in the test, you can destructure in the test arguments. Each row after the headers corresponds to a test run. - -We typically use `Component` for each of the renderable components we want to send through the test. - -Since v2 and v3 API's have changed, it's best to send in a props object so that the components are as similar as possible. In this example, we can see that v3 uses onPress instead of the v2 onClick. - -#### Avoiding cloneElement? -#### ???s diff --git a/packages/dev/docs/pages/index.mdx b/packages/dev/docs/pages/index.mdx index 7ebcb968ab5..e8c39af4ddf 100644 --- a/packages/dev/docs/pages/index.mdx +++ b/packages/dev/docs/pages/index.mdx @@ -1,3 +1,12 @@ + + import {Layout} from '@react-spectrum/docs'; export default Layout; diff --git a/packages/dev/docs/src/HeaderInfo.js b/packages/dev/docs/src/HeaderInfo.js index a5d0281a266..717939be890 100644 --- a/packages/dev/docs/src/HeaderInfo.js +++ b/packages/dev/docs/src/HeaderInfo.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import js from 'highlight.js/lib/languages/javascript'; import Lowlight from 'react-lowlight'; import React from 'react'; diff --git a/packages/dev/docs/src/Layout.js b/packages/dev/docs/src/Layout.js index 98bcf8bd69f..6794873f5b4 100644 --- a/packages/dev/docs/src/Layout.js +++ b/packages/dev/docs/src/Layout.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import classNames from 'classnames'; import {Divider} from '@react-spectrum/divider'; import docStyles from './docs.css'; diff --git a/packages/dev/docs/src/PropTable.js b/packages/dev/docs/src/PropTable.js index 5c37c3ad5fe..187b0c96907 100644 --- a/packages/dev/docs/src/PropTable.js +++ b/packages/dev/docs/src/PropTable.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import ChevronRight from '@spectrum-icons/workflow/ChevronRight'; import {InterfaceType, Type, TypeContext} from './types'; import React from 'react'; diff --git a/packages/dev/docs/src/ResourceCard.js b/packages/dev/docs/src/ResourceCard.js index 8e81a13c865..1e6eb2f80c3 100644 --- a/packages/dev/docs/src/ResourceCard.js +++ b/packages/dev/docs/src/ResourceCard.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import classNames from 'classnames'; import React from 'react'; import styles from './resourceCard.css'; diff --git a/packages/dev/docs/src/ThemeSwitcher.js b/packages/dev/docs/src/ThemeSwitcher.js index 6f1668a69bf..c8809d1f3cc 100644 --- a/packages/dev/docs/src/ThemeSwitcher.js +++ b/packages/dev/docs/src/ThemeSwitcher.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {ActionButton} from '@react-spectrum/button'; import Light from '@spectrum-icons/workflow/Light'; import Moon from '@spectrum-icons/workflow/Moon'; diff --git a/packages/dev/docs/src/ToC.js b/packages/dev/docs/src/ToC.js index 8991e6a49f7..25deff4acf8 100644 --- a/packages/dev/docs/src/ToC.js +++ b/packages/dev/docs/src/ToC.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import classNames from 'classnames'; import React from 'react'; import sidenavstyles from '@adobe/spectrum-css-temp/components/sidenav/vars.css'; diff --git a/packages/dev/docs/src/attachToToC.js b/packages/dev/docs/src/attachToToC.js index a75e637e2c6..9639872864c 100644 --- a/packages/dev/docs/src/attachToToC.js +++ b/packages/dev/docs/src/attachToToC.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import sideNavStyles from '@adobe/spectrum-css-temp/components/sidenav/vars.css'; export function attachToToC() { diff --git a/packages/dev/docs/src/client.js b/packages/dev/docs/src/client.js index 555f4a62e2c..aad1b323b2a 100644 --- a/packages/dev/docs/src/client.js +++ b/packages/dev/docs/src/client.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {ActionButton} from '@react-spectrum/button'; import {attachToToC} from './attachToToC'; import {BreadcrumbItem, Breadcrumbs} from '@react-spectrum/breadcrumbs'; diff --git a/packages/dev/docs/src/docs.css b/packages/dev/docs/src/docs.css index 2fffdabf80b..9a9c603437f 100644 --- a/packages/dev/docs/src/docs.css +++ b/packages/dev/docs/src/docs.css @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + html, body { margin: 0; } diff --git a/packages/dev/docs/src/headerInfo.css b/packages/dev/docs/src/headerInfo.css index 5d1b81956e9..8b37bad6b9d 100644 --- a/packages/dev/docs/src/headerInfo.css +++ b/packages/dev/docs/src/headerInfo.css @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + .headerInfo { border-spacing: 0; diff --git a/packages/dev/docs/src/index.js b/packages/dev/docs/src/index.js index a00e07f624f..e29e0d1f326 100644 --- a/packages/dev/docs/src/index.js +++ b/packages/dev/docs/src/index.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './Layout'; export * from './PropTable'; export * from './HeaderInfo'; diff --git a/packages/dev/docs/src/resourceCard.css b/packages/dev/docs/src/resourceCard.css index e79e56c2588..975820d7ad3 100644 --- a/packages/dev/docs/src/resourceCard.css +++ b/packages/dev/docs/src/resourceCard.css @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + .resourceCard { width: 224px; margin: 2px 16px 2px 2px; diff --git a/packages/dev/docs/src/syntax-highlight.css b/packages/dev/docs/src/syntax-highlight.css index f1e1b28d90c..51273560445 100644 --- a/packages/dev/docs/src/syntax-highlight.css +++ b/packages/dev/docs/src/syntax-highlight.css @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + .spectrum { --hljs-color: var(--spectrum-global-color-gray-800); diff --git a/packages/dev/docs/src/template.mdx b/packages/dev/docs/src/template.mdx index 7ed8a0c8560..507be08b6cf 100644 --- a/packages/dev/docs/src/template.mdx +++ b/packages/dev/docs/src/template.mdx @@ -1,3 +1,12 @@ + + import {Layout} from '@react-spectrum/docs'; export default Layout; diff --git a/packages/dev/docs/src/toc.css b/packages/dev/docs/src/toc.css index d83bd354757..b5578b427d8 100644 --- a/packages/dev/docs/src/toc.css +++ b/packages/dev/docs/src/toc.css @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + .toc { position: fixed; top: 80px; diff --git a/packages/dev/docs/src/types.js b/packages/dev/docs/src/types.js index bb740467e98..e23fe646f7f 100644 --- a/packages/dev/docs/src/types.js +++ b/packages/dev/docs/src/types.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import Asterisk from '@spectrum-icons/workflow/Asterisk'; import {getDoc} from 'globals-docs'; import Lowlight from 'react-lowlight'; diff --git a/packages/dev/parcel-namer-docs/DocsNamer.js b/packages/dev/parcel-namer-docs/DocsNamer.js index 6d69d4f6778..592cde1c501 100644 --- a/packages/dev/parcel-namer-docs/DocsNamer.js +++ b/packages/dev/parcel-namer-docs/DocsNamer.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + const {Namer} = require('@parcel/plugin'); const path = require('path'); diff --git a/packages/dev/parcel-packager-docs/DocsPackager.js b/packages/dev/parcel-packager-docs/DocsPackager.js index 5a590d7bc07..d0c4276ff82 100644 --- a/packages/dev/parcel-packager-docs/DocsPackager.js +++ b/packages/dev/parcel-packager-docs/DocsPackager.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + const {Packager} = require('@parcel/plugin'); module.exports = new Packager({ diff --git a/packages/dev/parcel-packager-ssg/SSGPackager.js b/packages/dev/parcel-packager-ssg/SSGPackager.js index 41e4255bdc0..5f2ed108143 100644 --- a/packages/dev/parcel-packager-ssg/SSGPackager.js +++ b/packages/dev/parcel-packager-ssg/SSGPackager.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + const {Packager} = require('@parcel/plugin'); const React = require('react'); const ReactDOMServer = require('react-dom/server'); diff --git a/packages/dev/parcel-resolver-docs/DocsResolver.js b/packages/dev/parcel-resolver-docs/DocsResolver.js index d08e98d592a..44566f2687a 100644 --- a/packages/dev/parcel-resolver-docs/DocsResolver.js +++ b/packages/dev/parcel-resolver-docs/DocsResolver.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + const {Resolver} = require('@parcel/plugin'); const NodeResolver = require('@parcel/node-resolver-core').default; diff --git a/packages/dev/parcel-transformer-docs/DocsTransformer.js b/packages/dev/parcel-transformer-docs/DocsTransformer.js index d0cb2cbd9cc..d0072091a91 100644 --- a/packages/dev/parcel-transformer-docs/DocsTransformer.js +++ b/packages/dev/parcel-transformer-docs/DocsTransformer.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + const {Transformer} = require('@parcel/plugin'); const {parse} = require('@babel/parser'); const traverse = require('@babel/traverse').default; diff --git a/packages/dev/parcel-transformer-mdx-docs/MDXFragments.js b/packages/dev/parcel-transformer-mdx-docs/MDXFragments.js index 657a65a20cc..1c9e48970ee 100644 --- a/packages/dev/parcel-transformer-mdx-docs/MDXFragments.js +++ b/packages/dev/parcel-transformer-mdx-docs/MDXFragments.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + const flatMap = require('unist-util-flatmap'); const openingTag = '<>\n'; diff --git a/packages/dev/parcel-transformer-mdx-docs/MDXTransformer.js b/packages/dev/parcel-transformer-mdx-docs/MDXTransformer.js index e70936f5f00..0225628b482 100644 --- a/packages/dev/parcel-transformer-mdx-docs/MDXTransformer.js +++ b/packages/dev/parcel-transformer-mdx-docs/MDXTransformer.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + const {Transformer} = require('@parcel/plugin'); const mdx = require('@mdx-js/mdx'); const flatMap = require('unist-util-flatmap'); diff --git a/plop-actions/renameMany.js b/plop-actions/renameMany.js index ea38a454f6a..bace4dd6e3e 100644 --- a/plop-actions/renameMany.js +++ b/plop-actions/renameMany.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + // actions/rename-many.js const path = require('path'); diff --git a/plop-templates/@react-aria/index.ts.hbs b/plop-templates/@react-aria/index.ts.hbs index 8420b1093fd..bbd9b8c2c84 100644 --- a/plop-templates/@react-aria/index.ts.hbs +++ b/plop-templates/@react-aria/index.ts.hbs @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/plop-templates/@react-aria/package.json.hbs b/plop-templates/@react-aria/package.json.hbs index 959edfd66f2..cfcb58a7d8d 100644 --- a/plop-templates/@react-aria/package.json.hbs +++ b/plop-templates/@react-aria/package.json.hbs @@ -3,6 +3,7 @@ "version": "3.0.0-alpha.1", "private": true, "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -11,7 +12,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2" diff --git a/plop-templates/@react-aria/src/index.ts.hbs b/plop-templates/@react-aria/src/index.ts.hbs index 9d15a4e1e26..609344665e6 100644 --- a/plop-templates/@react-aria/src/index.ts.hbs +++ b/plop-templates/@react-aria/src/index.ts.hbs @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './use{{componentName}}'; diff --git a/plop-templates/@react-aria/src/useComponent.ts.hbs b/plop-templates/@react-aria/src/useComponent.ts.hbs index 8f013ffd3d4..939ba478a49 100644 --- a/plop-templates/@react-aria/src/useComponent.ts.hbs +++ b/plop-templates/@react-aria/src/useComponent.ts.hbs @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + interface {{componentName}}Props { } diff --git a/plop-templates/@react-aria/test/useComponent.test.js.hbs b/plop-templates/@react-aria/test/useComponent.test.js.hbs index 2d9dd19ba30..e2dec7c4de4 100644 --- a/plop-templates/@react-aria/test/useComponent.test.js.hbs +++ b/plop-templates/@react-aria/test/useComponent.test.js.hbs @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {cleanup, render} from '@testing-library/react'; import {renderHook} from 'react-hooks-testing-library'; import React, {useRef} from 'react'; diff --git a/plop-templates/@react-spectrum/index.ts.hbs b/plop-templates/@react-spectrum/index.ts.hbs index 8420b1093fd..bbd9b8c2c84 100644 --- a/plop-templates/@react-spectrum/index.ts.hbs +++ b/plop-templates/@react-spectrum/index.ts.hbs @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/plop-templates/@react-spectrum/package.json.hbs b/plop-templates/@react-spectrum/package.json.hbs index 72994ac69fd..e3742a3a5ec 100644 --- a/plop-templates/@react-spectrum/package.json.hbs +++ b/plop-templates/@react-spectrum/package.json.hbs @@ -3,6 +3,7 @@ "version": "3.0.0-alpha.1", "private": true, "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -19,7 +20,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/plop-templates/@react-spectrum/src/Component.tsx.hbs b/plop-templates/@react-spectrum/src/Component.tsx.hbs index 75205b55cc9..207e19db30c 100644 --- a/plop-templates/@react-spectrum/src/Component.tsx.hbs +++ b/plop-templates/@react-spectrum/src/Component.tsx.hbs @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {classNames, DOMRef, filterDOMProps, useDOMRef, useStyleProps} from '@react-spectrum/utils'; import {mergeProps} from '@react-aria/utils'; import { {{~componentName}}Props} from '@react-types/${{packageName}}'; diff --git a/plop-templates/@react-spectrum/src/index.ts.hbs b/plop-templates/@react-spectrum/src/index.ts.hbs index e415366775c..f52d85fe2af 100644 --- a/plop-templates/@react-spectrum/src/index.ts.hbs +++ b/plop-templates/@react-spectrum/src/index.ts.hbs @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './{{componentName}}'; diff --git a/plop-templates/@react-spectrum/stories/Component.stories.tsx.hbs b/plop-templates/@react-spectrum/stories/Component.stories.tsx.hbs index a140f08ca35..eba5e144f27 100644 --- a/plop-templates/@react-spectrum/stories/Component.stories.tsx.hbs +++ b/plop-templates/@react-spectrum/stories/Component.stories.tsx.hbs @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {action} from '@storybook/addon-actions'; import { {{~componentName~}} , {{componentName~}} Props} from '../'; import React from 'react'; diff --git a/plop-templates/@react-spectrum/test/Component.test.js.hbs b/plop-templates/@react-spectrum/test/Component.test.js.hbs index c06debcb253..1c527b29c45 100644 --- a/plop-templates/@react-spectrum/test/Component.test.js.hbs +++ b/plop-templates/@react-spectrum/test/Component.test.js.hbs @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {{{componentName}}} from '../'; import {cleanup, render} from '@testing-library/react'; import React from 'react'; diff --git a/plop-templates/@react-stately/index.ts.hbs b/plop-templates/@react-stately/index.ts.hbs index 8420b1093fd..bbd9b8c2c84 100644 --- a/plop-templates/@react-stately/index.ts.hbs +++ b/plop-templates/@react-stately/index.ts.hbs @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/plop-templates/@react-stately/package.json.hbs b/plop-templates/@react-stately/package.json.hbs index 90aaa49e617..953097e25fc 100644 --- a/plop-templates/@react-stately/package.json.hbs +++ b/plop-templates/@react-stately/package.json.hbs @@ -2,6 +2,7 @@ "name": "@react-stately/{{packageName}}", "version": "3.0.0-alpha.1", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "private": true, "main": "dist/main.js", "module": "dist/module.js", @@ -11,7 +12,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2", diff --git a/plop-templates/@react-stately/src/index.ts.hbs b/plop-templates/@react-stately/src/index.ts.hbs index 6b29c54b4f2..e4ae5bdf020 100644 --- a/plop-templates/@react-stately/src/index.ts.hbs +++ b/plop-templates/@react-stately/src/index.ts.hbs @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './use{{componentName}}State'; diff --git a/plop-templates/@react-stately/src/useComponentState.ts.hbs b/plop-templates/@react-stately/src/useComponentState.ts.hbs index ec956f69d0f..f85b973ff23 100644 --- a/plop-templates/@react-stately/src/useComponentState.ts.hbs +++ b/plop-templates/@react-stately/src/useComponentState.ts.hbs @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {useControlledState} from '@react-stately/utils'; export function use{{componentName}}State(props/*: type me */)/*: type me */ { diff --git a/plop-templates/@react-types/package.json.hbs b/plop-templates/@react-types/package.json.hbs index 88c7738bed0..c0570ab79df 100644 --- a/plop-templates/@react-types/package.json.hbs +++ b/plop-templates/@react-types/package.json.hbs @@ -2,10 +2,11 @@ "name": "@react-types/{{packageName}}", "version": "3.0.0-alpha.1", "description": "Spectrum UI components in React", + "license": "Apache-2.0", "types": "src/index.d.ts", "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@react-types/shared": "^3.0.0-alpha.1" diff --git a/plop-templates/@react-types/src/index.d.ts.hbs b/plop-templates/@react-types/src/index.d.ts.hbs index d7ff21a9058..8c60fa13513 100644 --- a/plop-templates/@react-types/src/index.d.ts.hbs +++ b/plop-templates/@react-types/src/index.d.ts.hbs @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {DOMProps, StyleProps} from '@react-types/shared'; export interface {{componentName}}Props { diff --git a/plop-templates/@scope/index.ts.hbs b/plop-templates/@scope/index.ts.hbs index 8420b1093fd..bbd9b8c2c84 100644 --- a/plop-templates/@scope/index.ts.hbs +++ b/plop-templates/@scope/index.ts.hbs @@ -1 +1,13 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + export * from './src'; diff --git a/plop-templates/@scope/package.json.hbs b/plop-templates/@scope/package.json.hbs index 696b7720756..fe2af1dc520 100644 --- a/plop-templates/@scope/package.json.hbs +++ b/plop-templates/@scope/package.json.hbs @@ -3,6 +3,7 @@ "version": "3.0.0-alpha.1", "private": true, "description": "Spectrum UI components in React", + "license": "Apache-2.0", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", @@ -11,7 +12,7 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/adobe/react-spectrum" + "url": "https://github.com/adobe-private/react-spectrum-v3" }, "dependencies": { "@babel/runtime": "^7.6.2" diff --git a/plop-templates/@scope/src/index.ts.hbs b/plop-templates/@scope/src/index.ts.hbs index e69de29bb2d..62e4a3bebcf 100644 --- a/plop-templates/@scope/src/index.ts.hbs +++ b/plop-templates/@scope/src/index.ts.hbs @@ -0,0 +1,11 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ diff --git a/plopfile.js b/plopfile.js index 3eb4f24af33..1efebc24bb5 100644 --- a/plopfile.js +++ b/plopfile.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + let rspProject = 'React Spectrum v3'; let otherProject = 'other'; diff --git a/postcss.config.js b/postcss.config.js index 202c005754c..9ec40b37f9b 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + module.exports = { modules: true, plugins: require('@spectrum-css/component-builder/css/processors').processors.concat([ diff --git a/rfcs/2019-v3-architecture.md b/rfcs/2019-v3-architecture.md index 7336323d2f3..1ee47ca709e 100644 --- a/rfcs/2019-v3-architecture.md +++ b/rfcs/2019-v3-architecture.md @@ -1,3 +1,12 @@ + + - Start Date: 2019-02-22 - RFC PR: (leave this empty, to be filled in later) - Authors: Devon Govett diff --git a/rfcs/2019-v3-dom-props.md b/rfcs/2019-v3-dom-props.md index d88ce3bdde4..f570b3fff0c 100644 --- a/rfcs/2019-v3-dom-props.md +++ b/rfcs/2019-v3-dom-props.md @@ -1,3 +1,12 @@ + + - Start Date: 2019-11-20 - RFC PR: (leave this empty, to be filled in later) - Authors: Devon Govett @@ -41,7 +50,7 @@ This can be enabled by supporting explicit props for styling in the API for each ``` -The full list of supported style props can be seen [here](https://github.com/adobe/react-spectrum-v3/blob/db1b2716cbe934323866a8bb5391284e0659e569/packages/%40react-spectrum/view/src/types.ts#L4). +The full list of supported style props can be seen [here](https://github.com/adobe-private/react-spectrum-v3/blob/db1b2716cbe934323866a8bb5391284e0659e569/packages/%40react-spectrum/view/src/types.ts#L4). Applications may also need to take advantage of Spectrum DNA variables for custom UI components, e.g. layout containers. This could be provided in the form of a `` component that would be used in place of `
` or ``. It would add some additional props for backgrounds, borders, paddings, etc. using Spectrum defined variables for the values. A start at this is also included in the PR. diff --git a/rfcs/2019-v3-semantic-elements.md b/rfcs/2019-v3-semantic-elements.md index b1f5f7f8695..9bdd49c244e 100644 --- a/rfcs/2019-v3-semantic-elements.md +++ b/rfcs/2019-v3-semantic-elements.md @@ -1,3 +1,12 @@ + + - Start Date: 2019-10-31 - RFC PR: (leave this empty, to be filled in later) - Authors: Rob Snow, Devon Govett diff --git a/rfcs/2019-v3-slots.md b/rfcs/2019-v3-slots.md index 72d84f25f6a..db42a9d794e 100644 --- a/rfcs/2019-v3-slots.md +++ b/rfcs/2019-v3-slots.md @@ -1,3 +1,12 @@ + + - Start Date: 2019-10-31 - RFC PR: (leave this empty, to be filled in later) - Authors: Rob Snow diff --git a/rfcs/2019-v3-testing.md b/rfcs/2019-v3-testing.md index 4da5bfb8630..28d8c44b94c 100644 --- a/rfcs/2019-v3-testing.md +++ b/rfcs/2019-v3-testing.md @@ -1,3 +1,12 @@ + + - Start Date: 2019-05-13 - RFC PR: (leave this empty, to be filled in later) - Authors: Daniel Lu diff --git a/rfcs/2019-v3-theming.md b/rfcs/2019-v3-theming.md index 1f601ac7f78..65c32a70910 100644 --- a/rfcs/2019-v3-theming.md +++ b/rfcs/2019-v3-theming.md @@ -1,3 +1,12 @@ + + - Start Date: 2019-05-31 - RFC PR: (leave this empty, to be filled in later) - Authors: Devon Govett diff --git a/rfcs/2019-v3-versioning.md b/rfcs/2019-v3-versioning.md index f057c98dc0c..3543d381911 100644 --- a/rfcs/2019-v3-versioning.md +++ b/rfcs/2019-v3-versioning.md @@ -1,3 +1,12 @@ + + - Start Date: 2019-02-26 - RFC PR: (leave this empty, to be filled in later) - Authors: Devon Govett diff --git a/rfcs/template.md b/rfcs/template.md index 2855e05cee0..0aeffc98481 100644 --- a/rfcs/template.md +++ b/rfcs/template.md @@ -1,3 +1,12 @@ + + - Start Date: (fill me in with today's date, YYYY-MM-DD) - RFC PR: (leave this empty, to be filled in later) - Authors: (the names of everyone contributing to this RFC) diff --git a/scripts/addHeaders.js b/scripts/addHeaders.js index 5c30faa9b5f..d6c9a458ce5 100644 --- a/scripts/addHeaders.js +++ b/scripts/addHeaders.js @@ -1,32 +1,61 @@ -import fs from 'fs'; -import path from 'path'; -import recursive from 'recursive-readdir'; - -let fileTypes = [/js$/, /css$/, /styl$/]; -let license = fs.readFileSync(path.join(__dirname, '..', 'v2-license.txt')); - -function generateCopyrightRecursively(dirPath) { - recursive(dirPath, function (err, files) { - // `files` is an array of file paths - let sourceFiles = files.filter(file => fileTypes.some(ext => ext.test(file))); - sourceFiles.forEach(file => { - fs.readFile(file, 'utf8', (err, contents) => { - if (contents.includes(license)) { - return; - } - let data = `${license}\n${contents}`; - let buffer = new Buffer(data); - fs.writeFile(file, buffer, (err) => { - if (err) { - throw 'error writing file: ' + err; - } - console.log(`wrote: ${file}`); - }); - }); - }); - }); +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + +const glob = require('fast-glob'); +const fs = require('fs'); +const path = require('path'); + +const HEADER = `Copyright ${new Date().getFullYear()} Adobe. All rights reserved. +This file is licensed to you under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. You may obtain a copy +of the License at http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software distributed under +the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS +OF ANY KIND, either express or implied. See the License for the specific language +governing permissions and limitations under the License.`; + +const JS_COMMENT_STYLE = { + start: '/*\n * ', + middle: ' * ', + end: '\n */\n' }; -generateCopyrightRecursively('src'); -generateCopyrightRecursively('stories'); -generateCopyrightRecursively('test'); +const HTML_COMMENT_STYLE = { + start: '\n' +}; + +const COMMENT_STYLES = { + '.js': JS_COMMENT_STYLE, + '.ts': JS_COMMENT_STYLE, + '.tsx': JS_COMMENT_STYLE, + '.css': JS_COMMENT_STYLE, + '.md': HTML_COMMENT_STYLE, + '.mdx': HTML_COMMENT_STYLE +}; + +let files = glob.sync(path.dirname(__dirname) + '/**/*.{js,ts,tsx,mdx,md,css}', { + ignore: ['**/node_modules/**', '**/dist/**', '**/.parcel-cache/**', '**/README.md', '**/CODE_OF_CONDUCT.md', '**/CONTRIBUTING.md', '**/.github/**/*.md'] +}); + +for (let file of files) { + let contents = fs.readFileSync(file, 'utf8'); + let style = COMMENT_STYLES[path.extname(file)]; + let header = style.start + HEADER.split('\n').join('\n' + style.middle) + style.end; + header = header.replace(/\s+\n/g, '\n'); + if (!/Copyright \d+ Adobe/.test(contents)) { + contents = header + '\n' + contents; + fs.writeFileSync(file, contents); + } +} diff --git a/scripts/bumpVersions.js b/scripts/bumpVersions.js index 37896b09fd1..56d7a1b01f5 100644 --- a/scripts/bumpVersions.js +++ b/scripts/bumpVersions.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + const exec = require('child_process').execSync; const fs = require('fs'); diff --git a/scripts/cleanIcons.js b/scripts/cleanIcons.js index 316313329b4..7ba75c33142 100644 --- a/scripts/cleanIcons.js +++ b/scripts/cleanIcons.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import path from 'path'; import recursive from 'recursive-readdir'; import rimraf from 'rimraf'; diff --git a/scripts/jest.js b/scripts/jest.js new file mode 100644 index 00000000000..2bcc0571fa3 --- /dev/null +++ b/scripts/jest.js @@ -0,0 +1,32 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + +const {spawn} = require('child_process'); + +let args = [...process.argv.slice(2)]; + +// Skip v2 tests if it cannot be resolved +try { + require.resolve('@react/react-spectrum/Button'); +} catch (err) { + console.log('Skipping v2 parity tests since it is not installed...'); + args.push('-t', '^((?!v2).)*$'); +} + +process.env.NODE_ICU_DATA = 'node_modules/full-icu'; +let jest = spawn('jest', args, { + stdio: 'inherit' +}); + +jest.on('close', (code) => { + process.exit(code); +}); diff --git a/scripts/merge-spectrum-css.js b/scripts/merge-spectrum-css.js index fe9ce0b0010..e4fabc52a4e 100644 --- a/scripts/merge-spectrum-css.js +++ b/scripts/merge-spectrum-css.js @@ -1,3 +1,15 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + import {exec, execSync} from 'child_process'; import fg from 'fast-glob'; import fs from 'fs'; diff --git a/setupTests.js b/setupTests.js index 51365873126..c58ba1f30ab 100644 --- a/setupTests.js +++ b/setupTests.js @@ -1,2 +1,14 @@ +/* + * Copyright 2020 Adobe. All rights reserved. + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + // setup file import 'jest-dom/extend-expect'; diff --git a/specs/accessibility/Breadcrumbs.mdx b/specs/accessibility/Breadcrumbs.mdx index cc836c4ebd5..b1641ea509f 100644 --- a/specs/accessibility/Breadcrumbs.mdx +++ b/specs/accessibility/Breadcrumbs.mdx @@ -1,3 +1,12 @@ + + # Breadcrumbs Accessibility Specification ## Overview diff --git a/specs/accessibility/ButtonGroup.mdx b/specs/accessibility/ButtonGroup.mdx index c9f52d6181c..2f840c2696f 100644 --- a/specs/accessibility/ButtonGroup.mdx +++ b/specs/accessibility/ButtonGroup.mdx @@ -1,3 +1,12 @@ + + # ButtonGroup Accessibility Specification ## Overview diff --git a/specs/accessibility/Card.mdx b/specs/accessibility/Card.mdx index ea8894c7532..6fab7436829 100644 --- a/specs/accessibility/Card.mdx +++ b/specs/accessibility/Card.mdx @@ -1,3 +1,12 @@ + + # Card Accessibility Specification ## Overview diff --git a/specs/accessibility/List.mdx b/specs/accessibility/List.mdx index 7beb3da9e9a..59dc1218299 100644 --- a/specs/accessibility/List.mdx +++ b/specs/accessibility/List.mdx @@ -1,3 +1,12 @@ + + # List Accessibility Specification ## Overview diff --git a/specs/accessibility/Menu.mdx b/specs/accessibility/Menu.mdx index 784a63c1c8f..a22e0596fff 100644 --- a/specs/accessibility/Menu.mdx +++ b/specs/accessibility/Menu.mdx @@ -1,3 +1,12 @@ + + # Menu Accessibility Specification ## Overview diff --git a/specs/accessibility/MenuTrigger.mdx b/specs/accessibility/MenuTrigger.mdx index 6beb9452219..121e4430f1c 100644 --- a/specs/accessibility/MenuTrigger.mdx +++ b/specs/accessibility/MenuTrigger.mdx @@ -1,3 +1,12 @@ + + # MenuTrigger Accessibility Specification ## Overview diff --git a/specs/accessibility/Select.mdx b/specs/accessibility/Select.mdx index 49dd73245b4..39e5a37c7ec 100644 --- a/specs/accessibility/Select.mdx +++ b/specs/accessibility/Select.mdx @@ -1,3 +1,12 @@ + + # Select Accessibility Specification ## Overview diff --git a/specs/accessibility/Toast.mdx b/specs/accessibility/Toast.mdx index a3968d65090..eea557eca6f 100644 --- a/specs/accessibility/Toast.mdx +++ b/specs/accessibility/Toast.mdx @@ -1,3 +1,12 @@ + + # Toast Accessibility Specification ## Overview diff --git a/specs/accessibility/Tooltip.mdx b/specs/accessibility/Tooltip.mdx index f2d169895bd..17386e0cf18 100644 --- a/specs/accessibility/Tooltip.mdx +++ b/specs/accessibility/Tooltip.mdx @@ -1,3 +1,12 @@ + + # Tooltip Accessibility Specification ## Overview diff --git a/specs/api/Avatar.md b/specs/api/Avatar.md index dab652bdea0..ee93ea8aac4 100644 --- a/specs/api/Avatar.md +++ b/specs/api/Avatar.md @@ -1,3 +1,12 @@ + + # Avatar ```typescript diff --git a/specs/api/Button.md b/specs/api/Button.md index bf3803fe473..df6ea3edfab 100644 --- a/specs/api/Button.md +++ b/specs/api/Button.md @@ -1,3 +1,12 @@ + + # Button ```typescript diff --git a/specs/api/Calendar.md b/specs/api/Calendar.md index 21b1ffdfdb3..89de67f9308 100644 --- a/specs/api/Calendar.md +++ b/specs/api/Calendar.md @@ -1,3 +1,12 @@ + + # DatePicker, Calendar, TimePicker ```javascript diff --git a/specs/api/Card.md b/specs/api/Card.md index 3e268c2de44..89f04ae6150 100644 --- a/specs/api/Card.md +++ b/specs/api/Card.md @@ -1,3 +1,12 @@ + + # Card ```typescript diff --git a/specs/api/Checkbox.md b/specs/api/Checkbox.md index 3f8a7fc5e73..3926f7ec413 100644 --- a/specs/api/Checkbox.md +++ b/specs/api/Checkbox.md @@ -1,3 +1,12 @@ + + # Checkbox and Switch ```typescript diff --git a/specs/api/Divider.md b/specs/api/Divider.md index 830a4987745..e6fb4f4882b 100644 --- a/specs/api/Divider.md +++ b/specs/api/Divider.md @@ -1,3 +1,12 @@ + + # Divider ```typescript diff --git a/specs/api/Form.md b/specs/api/Form.md index 3e55fe5f923..b895b05d935 100644 --- a/specs/api/Form.md +++ b/specs/api/Form.md @@ -1,3 +1,12 @@ + + # Form and Label ```typescript diff --git a/specs/api/Guidelines.md b/specs/api/Guidelines.md index 616377e43eb..fb5db684666 100644 --- a/specs/api/Guidelines.md +++ b/specs/api/Guidelines.md @@ -1,3 +1,12 @@ + + # API Design Guidelines ## Boolean Props diff --git a/specs/api/Icon.md b/specs/api/Icon.md index f7125202b29..2f773a938e4 100644 --- a/specs/api/Icon.md +++ b/specs/api/Icon.md @@ -1,3 +1,12 @@ + + # Icon ```typescript diff --git a/specs/api/Link.md b/specs/api/Link.md index 10730910fde..4e89689d43d 100644 --- a/specs/api/Link.md +++ b/specs/api/Link.md @@ -1,3 +1,12 @@ + + # Link ```typescript diff --git a/specs/api/MenuTrigger.md b/specs/api/MenuTrigger.md index 9dc833729e8..c138a90e129 100644 --- a/specs/api/MenuTrigger.md +++ b/specs/api/MenuTrigger.md @@ -1,3 +1,12 @@ + + # Menu Trigger ```typescript diff --git a/specs/api/Pagination.md b/specs/api/Pagination.md index 7fad681041c..32f9c5c001d 100644 --- a/specs/api/Pagination.md +++ b/specs/api/Pagination.md @@ -1,3 +1,12 @@ + + # Pagination ```typescript diff --git a/specs/api/Progress.md b/specs/api/Progress.md index 6a462411c7e..625d45e50e4 100644 --- a/specs/api/Progress.md +++ b/specs/api/Progress.md @@ -1,3 +1,12 @@ + + # ProgressBar, Meter, and ProgressCircle ```typescript diff --git a/specs/api/Provider.md b/specs/api/Provider.md index 300ed38bce5..3fa0fbc3e3b 100644 --- a/specs/api/Provider.md +++ b/specs/api/Provider.md @@ -1,3 +1,12 @@ + + # Provider ```typescript diff --git a/specs/api/QuickActions.md b/specs/api/QuickActions.md index 2b4c7d1b725..a0e88a15f61 100644 --- a/specs/api/QuickActions.md +++ b/specs/api/QuickActions.md @@ -1,3 +1,12 @@ + + # QuickActions ```typescript diff --git a/specs/api/Radio.md b/specs/api/Radio.md index 87b49ce6c57..09be3e8668d 100644 --- a/specs/api/Radio.md +++ b/specs/api/Radio.md @@ -1,3 +1,12 @@ + + # Radio ```typescript diff --git a/specs/api/Shared.md b/specs/api/Shared.md index 83bf31c77bc..b491cad3b7e 100644 --- a/specs/api/Shared.md +++ b/specs/api/Shared.md @@ -1,3 +1,12 @@ + + # Shared APIs ## Inputs diff --git a/specs/api/StatusLight.md b/specs/api/StatusLight.md index 2db79eefeb4..d68bd18fbd6 100644 --- a/specs/api/StatusLight.md +++ b/specs/api/StatusLight.md @@ -1,3 +1,12 @@ + + # StatusLight ```typescript diff --git a/specs/api/TextFields.md b/specs/api/TextFields.md index 7ad2f13de13..03466cf04b6 100644 --- a/specs/api/TextFields.md +++ b/specs/api/TextFields.md @@ -1,3 +1,12 @@ + + # Text Fields ```typescript diff --git a/specs/api/Well.md b/specs/api/Well.md index d692f5b6e51..5ff36c39339 100644 --- a/specs/api/Well.md +++ b/specs/api/Well.md @@ -1,3 +1,12 @@ + + # Well ```typescript