@rbxts/uiblox 0.1.46 → 0.1.47

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,3 +1 @@
1
- import { ThemeState } from "../types/index";
2
1
  export declare const DEFAULT_THEME: import("../index").Theme;
3
- export declare const INITIAL_THEME_STATE: ThemeState;
@@ -2,10 +2,6 @@
2
2
  local TS = _G[script]
3
3
  local DarkTheme = TS.import(script, script.Parent.Parent, "themes").DarkTheme
4
4
  local DEFAULT_THEME = DarkTheme
5
- local INITIAL_THEME_STATE = {
6
- theme = DEFAULT_THEME,
7
- }
8
5
  return {
9
6
  DEFAULT_THEME = DEFAULT_THEME,
10
- INITIAL_THEME_STATE = INITIAL_THEME_STATE,
11
7
  }
@@ -4,16 +4,12 @@ export { DEFAULT_THEME } from "./constants/index";
4
4
  export * from "./context/index";
5
5
  export { ThemeProvider } from "./context/index";
6
6
  export { ThemeContext } from "./context/index";
7
- export * from "./enums/index";
8
7
  export { useTheme } from "./hooks/index";
9
8
  export * from "./interfaces/index";
10
9
  export * from "./styles/index";
11
10
  export * from "./themes/index";
12
11
  export { default as DarkTheme } from "./themes/DarkTheme";
13
12
  export { default as LightTheme } from "./themes/LightTheme";
14
- export { ThemeState } from "./types/index";
15
- export { ThemeAction } from "./types/index";
16
- export { ThemeDispatch } from "./types/index";
17
13
  export { CommonProps } from "./types/index";
18
14
  export { BaseDefaultProps } from "./types/index";
19
15
  export { BaseCustomizedProps } from "./types/index";
@@ -10,9 +10,6 @@ for _k, _v in TS.import(script, script, "context") or {} do
10
10
  end
11
11
  exports.ThemeProvider = TS.import(script, script, "context").ThemeProvider
12
12
  exports.ThemeContext = TS.import(script, script, "context").ThemeContext
13
- for _k, _v in TS.import(script, script, "enums") or {} do
14
- exports[_k] = _v
15
- end
16
13
  exports.useTheme = TS.import(script, script, "hooks").useTheme
17
14
  for _k, _v in TS.import(script, script, "interfaces") or {} do
18
15
  exports[_k] = _v
@@ -1,6 +1,3 @@
1
- export { ThemeState } from "./context";
2
- export { ThemeAction } from "./context";
3
- export { ThemeDispatch } from "./context";
4
1
  export { CommonProps } from "./types";
5
2
  export { BaseDefaultProps } from "./types";
6
3
  export { BaseCustomizedProps } from "./types";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/uiblox",
3
- "version": "0.1.46",
3
+ "version": "0.1.47",
4
4
  "description": "UI Library and theming for roblox-ts projects",
5
5
  "main": "out/init.lua",
6
6
  "scripts": {
@@ -1,4 +0,0 @@
1
- export declare enum ThemeActionTypes {
2
- Hydrate = "Hydrate",
3
- SetTheme = "SetTheme"
4
- }
@@ -1,8 +0,0 @@
1
- -- Compiled with roblox-ts v3.0.0
2
- local ThemeActionTypes = {
3
- Hydrate = "Hydrate",
4
- SetTheme = "SetTheme",
5
- }
6
- return {
7
- ThemeActionTypes = ThemeActionTypes,
8
- }
@@ -1 +0,0 @@
1
- export * from "./ThemeActionTypes";
@@ -1,7 +0,0 @@
1
- -- Compiled with roblox-ts v3.0.0
2
- local TS = _G[script]
3
- local exports = {}
4
- for _k, _v in TS.import(script, script, "ThemeActionTypes") or {} do
5
- exports[_k] = _v
6
- end
7
- return exports
@@ -1,13 +0,0 @@
1
- import { ThemeActionTypes } from "../enums/index";
2
- import { Theme } from "../interfaces/index";
3
- export interface ThemeState {
4
- theme: Theme;
5
- }
6
- export type ThemeAction = {
7
- type: ThemeActionTypes.Hydrate;
8
- theme?: Theme;
9
- } | {
10
- type: ThemeActionTypes.SetTheme;
11
- theme: Theme;
12
- };
13
- export type ThemeDispatch = React.Dispatch<ThemeAction>;
@@ -1,2 +0,0 @@
1
- -- Compiled with roblox-ts v3.0.0
2
- return nil