Skip to content

Commit

Permalink
Update require paths to packages
Browse files Browse the repository at this point in the history
  • Loading branch information
vocksel committed Dec 2, 2024
1 parent 5ad3545 commit f47a734
Show file tree
Hide file tree
Showing 97 changed files with 180 additions and 158 deletions.
6 changes: 3 additions & 3 deletions example/ArrayControls.story.luau
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local React = require("@pkg/React")
local ReactRoblox = require("@pkg/ReactRoblox")
local Sift = require("@pkg/Sift")
local React = require("@pkg/react")
local ReactRoblox = require("@pkg/react-roblox")
local Sift = require("@pkg/sift")

local fonts = Sift.Array.sort(Enum.Font:GetEnumItems(), function(a: Enum.Font, z: Enum.Font)
return a.Name < z.Name
Expand Down
2 changes: 1 addition & 1 deletion example/Button.luau
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local Roact = require("@pkg/Roact")
local Roact = require("@pkg/roact")

export type Props = {
text: string,
Expand Down
2 changes: 1 addition & 1 deletion example/Button.story.luau
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local Button = require("./Button")
local Roact = require("@pkg/Roact")
local Roact = require("@pkg/roact")

return {
summary = "A generic button component that can be used anywhere",
Expand Down
2 changes: 1 addition & 1 deletion example/ButtonWithControls.luau
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local Roact = require("@pkg/Roact")
local Roact = require("@pkg/roact")

export type Props = {
text: string,
Expand Down
2 changes: 1 addition & 1 deletion example/ButtonWithControls.story.luau
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local ButtonWithControls = require("./ButtonWithControls")
local Roact = require("@pkg/Roact")
local Roact = require("@pkg/roact")

local controls = {
isDisabled = false,
Expand Down
4 changes: 2 additions & 2 deletions example/CanvasTests/AutomaticSize.story.luau
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local React = require("@pkg/React")
local ReactRoblox = require("@pkg/ReactRoblox")
local React = require("@pkg/react")
local ReactRoblox = require("@pkg/react-roblox")

return {
summary = "AutoamticSize test for the story preview",
Expand Down
4 changes: 2 additions & 2 deletions example/CanvasTests/AutomaticSizeExceedsBounds.story.luau
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local React = require("@pkg/React")
local ReactRoblox = require("@pkg/ReactRoblox")
local React = require("@pkg/react")
local ReactRoblox = require("@pkg/react-roblox")

return {
summary = "AutoamticSize test using a height that exceeds the story preview",
Expand Down
4 changes: 2 additions & 2 deletions example/CanvasTests/Offset.story.luau
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local React = require("@pkg/React")
local ReactRoblox = require("@pkg/ReactRoblox")
local React = require("@pkg/react")
local ReactRoblox = require("@pkg/react-roblox")

return {
summary = "Offset test for the story preview",
Expand Down
4 changes: 2 additions & 2 deletions example/CanvasTests/Resizing.story.luau
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local RunService = game:GetService("RunService")

local React = require("@pkg/React")
local ReactRoblox = require("@pkg/ReactRoblox")
local React = require("@pkg/react")
local ReactRoblox = require("@pkg/react-roblox")

local RESIZE_DURATION = 3 -- seconds
local MAX_SIZE = 2000 -- px
Expand Down
4 changes: 2 additions & 2 deletions example/CanvasTests/Scale.story.luau
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local React = require("@pkg/React")
local ReactRoblox = require("@pkg/ReactRoblox")
local React = require("@pkg/react")
local ReactRoblox = require("@pkg/react-roblox")

return {
summary = "Scale test for the story preview",
Expand Down
4 changes: 2 additions & 2 deletions example/CanvasTests/ScrollingFrame.story.luau
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local React = require("@pkg/React")
local ReactRoblox = require("@pkg/ReactRoblox")
local React = require("@pkg/react")
local ReactRoblox = require("@pkg/react-roblox")

return {
summary = "ScrollingFrame test for the story preview",
Expand Down
2 changes: 1 addition & 1 deletion example/Counter.luau
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local Roact = require("@pkg/Roact")
local Roact = require("@pkg/roact")

local Counter = Roact.Component:extend("Counter")

Expand Down
2 changes: 1 addition & 1 deletion example/Counter.story.luau
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local Counter = require("./Counter")
local Roact = require("@pkg/Roact")
local Roact = require("@pkg/roact")

local controls = {
increment = 1,
Expand Down
2 changes: 1 addition & 1 deletion example/Hoarcekat.story.luau
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local Roact = require("@pkg/Roact")
local Roact = require("@pkg/roact")

return function(target: Instance)
local root = Roact.createElement("TextLabel", {
Expand Down
2 changes: 1 addition & 1 deletion example/ReactCounter.luau
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local React = require("@pkg/React")
local React = require("@pkg/react")

export type Props = {
increment: number,
Expand Down
4 changes: 2 additions & 2 deletions example/ReactCounter.story.luau
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local React = require("@pkg/React")
local React = require("@pkg/react")
local ReactCounter = require("./ReactCounter")
local ReactRoblox = require("@pkg/ReactRoblox")
local ReactRoblox = require("@pkg/react-roblox")

local controls = {
increment = 1,
Expand Down
2 changes: 1 addition & 1 deletion src/About/AboutView.luau
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local React = require("@pkg/React")
local React = require("@pkg/react")

local BuildInfo = require("@root/About/BuildInfo")
local RobloxProfile = require("@root/About/RobloxProfile")
Expand Down
2 changes: 1 addition & 1 deletion src/About/AboutView.story.luau
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local React = require("@pkg/React")
local React = require("@pkg/react")

local AboutView = require("./AboutView")
local ContextProviders = require("@root/Common/ContextProviders")
Expand Down
2 changes: 1 addition & 1 deletion src/About/BuildInfo.luau
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local React = require("@pkg/React")
local React = require("@pkg/react")

local nextLayoutOrder = require("@root/Common/nextLayoutOrder")
local useTheme = require("@root/Common/useTheme")
Expand Down
4 changes: 2 additions & 2 deletions src/About/RobloxProfile.luau
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local Players = game:GetService("Players")

local React = require("@pkg/React")
local ReactSpring = require("@pkg/ReactSpring")
local React = require("@pkg/react")
local ReactSpring = require("@pkg/react-spring")

local nextLayoutOrder = require("@root/Common/nextLayoutOrder")
local useTheme = require("@root/Common/useTheme")
Expand Down
2 changes: 1 addition & 1 deletion src/About/RobloxProfile.story.luau
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local React = require("@pkg/React")
local React = require("@pkg/react")

local ContextProviders = require("@root/Common/ContextProviders")
local MockPlugin = require("@root/Testing/MockPlugin")
Expand Down
2 changes: 1 addition & 1 deletion src/Common/Branding.luau
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local React = require("@pkg/React")
local React = require("@pkg/react")
local Sprite = require("@root/Common/Sprite")
local assets = require("@root/assets")
local useTheme = require("@root/Common/useTheme")
Expand Down
2 changes: 1 addition & 1 deletion src/Common/Branding.story.luau
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local React = require("@pkg/React")
local React = require("@pkg/react")

local Branding = require("./Branding")
local ContextProviders = require("@root/Common/ContextProviders")
Expand Down
2 changes: 1 addition & 1 deletion src/Common/ContextProviders.luau
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local React = require("@pkg/React")
local React = require("@pkg/react")

local ContextStack = require("@root/Common/ContextStack")
local NavigationContext = require("@root/Navigation/NavigationContext")
Expand Down
2 changes: 1 addition & 1 deletion src/Common/ContextStack.luau
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local React = require("@pkg/React")
local React = require("@pkg/react")

export type Props = {
providers: { React.ReactElement<any, any> },
Expand Down
4 changes: 2 additions & 2 deletions src/Common/ScrollingFrame.luau
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local React = require("@pkg/React")
local Sift = require("@pkg/Sift")
local React = require("@pkg/react")
local Sift = require("@pkg/sift")
local useTheme = require("@root/Common/useTheme")

export type Props = {
Expand Down
2 changes: 1 addition & 1 deletion src/Common/ScrollingFrame.story.luau
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local React = require("@pkg/React")
local React = require("@pkg/react")

local ContextProviders = require("@root/Common/ContextProviders")
local MockPlugin = require("@root/Testing/MockPlugin")
Expand Down
2 changes: 1 addition & 1 deletion src/Common/Sprite.luau
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local React = require("@pkg/React")
local React = require("@pkg/react")

export type Props = {
image: {
Expand Down
2 changes: 1 addition & 1 deletion src/Common/Sprite.story.luau
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local React = require("@pkg/React")
local React = require("@pkg/react")
local Sprite = require("./Sprite")
local assets = require("@root/assets")

Expand Down
3 changes: 2 additions & 1 deletion src/Common/mapRanges.spec.luau
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
local JestGlobals = require("@pkg/JestGlobals")
local JestGlobals = require("@pkg/jest-globals")

local mapRanges = require("./mapRanges")

local expect = JestGlobals.expect
Expand Down
2 changes: 1 addition & 1 deletion src/Common/useEvent.luau
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local React = require("@pkg/React")
local React = require("@pkg/react")

local function useEvent(event: RBXScriptSignal, callback: (...any) -> ())
React.useEffect(function()
Expand Down
7 changes: 4 additions & 3 deletions src/Common/useEvent.spec.luau
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
local JestGlobals = require("@pkg/JestGlobals")
local React = require("@pkg/React")
local ReactRoblox = require("@pkg/ReactRoblox")
local JestGlobals = require("@pkg/jest-globals")

local React = require("@pkg/react")
local ReactRoblox = require("@pkg/react-roblox")
local useEvent = require("./useEvent")

local afterEach = JestGlobals.afterEach
Expand Down
2 changes: 1 addition & 1 deletion src/Common/usePrevious.luau
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local React = require("@pkg/React")
local React = require("@pkg/react")

local function usePrevious(value: any)
local previous = React.useRef(nil)
Expand Down
7 changes: 4 additions & 3 deletions src/Common/usePrevious.spec.luau
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
local JestGlobals = require("@pkg/JestGlobals")
local React = require("@pkg/React")
local ReactRoblox = require("@pkg/ReactRoblox")
local JestGlobals = require("@pkg/jest-globals")

local React = require("@pkg/react")
local ReactRoblox = require("@pkg/react-roblox")
local useEvent = require("@root/Common/useEvent")
local usePrevious = require("./usePrevious")

Expand Down
2 changes: 1 addition & 1 deletion src/Common/useTheme.luau
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local React = require("@pkg/React")
local React = require("@pkg/react")

local SettingsContext = require("@root/UserSettings/SettingsContext")
local themes = require("@root/themes")
Expand Down
2 changes: 1 addition & 1 deletion src/Common/useZoom.luau
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local React = require("@pkg/React")
local React = require("@pkg/react")

local ZOOM_INCREMENT = 0.25

Expand Down
7 changes: 4 additions & 3 deletions src/Common/useZoom.spec.luau
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
local JestGlobals = require("@pkg/JestGlobals")
local React = require("@pkg/React")
local ReactRoblox = require("@pkg/ReactRoblox")
local JestGlobals = require("@pkg/jest-globals")

local React = require("@pkg/react")
local ReactRoblox = require("@pkg/react-roblox")
local useEvent = require("@root/Common/useEvent")
local useZoom = require("./useZoom")

Expand Down
2 changes: 1 addition & 1 deletion src/Explorer/Component.story.luau
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local React = require("@pkg/React")
local React = require("@pkg/react")

local Component = require("./Component")
local ContextProviders = require("@root/Common/ContextProviders")
Expand Down
5 changes: 3 additions & 2 deletions src/Explorer/Component/Directory.luau
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
local React = require("@pkg/React")
local ReactSpring = require("@pkg/ReactSpring")
local React = require("@pkg/react")
local ReactSpring = require("@pkg/react-spring")

local Sprite = require("@root/Common/Sprite")
local assets = require("@root/assets")
local constants = require("@root/constants")
Expand Down
5 changes: 3 additions & 2 deletions src/Explorer/Component/Story.luau
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
local React = require("@pkg/React")
local ReactSpring = require("@pkg/ReactSpring")
local React = require("@pkg/react")
local ReactSpring = require("@pkg/react-spring")

local Sprite = require("@root/Common/Sprite")
local assets = require("@root/assets")
local constants = require("@root/constants")
Expand Down
4 changes: 2 additions & 2 deletions src/Explorer/Component/init.luau
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local Directory = require("./Directory")
local React = require("@pkg/React")
local Sift = require("@pkg/Sift")
local React = require("@pkg/react")
local Sift = require("@pkg/sift")
local Story = require("./Story")
local filterComponentTreeNode = require("@root/Explorer/filterComponentTreeNode")
local types = require("@root/Explorer/types")
Expand Down
3 changes: 2 additions & 1 deletion src/Explorer/filterComponentTreeNode.spec.luau
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
local JestGlobals = require("@pkg/JestGlobals")
local JestGlobals = require("@pkg/jest-globals")

local filterComponentTreeNode = require("./filterComponentTreeNode")
local types = require("./types")

Expand Down
3 changes: 2 additions & 1 deletion src/Explorer/getTreeDescendants.spec.luau
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
local JestGlobals = require("@pkg/JestGlobals")
local JestGlobals = require("@pkg/jest-globals")

local getTreeDescendants = require("./getTreeDescendants")

local expect = JestGlobals.expect
Expand Down
2 changes: 1 addition & 1 deletion src/Explorer/init.luau
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local Component = require("./Component")
local React = require("@pkg/React")
local React = require("@pkg/react")
local types = require("./types")

local e = React.createElement
Expand Down
2 changes: 1 addition & 1 deletion src/Explorer/types.luau
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local Storyteller = require("@pkg/Storyteller")
local Storyteller = require("@pkg/storyteller")

type LoadedStorybook = Storyteller.LoadedStorybook

Expand Down
4 changes: 2 additions & 2 deletions src/Forms/Button.luau
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local React = require("@pkg/React")
local Sift = require("@pkg/Sift")
local React = require("@pkg/react")
local Sift = require("@pkg/sift")
local useTheme = require("@root/Common/useTheme")

local e = React.createElement
Expand Down
2 changes: 1 addition & 1 deletion src/Forms/Button.story.luau
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local React = require("@pkg/React")
local React = require("@pkg/react")

local Button = require("./Button")
local ContextProviders = require("@root/Common/ContextProviders")
Expand Down
2 changes: 1 addition & 1 deletion src/Forms/Checkbox.luau
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local React = require("@pkg/React")
local React = require("@pkg/react")
local useTheme = require("@root/Common/useTheme")

export type Props = {
Expand Down
2 changes: 1 addition & 1 deletion src/Forms/Checkbox.story.luau
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local React = require("@pkg/React")
local React = require("@pkg/react")

local Checkbox = require("./Checkbox")
local ContextProviders = require("@root/Common/ContextProviders")
Expand Down
2 changes: 1 addition & 1 deletion src/Forms/Dropdown.luau
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local React = require("@pkg/React")
local React = require("@pkg/react")
local useTheme = require("@root/Common/useTheme")

export type Props = {
Expand Down
2 changes: 1 addition & 1 deletion src/Forms/Dropdown.story.luau
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local React = require("@pkg/React")
local React = require("@pkg/react")

local ContextProviders = require("@root/Common/ContextProviders")
local Dropdown = require("@root/Forms/Dropdown")
Expand Down
4 changes: 2 additions & 2 deletions src/Forms/InputField.luau
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local React = require("@pkg/React")
local Sift = require("@pkg/Sift")
local React = require("@pkg/react")
local Sift = require("@pkg/sift")
local useTheme = require("@root/Common/useTheme")

local e = React.createElement
Expand Down
2 changes: 1 addition & 1 deletion src/Forms/InputField.story.luau
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local React = require("@pkg/React")
local React = require("@pkg/react")

local ContextProviders = require("@root/Common/ContextProviders")
local InputField = require("./InputField")
Expand Down
7 changes: 4 additions & 3 deletions src/Forms/Searchbar.luau
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
local InputField = require("@root/Forms/InputField")
local React = require("@pkg/React")
local ReactSpring = require("@pkg/ReactSpring")
local Sift = require("@pkg/Sift")
local React = require("@pkg/react")
local ReactSpring = require("@pkg/react-spring")

local Sift = require("@pkg/sift")
local Sprite = require("@root/Common/Sprite")
local assets = require("@root/assets")
local constants = require("@root/constants")
Expand Down
2 changes: 1 addition & 1 deletion src/Forms/Searchbar.story.luau
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local React = require("@pkg/React")
local React = require("@pkg/react")

local ContextProviders = require("@root/Common/ContextProviders")
local MockPlugin = require("@root/Testing/MockPlugin")
Expand Down
Loading

0 comments on commit f47a734

Please sign in to comment.