@nrbx/topbar-components 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,17 +1,5 @@
|
|
|
1
1
|
import React from '@rbxts/react';
|
|
2
2
|
export type SelectionMode = 'Single' | 'Multiple';
|
|
3
|
-
/** Docks icons to the left side of the topbar. */
|
|
4
|
-
export declare function LeftDock({ children, frameRef }: React.PropsWithChildren & {
|
|
5
|
-
frameRef?: React.Ref<Frame>;
|
|
6
|
-
}): React.JSX.Element;
|
|
7
|
-
/** Docks icons to the center of the topbar. */
|
|
8
|
-
export declare function CenterDock({ children, frameRef }: React.PropsWithChildren & {
|
|
9
|
-
frameRef?: React.Ref<Frame>;
|
|
10
|
-
}): React.JSX.Element;
|
|
11
|
-
/** Docks icons to the right side of the topbar. */
|
|
12
|
-
export declare function RightDock({ children, frameRef }: React.PropsWithChildren & {
|
|
13
|
-
frameRef?: React.Ref<Frame>;
|
|
14
|
-
}): React.JSX.Element;
|
|
15
3
|
interface ProviderProps extends React.PropsWithChildren {
|
|
16
4
|
/**
|
|
17
5
|
* How icon selection works across the topbar.
|
|
@@ -255,7 +255,7 @@ local function TopbarProvider(_param)
|
|
|
255
255
|
table.insert(overflowed, _arg0)
|
|
256
256
|
end
|
|
257
257
|
end
|
|
258
|
-
return React.createElement(React.
|
|
258
|
+
return React.createElement(React.Fragment, nil, visible, React.createElement(Overflow, nil, overflowed))
|
|
259
259
|
end
|
|
260
260
|
local hasBetaLabel = gameVoiceChatEnabled and voiceChatEnabled
|
|
261
261
|
local leftPadding = if hasBetaLabel then stylesheet.paddingLeft + 16 else stylesheet.paddingLeft
|
|
@@ -328,8 +328,5 @@ local function TopbarProvider(_param)
|
|
|
328
328
|
}, buildDockContent(sorted.groups.right, "right")), sorted.other))
|
|
329
329
|
end
|
|
330
330
|
return {
|
|
331
|
-
LeftDock = LeftDock,
|
|
332
|
-
CenterDock = CenterDock,
|
|
333
|
-
RightDock = RightDock,
|
|
334
331
|
TopbarProvider = TopbarProvider,
|
|
335
332
|
}
|
|
@@ -3,7 +3,7 @@ local TS = _G[script]
|
|
|
3
3
|
local React = TS.import(script, TS.getModule(script, "@rbxts", "react"))
|
|
4
4
|
local StylesheetContext = TS.import(script, script.Parent.Parent, "context").StylesheetContext
|
|
5
5
|
local DefaultStylesheet = TS.import(script, script.Parent.Parent, "style").DefaultStylesheet
|
|
6
|
-
local reconcile = TS.import(script, script.Parent.Parent, "utilities", "merge").
|
|
6
|
+
local reconcile = TS.import(script, script.Parent.Parent, "utilities", "merge").reconcile
|
|
7
7
|
--[[
|
|
8
8
|
*
|
|
9
9
|
* Applies a custom stylesheet to all descendant topbar components.
|
package/out/utilities/merge.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare function reconcile(target: object, template: object): object;
|
package/out/utilities/merge.luau
CHANGED