-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into modals
- Loading branch information
Showing
20 changed files
with
202 additions
and
92 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
[tools] | ||
rojo = { source = "rojo-rbx/rojo", version = "7.2.1" } | ||
darklua = { source = "seaofvoices/darklua", version = "0.12.1" } | ||
lune = { source = "lune-org/lune", version = "0.8.3" } | ||
rojo = { source = "rojo-rbx/rojo", version = "7.4.3" } | ||
darklua = { source = "seaofvoices/darklua", version = "0.13.1" } | ||
lune = { source = "lune-org/lune", version = "0.8.7" } | ||
run-in-roblox = { source = "rojo-rbx/run-in-roblox", version = "0.3.0" } | ||
selene = { source = "kampfkarren/selene", version = "0.25.0" } | ||
stylua = { source = "JohnnyMorganz/StyLua", version = "0.17.1" } | ||
selene = { source = "Kampfkarren/selene", version = "0.27.1" } | ||
stylua = { source = "JohnnyMorganz/StyLua", version = "0.20.0" } | ||
tarmac = { source = "Roblox/tarmac", version = "0.7.0" } | ||
wally = { source = "UpliftGames/wally", version = "0.3.2" } | ||
luau-lsp = { source = "JohnnyMorganz/luau-lsp", version = "1.x" } | ||
wally-package-types = { source = "JohnnyMorganz/wally-package-types", version = "1.2.1" } | ||
luau-lsp = { source = "JohnnyMorganz/luau-lsp", version = "1.32.3" } | ||
wally-package-types = { source = "JohnnyMorganz/wally-package-types", version = "1.3.2" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
local Branding = require("./Branding") | ||
local React = require("@pkg/React") | ||
|
||
local Branding = require("./Branding") | ||
local ContextProviders = require("@root/Common/ContextProviders") | ||
local MockPlugin = require("@root/Testing/MockPlugin") | ||
|
||
return { | ||
summary = "Icon and Typography for flipbook", | ||
controls = {}, | ||
story = React.createElement(Branding), | ||
story = React.createElement(ContextProviders, { | ||
plugin = MockPlugin.new(), | ||
}, { | ||
Branding = React.createElement(Branding), | ||
}), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
local Checkbox = require("./Checkbox") | ||
local React = require("@pkg/React") | ||
|
||
local Checkbox = require("./Checkbox") | ||
local ContextProviders = require("@root/Common/ContextProviders") | ||
local MockPlugin = require("@root/Testing/MockPlugin") | ||
|
||
return { | ||
summary = "Generic checkbox used for story controls", | ||
story = React.createElement(Checkbox, { | ||
initialState = true, | ||
onStateChange = function(newState) | ||
print("Checkbox state changed to", newState) | ||
end, | ||
story = React.createElement(ContextProviders, { | ||
plugin = MockPlugin.new(), | ||
}, { | ||
Checkbox = React.createElement(Checkbox, { | ||
initialState = true, | ||
onStateChange = function(newState) | ||
print("Checkbox state changed to", newState) | ||
end, | ||
}), | ||
}), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,25 @@ | ||
local InputField = require("./InputField") | ||
local React = require("@pkg/React") | ||
|
||
local ContextProviders = require("@root/Common/ContextProviders") | ||
local InputField = require("./InputField") | ||
local MockPlugin = require("@root/Testing/MockPlugin") | ||
|
||
return { | ||
story = React.createElement(InputField, { | ||
placeholder = "Enter information...", | ||
autoFocus = true, | ||
onSubmit = function(text) | ||
print(text) | ||
end, | ||
validate = function(text: string) | ||
return #text <= 4 | ||
end, | ||
transform = function(text: string) | ||
return text:upper() | ||
end, | ||
story = React.createElement(ContextProviders, { | ||
plugin = MockPlugin.new(), | ||
}, { | ||
InputField = React.createElement(InputField, { | ||
placeholder = "Enter information...", | ||
autoFocus = true, | ||
onSubmit = function(text) | ||
print(text) | ||
end, | ||
validate = function(text: string) | ||
return #text <= 4 | ||
end, | ||
transform = function(text: string) | ||
return text:upper() | ||
end, | ||
}), | ||
}), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
local React = require("@pkg/React") | ||
|
||
local ContextProviders = require("@root/Common/ContextProviders") | ||
local MockPlugin = require("@root/Testing/MockPlugin") | ||
local Searchbar = require("./Searchbar") | ||
|
||
return { | ||
summary = "Searchbar used to search for components", | ||
controls = {}, | ||
story = React.createElement(Searchbar), | ||
story = React.createElement(ContextProviders, { | ||
plugin = MockPlugin.new(), | ||
}, { | ||
Searchbar = React.createElement(Searchbar), | ||
}), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,26 @@ | ||
local React = require("@pkg/React") | ||
|
||
local ContextProviders = require("@root/Common/ContextProviders") | ||
local MockPlugin = require("@root/Testing/MockPlugin") | ||
local Sidebar = require("./Sidebar") | ||
local internalStorybook = require("@root/init.storybook.luau") | ||
|
||
return { | ||
summary = "Sidebar containing brand, searchbar, and component tree", | ||
controls = {}, | ||
story = React.createElement(Sidebar, { | ||
storybooks = { | ||
internalStorybook, | ||
}, | ||
selectStory = function(storyModule) | ||
print(storyModule) | ||
end, | ||
selectStorybook = function(storybook) | ||
print(storybook) | ||
end, | ||
story = React.createElement(ContextProviders, { | ||
plugin = MockPlugin.new(), | ||
}, { | ||
Sidebar = React.createElement(Sidebar, { | ||
storybooks = { | ||
internalStorybook, | ||
}, | ||
selectStory = function(storyModule) | ||
print(storyModule) | ||
end, | ||
selectStorybook = function(storybook) | ||
print(storybook) | ||
end, | ||
}), | ||
}), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
local ModuleLoader = require("@pkg/ModuleLoader") | ||
local PluginApp = require("./PluginApp") | ||
local React = require("@pkg/React") | ||
|
||
local ContextProviders = require("@root/Common/ContextProviders") | ||
local MockPlugin = require("@root/Testing/MockPlugin") | ||
local PluginApp = require("./PluginApp") | ||
|
||
return { | ||
summary = "The main component that handles the entire plugin", | ||
controls = {}, | ||
story = React.createElement(PluginApp, { | ||
loader = ModuleLoader.new(), | ||
plugin = plugin, | ||
story = React.createElement(ContextProviders, { | ||
plugin = MockPlugin.new(), | ||
}, { | ||
PluginApp = React.createElement(PluginApp, { | ||
loader = ModuleLoader.new(), | ||
plugin = plugin, | ||
}), | ||
}), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
local NoStorySelected = require("./NoStorySelected") | ||
local React = require("@pkg/React") | ||
|
||
local ContextProviders = require("@root/Common/ContextProviders") | ||
local MockPlugin = require("@root/Testing/MockPlugin") | ||
local NoStorySelected = require("./NoStorySelected") | ||
|
||
return { | ||
story = React.createElement(NoStorySelected), | ||
story = React.createElement(ContextProviders, { | ||
plugin = MockPlugin.new(), | ||
}, { | ||
NoStorySelected = React.createElement(NoStorySelected), | ||
}), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,27 @@ | ||
local React = require("@pkg/React") | ||
|
||
local ContextProviders = require("@root/Common/ContextProviders") | ||
local MockPlugin = require("@root/Testing/MockPlugin") | ||
local StoryControls = require("@root/Storybook/StoryControls") | ||
|
||
return { | ||
summary = "Panel for configuring the controls of a story", | ||
story = React.createElement(StoryControls, { | ||
controls = { | ||
foo = "bar", | ||
checkbox = false, | ||
dropdown = { | ||
"Option 1", | ||
"Option 2", | ||
"Option 3", | ||
}, | ||
}, | ||
setControl = function() end, | ||
}), | ||
story = function() | ||
return React.createElement(ContextProviders, { | ||
plugin = MockPlugin.new(), | ||
}, { | ||
StoryControls = React.createElement(StoryControls, { | ||
controls = { | ||
foo = "bar", | ||
checkbox = false, | ||
dropdown = { | ||
"Option 1", | ||
"Option 2", | ||
"Option 3", | ||
}, | ||
}, | ||
setControl = function() end, | ||
}), | ||
}) | ||
end, | ||
} |
Oops, something went wrong.