repo
stringclasses
254 values
file_path
stringlengths
29
241
code
stringlengths
100
233k
tokens
int64
14
69.4k
kohls-admin/kohls-admin
kohls-admin-kohls-admin-2413f1e/src/Shared/Util/Suggest.luau
--!optimize 2 --!native local String = require("./String") local Table = require("./Table") local Suggest = {} function Suggest.getNames(objects: any): { string } local names = {} local existing = {} for key, object in objects do local name = object.Name or object.name or tostring(object) if existing[name] th...
918
kohls-admin/kohls-admin
kohls-admin-kohls-admin-2413f1e/src/Shared/Util/Table.luau
export type Dict = { [any]: any } export type List = { any } local Table = {} function Table.concat(array: List, delimiter: string): string local strings = {} for _, item in array do table.insert(strings, tostring(item)) end return table.concat(strings, delimiter) end function Table.countKeys(t: Dict): number ...
701
kohls-admin/kohls-admin
kohls-admin-kohls-admin-2413f1e/src/Shared/Util/Tasks.luau
--- A utility for managing concurrent tasks and awaiting their completion. --- @class Tasks local Tasks = {} Tasks.__index = Tasks type self = { _numTasks: number, _results: { any }, _returnFirstResult: boolean, _running: thread, _waiting: boolean, } export type Tasks = typeof(setmetatable({} :: self, Tasks)) -...
457
kohls-admin/kohls-admin
kohls-admin-kohls-admin-2413f1e/src/Shared/Util/Time.luau
local Time = { UNITS = table.freeze({ { 1 / 1000, "millisecond" }, { 1, "second" }, { 60, "minute" }, { 60 * 60, "hour", "hr" }, { 60 * 60 * 24, "day" }, { 60 * 60 * 24 * 7, "week", "wk" }, { 60 * 60 * 24 * 30, "month" }, { 60 * 60 * 24 * 365.25, "year", "yr" }, }), } Time.__index = Time function Tim...
544
kohls-admin/kohls-admin
kohls-admin-kohls-admin-2413f1e/src/Shared/Util/getTexture.luau
local InsertService = game:GetService("InsertService") local MarketplaceService = game:GetService("MarketplaceService") local RunService = game:GetService("RunService") local loadAssetTextureTypes = { Enum.AssetType.Face.Value, Enum.AssetType.Shirt.Value, Enum.AssetType.Pants.Value, Enum.AssetType.TShirt.Value, } ...
355
kohls-admin/kohls-admin
kohls-admin-kohls-admin-2413f1e/src/Shared/Util/getUserInfo.luau
local UserService = game:GetService("UserService") local RunService = game:GetService("RunService") local Function = require(script.Parent:WaitForChild("Function")) local Signal = require(script.Parent:WaitForChild("Signal")) local SafePlayerAdded = require(script.Parent:WaitForChild("SafePlayerAdded")) type UserInfo...
790
kohls-admin/kohls-admin
kohls-admin-kohls-admin-2413f1e/src/Shared/Util/init.luau
local Logger = require(script:WaitForChild("Logger")) export type Log = Logger.Log export type LogType = Logger.LogType export type Logger = Logger.Logger --- @class Util local Util = { --- @within Util --- @prop Logger Logger Logger = Logger, Defer = require(script:WaitForChild("Defer")), Function = require(sc...
361
kohls-admin/kohls-admin
kohls-admin-kohls-admin-2413f1e/src/Shared/Util/iterPageItems.luau
local function pagesToTable(pages) local items = {} while true do table.insert(items, pages:GetCurrentPage()) if pages.IsFinished then break end pages:AdvanceToNextPageAsync() end return items end local function iterPageItems(pages) local contents = pagesToTable(pages) local pageNum = 1 local lastPag...
142
kohls-admin/kohls-admin
kohls-admin-kohls-admin-2413f1e/src/Shared/VIP/Popup.luau
local MarketplaceService = game:GetService("MarketplaceService") local RunService = game:GetService("RunService") local Util = require(script.Parent.Parent.Util) local LocalPlayer = game.Players.LocalPlayer if RunService:IsServer() then return false end local vip = Instance.new("Frame") vip.Name = "VIP" vip.Anchor...
5,028
kohls-admin/kohls-admin
kohls-admin-kohls-admin-2413f1e/src/Shared/VIP/Purchasables.luau
return { chatCommands = { 115444443724463, -- 40% off chat commands 110019084552349, -- chat commands 130880915606069, -- elite 84349662672781, -- epic 129439770798699, -- hero 132161234381156, -- legend 89859349616824, -- mythic 102980653148583, -- eternal }, chatCommandsLower = { 88978146769822, ...
1,299
kohls-admin/kohls-admin
kohls-admin-kohls-admin-2413f1e/src/Shared/VIP/Title/init.luau
local CollectionService = game:GetService("CollectionService") local RunService = game:GetService("RunService") local Package = script.Parent.Parent.Parent local Flux = require(Package:WaitForChild("Flux")) local Oklab = Flux.Color.Oklab local function sortKeypoints(a, b) return a.Time < b.Time end local Title = ...
1,845
kohls-admin/kohls-admin
kohls-admin-kohls-admin-2413f1e/src/Shared/VIP/UGC/AlphaWings/Animate/Animate.luau
local TweenService = game:GetService("TweenService") local Animate = { timeScale = 1, } function Animate.getBoneFromPose(rig: Instance, pose: Pose): Motor6D? if not pose.Parent then return end local poseParentName = pose.Parent.Name for i, v in rig:GetDescendants() do if v:IsA("Bone") and v.Name == pose.Name...
631
kohls-admin/kohls-admin
kohls-admin-kohls-admin-2413f1e/src/Shared/VIP/UGC/AlphaWings/Animate/init.client.luau
local part = script.Parent local Animate = require(script:WaitForChild("Animate")) local Animations = script:WaitForChild("Animations") local fall = Animations:WaitForChild("fall") local idle = Animations:WaitForChild("idle") local idle2 = Animations:WaitForChild("idle2") local humanoid = part.Parent.Parent:FindFirs...
445
kohls-admin/kohls-admin
kohls-admin-kohls-admin-2413f1e/src/Shared/VIP/UGC/AlphaWings/Bones.luau
local part = Instance.new("Part") part.Anchored = true part.CanCollide = false part.CanQuery = false part.CanTouch = false part.Locked = true part.Transparency = 1 local boneL1 = Instance.new("Bone", part) boneL1.Name = "Bone_l" boneL1.CFrame = CFrame.new(-0.576, 0, 0) * CFrame.Angles(0, 0, math.rad(76.663)) local bo...
426
kohls-admin/kohls-admin
kohls-admin-kohls-admin-2413f1e/src/Shared/VIP/UGC/AlphaWings/init.luau
local CollectionService = game:GetService("CollectionService") local InsertService = game:GetService("InsertService") local RunService = game:GetService("RunService") local Package = script.Parent.Parent.Parent.Parent local Flux = require(Package:WaitForChild("Flux")) local Util = require(Package.Shared:WaitForChild(...
1,043
kohls-admin/kohls-admin
kohls-admin-kohls-admin-2413f1e/src/Shared/VIP/UGC/Crown.luau
local CollectionService = game:GetService("CollectionService") local InsertService = game:GetService("InsertService") local RunService = game:GetService("RunService") local Package = script.Parent.Parent.Parent.Parent local Flux = require(Package:WaitForChild("Flux")) local Util = require(Package.Shared:WaitForChild(...
1,195
kohls-admin/kohls-admin
kohls-admin-kohls-admin-2413f1e/src/Shared/VIP/init.luau
local Auth = require(script.Parent:WaitForChild("Auth")) local Data = require(script.Parent:WaitForChild("Data")) local Util = require(script.Parent:WaitForChild("Util")) local Popup = require(script:WaitForChild("Popup")) local Purchasables = require(script:WaitForChild("Purchasables")) local Title = require(script:W...
3,091
kohls-admin/kohls-admin
kohls-admin-kohls-admin-2413f1e/src/init.luau
-- src/init.luau --- @class MainModule if shared._K_INTERFACE then return shared._K_INTERFACE end local RunService = game:GetService("RunService") local requireStart = os.clock() local Client = script:WaitForChild("Client") local Server = RunService:IsServer() and script:WaitForChild("Server") local Shared = script:...
1,692
centau/vide
centau-vide-7deae9c/init.luau
local vide = require "@self/src/lib" export type source<T> = vide.source<T> export type Source<T> = vide.Source<T> export type context<T> = vide.context<T> export type Context<T> = vide.Context<T> return vide
52
centau/vide
centau-vide-7deae9c/src/action.luau
type Action = { priority: number, callback: (Instance) -> () } local ActionMT = table.freeze {} local function is_action(v: any) return getmetatable(v) == ActionMT end local function action(callback: (Instance) -> (), priority: number?): Action local a = { priority = priority or 1, ca...
111
centau/vide
centau-vide-7deae9c/src/apply.luau
local typeof = game and typeof or require "../test/mock".typeof :: never local flags = require "./flags" local implicit_effect = require "./implicit_effect" local _, is_action = require "./action"() local graph = require "./graph" type Node<T> = graph.Node<T> type Array<V> = { V } type ArrayOrV<V> = {ArrayOrV<V>} | V...
1,226
centau/vide
centau-vide-7deae9c/src/batch.luau
local flags = require "./flags" local graph = require "./graph" local function batch(setter: () -> ()) local already_batching = flags.batch local from if not already_batching then flags.batch = true from = graph.get_update_queue_length() end local ok, err: string? = xpcall(setter,...
131
centau/vide
centau-vide-7deae9c/src/branch.luau
local graph = require "./graph" type Node<T> = graph.Node<T> local create_node = graph.create_node local push_scope = graph.push_scope local pop_scope = graph.pop_scope local destroy = graph.destroy local get_scope = graph.get_scope local function branch<T>(fn: () -> T): (() -> (), T) local current = get_scope() ...
223
centau/vide
centau-vide-7deae9c/src/changed.luau
local action = require "./action"() local cleanup = require "./cleanup" local function changed<T>(property: string, callback: (T) -> ()) return action(function(instance) local con = instance:GetPropertyChangedSignal(property):Connect(function() callback((instance :: any)[property]) end)...
91
centau/vide
centau-vide-7deae9c/src/cleanup.luau
local typeof = game and typeof or require "../test/mock".typeof :: never local graph = require "./graph" local get_scope = graph.get_scope local push_cleanup = graph.push_cleanup local function helper(obj: any) return if typeof(obj) == "RBXScriptConnection" then function() obj:Disconnect() end els...
365
centau/vide
centau-vide-7deae9c/src/context.luau
local graph = require "./graph" type Node<T> = graph.Node<T> local create_node = graph.create_node local get_scope = graph.get_scope local push_scope = graph.push_scope local pop_scope = graph.pop_scope local set_context = graph.set_context export type Context<T> = (() -> T) & (<U>(T, () -> U) -> U) local nil_symbol ...
456
centau/vide
centau-vide-7deae9c/src/create.luau
local typeof = game and typeof or require "../test/mock".typeof :: never local Instance = game and Instance or require "../test/mock".Instance :: never local defaults = require "./defaults" local apply = require "./apply" local flags = require "./flags" local ctor_cache = {} :: { [string]: (AnyProps) -> Instance } lo...
785
centau/vide
centau-vide-7deae9c/src/defaults.luau
local Enum = game and Enum or require "../test/mock".Enum :: never local Color3 = game and Color3 or require "../test/mock".Color3 :: never return { Part = { Material = Enum.Material.SmoothPlastic, Size = vector.create(1, 1, 1), Anchored = true }, BillboardGui = { ResetOnSp...
831
centau/vide
centau-vide-7deae9c/src/derive.luau
local graph = require "./graph" local create_node = graph.create_node local push_scope_as_child_of = graph.push_scope_as_child_of local assert_stable_scope = graph.assert_stable_scope local evaluate_node = graph.evaluate_node local function derive<T>(source: () -> T): () -> T local node = create_node(assert_stable...
111
centau/vide
centau-vide-7deae9c/src/effect.luau
local graph = require "./graph" local create_node = graph.create_node local assert_stable_scope = graph.assert_stable_scope local evaluate_node = graph.evaluate_node local function effect<T>(callback: (T) -> T, initial_value: T) local node = create_node(assert_stable_scope(), callback, initial_value) evaluate...
106
centau/vide
centau-vide-7deae9c/src/flags.luau
local function inline_test(): string return debug.info(1, "n") end local is_O2 = inline_test() ~= "inline_test" return { strict = not is_O2, defaults = true, defer_nested_properties = true, batch = false, }
60
centau/vide
centau-vide-7deae9c/src/graph.luau
local flags = require "./flags" export type SourceNode<T> = { cache: T, [number]: Node<T> } export type Node<T> = { cache: T, effect: ((T) -> T) | false, cleanups: { () -> () } | false, context: { [number]: unknown } | false, owned: { Node<T> } | false, owner: Node<T> | false, ...
2,028
centau/vide
centau-vide-7deae9c/src/implicit_effect.luau
local graph = require "./graph" type Node<T> = graph.Node<T> local create_node = graph.create_node local assert_stable_scope = graph.assert_stable_scope local get_scope = graph.get_scope local evaluate_node = graph.evaluate_node local push_cleanup = graph.push_cleanup local function update_property_effect(p: { ins...
794
centau/vide
centau-vide-7deae9c/src/indexes.luau
local flags = require "./flags" local branch = require "./branch" local source = require "./source" local effect = require "./effect" local timeout = require "./timeout" () type Array<T> = { T } type Map<K, V> = { [K]: V } type Source<T> = () -> T local function indexes<K, V, Obj>( input: Source<Map<K, V>>, c...
690
centau/vide
centau-vide-7deae9c/src/init.luau
assert(game, "when using vide outside of Roblox, require lib.luau instead") local vide = require(script.lib) export type source<T> = vide.source<T> export type Source<T> = vide.Source<T> export type context<T> = vide.context<T> export type Context<T> = vide.Context<T> return vide
68
centau/vide
centau-vide-7deae9c/src/lib.luau
local version = { major = 0, minor = 4, patch = 0 } local root = require "./root" local branch = require "./branch" local mount = require "./mount" local create = require "./create" local apply = require "./apply" local source = require "./source" local effect = require "./effect" local derive = require "./derive" loc...
715
centau/vide
centau-vide-7deae9c/src/mount.luau
local root = require "./root" local apply = require "./apply" local function mount<T>(component: () -> T, target: Instance?): () -> () return root(function() local result = component() if target then apply(target, { result }) end end) end return mount :: (<T>(component: () -> T, target: Instan...
91
centau/vide
centau-vide-7deae9c/src/read.luau
local function read<T>(value: T | () -> T): T return if type(value) == "function" then value() else value end return read
36
centau/vide
centau-vide-7deae9c/src/root.luau
local graph = require "./graph" type Node<T> = graph.Node<T> local create_node = graph.create_node local push_scope = graph.push_scope local pop_scope = graph.pop_scope local destroy = graph.destroy local refs = {} local function root<T...>(fn: (destroy: () -> ()) -> T...): (() -> (), T...) local node = create_no...
232
centau/vide
centau-vide-7deae9c/src/show.luau
local source = require "./source" local derive = require "./derive" local effect = require "./effect" local untrack = require "./untrack" local switch = require "./switch" type Array<T> = { T } type Source<T> = () -> T local function show<T, Obj>( input: Source<T?>, component: (Source<T>, Source<boolean>) -> ...
207
centau/vide
centau-vide-7deae9c/src/source.luau
local graph = require "./graph" type Node<T> = graph.Node<T> local create_source_node = graph.create_source_node local push_scope_as_child_of = graph.push_scope_as_child_of local update_descendants = graph.update_descendants export type Source<T> = (() -> T) & ((value: T) -> T) local function source<T>(initial_value:...
221
centau/vide
centau-vide-7deae9c/src/switch.luau
local branch = require "./branch" local source = require "./source" local effect = require "./effect" local timeout = require "./timeout" () type Array<T> = { T } type Map<K, V> = { [K]: V } type Source<T> = () -> T type Component<T> = (Source<boolean>) -> (T, ...number) local function switch_map<K, Obj>( input: ...
624
centau/vide
centau-vide-7deae9c/src/timeout.luau
local queue = {} :: { { t: number, fn: () -> (), cancel: boolean } } local function timeout(t: number, fn: () -> ()) local handle = { t = t, fn = fn, cancel = false } table.insert(queue, handle) return handle end local function update_timeouts(dt: number) for i = #queue, 1, -1 do local han...
162
centau/vide
centau-vide-7deae9c/src/untrack.luau
local graph = require "./graph" type Node<T> = graph.Node<T> local get_scope = graph.get_scope local function untrack<T>(source: () -> T): T local scope = get_scope() if scope then -- sources are only tracked if the node in scope has an effect local effect = scope.effect scope.effe...
162
centau/vide
centau-vide-7deae9c/src/values.luau
local flags = require "./flags" local branch = require "./branch" local source = require "./source" local effect = require "./effect" local timeout = require "./timeout" () type Array<T> = { T } type Map<K, V> = { [K]: V } type Source<T> = () -> T local function values<K, V, Obj>( input: Source<Map<K, V>>, co...
754
loneka/onyx-ui
loneka-onyx-ui-978b53c/samples/SettingsMenu/SettingToggle.luau
local OnyxUI = script.Parent.Parent.Parent.OnyxUI.Packages.OnyxUI local Themer = require(OnyxUI.Themer) local Fusion = require(OnyxUI.Parent.Fusion) local Util = require(OnyxUI.Util) local Children = Fusion.Children local SwitchGroup = require(script.Parent.SwitchGroup) local Switch = require(OnyxUI.Components.Switch...
462
loneka/onyx-ui
loneka-onyx-ui-978b53c/samples/SettingsMenu/SettingsMenu.story.luau
local OnyxUI = script.Parent.Parent.Parent.OnyxUI.Packages.OnyxUI local Fusion = require(OnyxUI.Parent.Fusion) local Themer = require(OnyxUI.Themer) local Util = require(OnyxUI.Util) local BitCave = require(script.Parent.Parent.Themes.BitCave) local Children = Fusion.Children local Frame = require(OnyxUI.Components.F...
253
loneka/onyx-ui
loneka-onyx-ui-978b53c/samples/SettingsMenu/SwitchGroup.luau
local OnyxUI = script.Parent.Parent.Parent.OnyxUI.Packages.OnyxUI local Util = require(OnyxUI.Util) local Themer = require(OnyxUI.Themer) local Fusion = require(OnyxUI.Parent.Fusion) local BaseButton = require(OnyxUI.Components.BaseButton) local Switch = require(OnyxUI.Components.Switch) local Components = { BaseButt...
228
loneka/onyx-ui
loneka-onyx-ui-978b53c/samples/SettingsMenu/init.luau
local OnyxUI = require(script.Parent.Parent.OnyxUI) local Fusion = require(script.Parent.Parent.OnyxUI.Packages.Fusion) local Themer = OnyxUI.Themer local Util = OnyxUI.Util local Children = Fusion.Children local SettingToggle = require(script.SettingToggle) export type Props = { Parent: Fusion.UsedAs<Instance>?, }...
646
loneka/onyx-ui
loneka-onyx-ui-978b53c/samples/Themes/BitCave.luau
local OnyxUI = script.Parent.Parent.Parent.OnyxUI.Packages.OnyxUI local Util = require(OnyxUI.Util) local NewTheme = require(OnyxUI.Themer.NewTheme) local Fusion = require(OnyxUI.Parent.Fusion) local Scope = Fusion.scoped() local BitCave = NewTheme(Scope, { Colors = { Primary = { Main = Util.Colors.White, }, ...
499
loneka/onyx-ui
loneka-onyx-ui-978b53c/scripts/pesdeToWally.luau
local fs = require("@lune/fs") local serde = require("@lune/serde") local function convertDependencies(pesdeDependencies) local wallyDependencies = {} for alias, dependency in pairs(pesdeDependencies) do if next(dependency) ~= nil then assert(dependency.name == nil, `Package relies on Pesde package.`) if d...
375
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/AutoScaler.luau
--[=[ @class AutoScaler Automatically scales children for the user's screen. 📱💻📺🥽 ]=] --[=[ @interface AutoScalerProps @within AutoScaler . ... FrameProps -- All Frame properties are accepted. .BaseResolution Vector2 -- The base resolution to scale from. .MinScale number -- The minimum scale factor. ...
474
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/AutoScaler.story.luau
local OnyxUI = script.Parent.Parent local Fusion = require(OnyxUI.Parent.Fusion) local Themer = require(OnyxUI.Themer) local Util = require(OnyxUI.Util) local Children = Fusion.Children local AutoScaler = require(OnyxUI.Components.AutoScaler) local Card = require(OnyxUI.Components.Card) local Components = { AutoScal...
253
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/Avatar.luau
--[=[ @class Avatar Useful for displaying player headshots and profile pictures. And optionally, user status. ]=] --[=[ @interface AvatarProps @within Avatar . ... ImageProps -- All Image properties are accepted. .Image string? -- The image to display in the avatar. .RingEnabled boolean? -- Whether the r...
1,089
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/Avatar.story.luau
local OnyxUI = script.Parent.Parent local Fusion = require(OnyxUI.Parent.Fusion) local Themer = require(OnyxUI.Themer) local Util = require(OnyxUI.Util) local Children = Fusion.Children local Frame = require(script.Parent.Frame) local Avatar = require(script.Parent.Avatar) local Components = { Frame = Frame, Avata...
843
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/Badge.luau
--[=[ @class Badge Used to inform the user of something's status. E.g. a notification indicator or discount tag. ]=] --[=[ @interface BadgeProps @within Badge . ... FrameProps -- All Frame properties are accepted. .Content {string}? -- The content to display inside the badge. .ContentWrapped boolean? -- ...
710
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/Badge.story.luau
local OnyxUI = script.Parent.Parent local Fusion = require(OnyxUI.Parent.Fusion) local Themer = require(OnyxUI.Themer) local Util = require(OnyxUI.Util) local Children = Fusion.Children local Frame = require(OnyxUI.Components.Frame) local Badge = require(OnyxUI.Components.Badge) local Text = require(OnyxUI.Component...
592
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/Base.luau
--[=[ @class Base The foundational component of OnyxUI, from which all other components are built off of. Props supported here typically work in all other components. ]=] --[=[ @interface GradientProps @within Base .Enabled boolean? -- Whether the gradient is enabled. .Color ColorSequence? -- The color seque...
6,489
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/Base.story.luau
local OnyxUI = script.Parent.Parent local Fusion = require(OnyxUI.Parent.Fusion) local Themer = require(OnyxUI.Themer) local Util = require(OnyxUI.Util) local Components = require(OnyxUI.Components) local Children = Fusion.Children return { story = function(Props) local Theme = Themer.Theme:now() local Scope = F...
1,090
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/BaseButton.luau
--[=[ @class BaseButton A barebones button component, like if Roblox had a "`Button`" class rather than only a `TextButton`. ]=] --[=[ @interface BaseButtonProps @within BaseButton . ... BaseProps -- All Base properties are accepted. .Disabled boolean? -- Whether the button is disabled. .OnActivate (() ->...
1,108
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/Button.luau
--[=[ @class Button A robust button component, supporting text and icons, and multiple variants. ]=] --[=[ @interface ButtonProps @within Button . ... BaseButtonProps -- All BaseButton properties are accepted. .Disabled boolean? -- Whether the button is disabled. .Style string? -- The style of the button ...
1,832
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/Button.story.luau
local OnyxUI = script.Parent.Parent local Fusion = require(OnyxUI.Parent.Fusion) local Util = require(OnyxUI.Util) local Themer = require(OnyxUI.Themer) local Children = Fusion.Children local Button = require(script.Parent.Button) local Frame = require(script.Parent.Frame) local Divider = require(script.Parent.Divide...
805
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/Card.luau
--[=[ @class Card Useful for grouping and displaying Content in a user friendly way. ]=] --[=[ @within Card @interface CardProps . ... FrameProps -- All Frame properties are accepted. ]=] local OnyxUI = script.Parent.Parent local Fusion = require(OnyxUI.Parent.Fusion) local Themer = require(OnyxUI.Theme...
310
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/Card.story.luau
local OnyxUI = script.Parent.Parent local Fusion = require(OnyxUI.Parent.Fusion) local Themer = require(OnyxUI.Themer) local Util = require(OnyxUI.Util) local Children = Fusion.Children local Frame = require(OnyxUI.Components.Frame) local Card = require(OnyxUI.Components.Card) local Text = require(OnyxUI.Components.T...
457
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/Checkbox.luau
--[=[ @class Checkbox Useful for settings, to-do lists, and anything needing a "Check!" ]=] --[=[ @interface CheckboxProps @within Checkbox . ... BaseButtonProps -- All BaseButton properties are accepted. .Checked boolean? -- Whether the checkbox is checked. .Icon string? -- The icon to display inside the...
1,131
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/Checkbox.story.luau
local OnyxUI = script.Parent.Parent local Fusion = require(OnyxUI.Parent.Fusion) local Themer = require(OnyxUI.Themer) local Util = require(OnyxUI.Util) local Children = Fusion.Children local Frame = require(OnyxUI.Components.Frame) local Checkbox = require(OnyxUI.Components.Checkbox) local Components = { Frame = Fr...
316
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/Divider.luau
--[=[ @class Divider Useful for separating UI into sections. ]=] --[=[ @interface DividerProps @within Divider . ... FrameProps -- All Frame properties are accepted. .Length UDim -- The length of the divider. .FillDirection Enum.FillDirection -- The direction in which the divider fills (Horizontal or Ver...
802
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/Divider.story.luau
local OnyxUI = script.Parent.Parent local Util = require(OnyxUI.Util) local Fusion = require(OnyxUI.Parent.Fusion) local Themer = require(OnyxUI.Themer) local Children = Fusion.Children local Frame = require(OnyxUI.Components.Frame) local Divider = require(OnyxUI.Components.Divider) local Text = require(OnyxUI.Compon...
291
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/Frame.luau
--[=[ @class Frame A barebones container object. Unlike Roblox's `Frame`, it is transparent by default. ]=] --[=[ @within Frame @interface FrameProps . ... BaseProps -- All Base properties are accepted. ]=] local OnyxUI = script.Parent.Parent local Fusion = require(OnyxUI.Parent.Fusion) local Util = req...
193
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/Group.luau
--[=[ @class Group Equivalent to Roblox's `CanvasGroup` instance. ]=] --[=[ @within Group @interface GroupProps @field ... BaseProps -- All Base properties are accepted. @field GroupTransparency Fusion.UsedAs<number>? @field GroupColor3 Fusion.UsedAs<Color3>? ]=] local OnyxUI = script.Parent.Parent ...
276
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/Heading.luau
--[=[ @class Heading For sectioning bodies of text or content, like for a menu title. ]=] --[=[ @interface HeadingProps @within Heading . ... TextProps -- All Text properties are accepted. .HeadingSize number? -- Multiplier for the text size, default is 1.75. .TextSize number? -- Base text size, default i...
345
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/Heading.story.luau
local OnyxUI = script.Parent.Parent local Util = require(OnyxUI.Util) local Fusion = require(OnyxUI.Parent.Fusion) local Themer = require(OnyxUI.Themer) local Children = Fusion.Children local Heading = require(script.Parent.Heading) local Frame = require(script.Parent.Frame) local Text = require(script.Parent.Text) l...
269
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/Icon.luau
--[=[ @class Icon It's an icon, what else can I say? ]=] --[=[ @within Icon @interface IconProps . ... ImageProps -- All Image properties are accepted. ]=] local OnyxUI = script.Parent.Parent local Util = require(OnyxUI.Util) local Fusion = require(OnyxUI.Parent.Fusion) local Themer = require(script.Par...
207
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/Icon.story.luau
local OnyxUI = script.Parent.Parent local Fusion = require(OnyxUI.Parent.Fusion) local Util = require(OnyxUI.Util) local Icon = require(script.Parent.Icon) local Components = { Icon = Icon, } return { story = function(Props) local Scope = Fusion.innerScope(Props.scope, Fusion, Util, Components) Scope:Icon { ...
113
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/IconButton.luau
--[=[ @class IconButton Like [`Button`](/api/Button), but for a single [`Icon`](/api/Icon). ]=] --[=[ @within IconButton @interface IconButtonProps . ... ButtonProps -- All Button properties are accepted. . Image string? ]=] local OnyxUI = script.Parent.Parent local Fusion = require(OnyxUI.Parent.Fusi...
285
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/IconButton.story.luau
local OnyxUI = script.Parent.Parent local Fusion = require(OnyxUI.Parent.Fusion) local Themer = require(OnyxUI.Themer) local Util = require(OnyxUI.Util) local Children = Fusion.Children local IconButton = require(script.Parent.IconButton) local Frame = require(script.Parent.Frame) local Components = { IconButton = ...
448
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/IconSwap.luau
--[=[ @class IconSwap Swap between an array of icons. ]=] --[=[ @interface IconSwapProps @within IconSwap . ... IconButtonProps -- All IconButton properties are accepted. .Options {string}? -- Array of image strings to swap between .Selection number? -- The currently selected option index ]=] local Onyx...
457
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/IconSwap.story.luau
local OnyxUI = script.Parent.Parent local Fusion = require(OnyxUI.Parent.Fusion) local Util = require(OnyxUI.Util) local Themer = require(OnyxUI.Themer) local Children = Fusion.Children local IconSwap = require(script.Parent.IconSwap) local Frame = require(script.Parent.Frame) return { story = function(Props) loc...
243
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/IconText.luau
--[=[ @class IconText For displaying both text and icons alongside each other as one seamless body. ]=] --[=[ @interface IconTextProps @within IconText . ... FrameProps -- All Frame properties are accepted. .Content {string}? -- The content to display, can include both text and icons. .ContentColor Color...
753
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/IconText.story.luau
local OnyxUI = script.Parent.Parent local Fusion = require(OnyxUI.Parent.Fusion) local Util = require(OnyxUI.Util) local IconText = require(script.Parent.IconText) local Components = { IconText = IconText, } return { story = function(Props) local Scope = Fusion.innerScope(Props.scope, Fusion, Util, Components) ...
177
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/Image.luau
--[=[ @class Image Equivalent to Roblox's `ImageLabel`. ]=] --[=[ @interface ImageProps @within Image . ... BaseProps -- All Base properties are accepted. .Image string? -- The image asset ID to display. .FallbackImage string? -- The fallback image asset ID to display if `Image` is not provided. .ImageC...
679
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/Image.story.luau
local OnyxUI = script.Parent.Parent local Util = require(OnyxUI.Util) local Fusion = require(OnyxUI.Parent.Fusion) local Themer = require(OnyxUI.Themer) local Children = Fusion.Children local Frame = require(OnyxUI.Components.Frame) local Image = require(OnyxUI.Components.Image) local Components = { Frame = Frame, ...
258
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/ProgressBar.luau
--[=[ @class ProgressBar Useful for communicating progress towards goals. ]=] --[=[ @interface ProgressBarProps @within ProgressBar . ... FrameProps -- All Frame properties are accepted. .Inverted boolean? -- Whether the progress bar is inverted. .Progress number? -- The progress value, ranging from 0 to...
1,066
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/ProgressBar.story.luau
local OnyxUI = script.Parent.Parent local Fusion = require(OnyxUI.Parent.Fusion) local ColorUtils = require(OnyxUI.Parent.ColorUtils) local Themer = require(OnyxUI.Themer) local Util = require(OnyxUI.Util) local Children = Fusion.Children local Frame = require(script.Parent.Frame) local ProgressBar = require(script....
1,156
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/Scroller.luau
--[=[ @class Scroller For making Content scrollable. Equivalent to Roblox's `Scroller` instance. ]=] --[=[ @interface ScrollerProps @within Scroller . ... BaseProps -- All Base properties are accepted. .AutomaticCanvasSize Enum.AutomaticSize? -- Determines whether the canvas size is automatically adjusted...
1,124
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/Scroller.story.luau
local OnyxUI = script.Parent.Parent local Fusion = require(OnyxUI.Parent.Fusion) local Util = require(OnyxUI.Util) local Scroller = require(script.Parent.Scroller) local Components = { Scroller = Scroller, } return { story = function(Props) local Scope = Fusion.innerScope(Props.scope, Fusion, Util, Components) ...
160
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/Slider.luau
--[=[ @class Slider For draggable linear selection. ]=] --[=[ @interface SliderProps @within Slider . ... BaseButtonProps -- All BaseButton properties are accepted. .Value number? -- The current value of the slider (0 to 1). .Disabled boolean? -- Whether the slider is disabled. .Unit number? -- The step...
1,903
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/Slider.story.luau
local OnyxUI = script.Parent.Parent local Fusion = require(OnyxUI.Parent.Fusion) local Util = require(OnyxUI.Util) local Themer = require(OnyxUI.Themer) local Children = Fusion.Children local Components = { Slider = require(OnyxUI.Components.Slider), Frame = require(OnyxUI.Components.Frame), } return { story = fu...
335
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/Switch.luau
--[=[ @class Switch Useful for letting the user switch things on / off. ]=] --[=[ @interface SwitchProps @within Switch . ... BaseButtonProps -- All BaseButton properties are accepted. .Switched boolean? -- Whether the switch is toggled on or off .Disabled boolean? -- Whether the switch is disabled ...
1,821
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/Switch.story.luau
local OnyxUI = script.Parent.Parent local Util = require(OnyxUI.Util) local Fusion = require(OnyxUI.Parent.Fusion) local Themer = require(OnyxUI.Themer) local Children = Fusion.Children local Switch = require(script.Parent.Switch) local Frame = require(script.Parent.Frame) local Components = { Switch = Switch, Fram...
224
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/Tabs.luau
--[=[ @class Tabs For tabbing between things. ]=] --[=[ @interface TabsProps @within Tabs . ... ButtonProps -- All Button properties are accepted. .Tabs { { string } }? -- List of tabs .Tab number? -- The currently active tab .Disabled boolean? -- Whether the tabs are disabled .Color Color3? -- Color of...
604
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/Tabs.story.luau
local OnyxUI = script.Parent.Parent local Fusion = require(OnyxUI.Parent.Fusion) local Util = require(OnyxUI.Util) local Themer = require(OnyxUI.Themer) local Children = Fusion.Children local Tabs = require(script.Parent.Tabs) local Frame = require(script.Parent.Frame) local Components = { Tabs = Tabs, Frame = Fram...
357
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/Text.luau
--[=[ @class Text For displaying text. *Lorem ipsum dolo..* ]=] --[=[ @interface TextProps @within Text . ... BaseProps -- All Base properties are accepted. .Text string? -- The text to display. .TextColor3 Color3? -- The color of the text. .TextSize number? -- The size of the text. .RichText boolean? ...
889
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/Text.story.luau
local OnyxUI = script.Parent.Parent local Fusion = require(OnyxUI.Parent.Fusion) local Util = require(OnyxUI.Util) local Components = { Text = require(OnyxUI.Components.Text), } return { story = function(Props) local Scope = Fusion.scoped(Fusion, Util, Components) Scope:Text { Parent = Props.target, Text...
142
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/TextArea.luau
--[=[ @class TextArea Like [`TextInput`](/api/TextInput), but dedicated for multi-line use-cases. ]=] --[=[ @within TextArea @interface TextAreaProps . ... TextInputProps -- All TextInput properties are accepted. ]=] local OnyxUI = script.Parent.Parent local Util = require(OnyxUI.Util) local Fusion = re...
187
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/TextArea.story.luau
local OnyxUI = script.Parent.Parent local Util = require(OnyxUI.Util) local Fusion = require(OnyxUI.Parent.Fusion) local Themer = require(OnyxUI.Themer) local Children = Fusion.Children local TextArea = require(script.Parent.TextArea) local Frame = require(script.Parent.Frame) local Components = { TextArea = TextAre...
426
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/TextInput.luau
--[=[ @class TextInput For letting the user input text. ]=] --[=[ @interface TextInputProps @within TextInput . ... BaseProps -- All Base properties are accepted. .Disabled boolean? -- Whether the text input is disabled. .CharacterLimit number? -- The maximum number of characters allowed in the text input...
2,155
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/TextInput.story.luau
local OnyxUI = script.Parent.Parent local Util = require(OnyxUI.Util) local Fusion = require(OnyxUI.Parent.Fusion) local Themer = require(OnyxUI.Themer) local Children = Fusion.Children local TextInput = require(script.Parent.TextInput) local Frame = require(script.Parent.Frame) local Components = { Frame = Frame, ...
323
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/TextSwap.luau
--[=[ @class TextSwap Swap between an array values. ]=] --[=[ @interface TextSwapProps @within TextSwap . ... BaseButtonProps -- All BaseButton properties are accepted. .Options {string}? -- Array of string options to swap between .Selection number? -- The currently selected option index .Disabled boole...
1,527
loneka/onyx-ui
loneka-onyx-ui-978b53c/src/Components/TextSwap.story.luau
local OnyxUI = script.Parent.Parent local Fusion = require(OnyxUI.Parent.Fusion) local Util = require(OnyxUI.Util) local Themer = require(OnyxUI.Themer) local Children = Fusion.Children local Components = { TextSwap = require(OnyxUI.Components.TextSwap), Frame = require(OnyxUI.Components.Frame), } return { story ...
327