@rbxts/uiblox 0.1.7 → 0.1.10

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.
Files changed (228) hide show
  1. package/README.md +33 -37
  2. package/out/index.d.ts +2 -2
  3. package/out/{init.lua → init.luau} +1 -1
  4. package/out/theme/components/ThemeProvider.d.ts +3 -3
  5. package/out/theme/components/{ThemeProvider.lua → ThemeProvider.luau} +6 -22
  6. package/out/theme/components/ThemeStore.d.ts +1 -2
  7. package/out/theme/components/{ThemeStore.lua → ThemeStore.luau} +1 -1
  8. package/out/theme/components/ThemeWrapper.d.ts +3 -3
  9. package/out/theme/components/{ThemeWrapper.lua → ThemeWrapper.luau} +6 -21
  10. package/out/theme/components/{init.lua → init.luau} +1 -1
  11. package/out/theme/constants/NumberConstants.d.ts +1 -1
  12. package/out/theme/constants/{NumberConstants.lua → NumberConstants.luau} +1 -1
  13. package/out/theme/constants/ThemeConstants.d.ts +2 -2
  14. package/out/theme/constants/{ThemeConstants.lua → ThemeConstants.luau} +1 -1
  15. package/out/theme/constants/{init.lua → init.luau} +1 -1
  16. package/out/theme/index.d.ts +17 -17
  17. package/out/theme/{init.lua → init.luau} +1 -1
  18. package/out/theme/interfaces/iconSizes/IconSizes.luau +2 -0
  19. package/out/theme/interfaces/iconSizes/init.luau +2 -0
  20. package/out/theme/interfaces/index.d.ts +13 -13
  21. package/out/theme/interfaces/{init.lua → init.luau} +1 -1
  22. package/out/theme/interfaces/palette/Palette.d.ts +0 -1
  23. package/out/theme/interfaces/palette/Palette.luau +2 -0
  24. package/out/theme/interfaces/palette/colorTokens/ColorTokens.d.ts +1 -2
  25. package/out/theme/interfaces/palette/colorTokens/ColorTokens.luau +2 -0
  26. package/out/theme/interfaces/palette/colorTokens/init.luau +2 -0
  27. package/out/theme/interfaces/palette/colors/{Blue.lua → Blue.luau} +1 -1
  28. package/out/theme/interfaces/palette/colors/Colors.d.ts +0 -1
  29. package/out/theme/interfaces/palette/colors/Colors.luau +2 -0
  30. package/out/theme/interfaces/palette/colors/Common.d.ts +0 -1
  31. package/out/theme/interfaces/palette/colors/{Common.lua → Common.luau} +1 -1
  32. package/out/theme/interfaces/palette/colors/{Dark.lua → Dark.luau} +1 -1
  33. package/out/theme/interfaces/palette/colors/{Gray.lua → Gray.luau} +1 -1
  34. package/out/theme/interfaces/palette/colors/{Green.lua → Green.luau} +1 -1
  35. package/out/theme/interfaces/palette/colors/{Light.lua → Light.luau} +1 -1
  36. package/out/theme/interfaces/palette/colors/{Magenta.lua → Magenta.luau} +1 -1
  37. package/out/theme/interfaces/palette/colors/{Orange.lua → Orange.luau} +1 -1
  38. package/out/theme/interfaces/palette/colors/{Purple.lua → Purple.luau} +1 -1
  39. package/out/theme/interfaces/palette/colors/{Red.lua → Red.luau} +1 -1
  40. package/out/theme/interfaces/palette/colors/{Turquoise.lua → Turquoise.luau} +1 -1
  41. package/out/theme/interfaces/palette/colors/{Yellow.lua → Yellow.luau} +1 -1
  42. package/out/theme/interfaces/palette/colors/{init.lua → init.luau} +1 -1
  43. package/out/theme/interfaces/palette/index.d.ts +2 -2
  44. package/out/theme/interfaces/palette/{init.lua → init.luau} +1 -1
  45. package/out/theme/interfaces/spacing/Borders.luau +2 -0
  46. package/out/theme/interfaces/spacing/Padding.luau +2 -0
  47. package/out/theme/interfaces/spacing/Shape.luau +2 -0
  48. package/out/theme/interfaces/spacing/Spacing.luau +2 -0
  49. package/out/theme/interfaces/spacing/init.luau +2 -0
  50. package/out/theme/interfaces/theme/Theme.d.ts +3 -3
  51. package/out/theme/interfaces/theme/Theme.luau +2 -0
  52. package/out/theme/interfaces/theme/ThemeConstants.d.ts +4 -4
  53. package/out/theme/interfaces/theme/ThemeConstants.luau +2 -0
  54. package/out/theme/interfaces/theme/ThemeOptions.luau +2 -0
  55. package/out/theme/interfaces/theme/init.luau +2 -0
  56. package/out/theme/interfaces/tokens/Tokens.luau +2 -0
  57. package/out/theme/interfaces/tokens/init.luau +2 -0
  58. package/out/theme/interfaces/typography/{FontFamilies.lua → FontFamilies.luau} +1 -1
  59. package/out/theme/interfaces/typography/FontFamilyOptions.d.ts +0 -2
  60. package/out/theme/interfaces/typography/FontFamilyOptions.luau +2 -0
  61. package/out/theme/interfaces/typography/FontSizeOptions.d.ts +0 -1
  62. package/out/theme/interfaces/typography/FontSizeOptions.luau +2 -0
  63. package/out/theme/interfaces/typography/{FontSizes.lua → FontSizes.luau} +1 -1
  64. package/out/theme/interfaces/typography/ThemeTypography.luau +2 -0
  65. package/out/theme/interfaces/typography/{Variants.lua → Variants.luau} +1 -1
  66. package/out/theme/interfaces/typography/{init.lua → init.luau} +1 -1
  67. package/out/theme/styles/index.d.ts +5 -5
  68. package/out/theme/styles/{init.lua → init.luau} +1 -1
  69. package/out/theme/styles/types/WriteableStyle.d.ts +0 -2
  70. package/out/theme/styles/types/WriteableStyle.luau +2 -0
  71. package/out/theme/styles/types/init.luau +2 -0
  72. package/out/theme/styles/types/styles.d.ts +0 -2
  73. package/out/theme/styles/types/styles.luau +2 -0
  74. package/out/theme/styles/utilities/classNames.d.ts +2 -3
  75. package/out/theme/styles/utilities/classNames.luau +33 -0
  76. package/out/theme/styles/utilities/{createStyles.lua → createStyles.luau} +1 -1
  77. package/out/theme/styles/utilities/{init.lua → init.luau} +1 -1
  78. package/out/theme/styles/utilities/makeStyles.d.ts +1 -1
  79. package/out/theme/styles/utilities/{makeStyles.lua → makeStyles.luau} +1 -1
  80. package/out/theme/themes/DarkTheme.d.ts +1 -1
  81. package/out/theme/themes/{DarkTheme.lua → DarkTheme.luau} +1 -1
  82. package/out/theme/themes/LightTheme.d.ts +1 -1
  83. package/out/theme/themes/{LightTheme.lua → LightTheme.luau} +1 -1
  84. package/out/theme/themes/{init.lua → init.luau} +1 -1
  85. package/out/theme/types/init.luau +2 -0
  86. package/out/theme/types/types.d.ts +5 -8
  87. package/out/theme/types/{types.lua → types.luau} +1 -1
  88. package/out/theme/utilites/{Color3FromHex.lua → Color3FromHex.luau} +2 -2
  89. package/out/theme/utilites/{init.lua → init.luau} +1 -1
  90. package/out/ui/constants/{ImageConstants.lua → ImageConstants.luau} +1 -1
  91. package/out/ui/constants/{LayoutConstants.lua → LayoutConstants.luau} +1 -1
  92. package/out/ui/constants/{init.lua → init.luau} +1 -1
  93. package/out/ui/enums/Directions.luau +12 -0
  94. package/out/ui/enums/Icons.luau +44 -0
  95. package/out/ui/enums/Orientations.luau +8 -0
  96. package/out/ui/enums/{init.lua → init.luau} +1 -1
  97. package/out/ui/index.d.ts +34 -34
  98. package/out/ui/{init.lua → init.luau} +1 -1
  99. package/out/ui/packages/button/components/Button.d.ts +3 -5
  100. package/out/ui/packages/button/components/{Button.lua → Button.luau} +63 -88
  101. package/out/ui/packages/button/components/Button.styles.d.ts +1 -1
  102. package/out/ui/packages/button/components/{Button.styles.lua → Button.styles.luau} +1 -1
  103. package/out/ui/packages/button/index.d.ts +3 -3
  104. package/out/ui/packages/button/{init.lua → init.luau} +1 -1
  105. package/out/ui/packages/button/types/ButtonColor.luau +2 -0
  106. package/out/ui/packages/button/types/ButtonSize.luau +2 -0
  107. package/out/ui/packages/button/types/ButtonVariant.luau +2 -0
  108. package/out/ui/packages/button/types/init.luau +2 -0
  109. package/out/ui/packages/divider/components/Divider.d.ts +2 -6
  110. package/out/ui/packages/divider/components/{Divider.lua → Divider.luau} +6 -10
  111. package/out/ui/packages/divider/components/Divider.styles.d.ts +1 -1
  112. package/out/ui/packages/divider/components/{Divider.styles.lua → Divider.styles.luau} +1 -1
  113. package/out/ui/packages/divider/{init.lua → init.luau} +1 -1
  114. package/out/ui/packages/icon/components/Icon.d.ts +2 -5
  115. package/out/ui/packages/icon/components/{Icon.lua → Icon.luau} +5 -9
  116. package/out/ui/packages/icon/components/Icon.styles.d.ts +1 -1
  117. package/out/ui/packages/icon/components/{Icon.styles.lua → Icon.styles.luau} +1 -1
  118. package/out/ui/packages/icon/{init.lua → init.luau} +1 -1
  119. package/out/ui/packages/iconButton/components/IconButton.d.ts +2 -5
  120. package/out/ui/packages/iconButton/components/{IconButton.lua → IconButton.luau} +18 -20
  121. package/out/ui/packages/iconButton/components/IconButton.styles.d.ts +1 -1
  122. package/out/ui/packages/iconButton/components/{IconButton.styles.lua → IconButton.styles.luau} +1 -1
  123. package/out/ui/packages/iconButton/{init.lua → init.luau} +1 -1
  124. package/out/ui/packages/index.d.ts +11 -11
  125. package/out/ui/packages/{init.lua → init.luau} +1 -1
  126. package/out/ui/packages/input/components/Input.d.ts +2 -6
  127. package/out/ui/packages/input/components/{Input.lua → Input.luau} +38 -69
  128. package/out/ui/packages/input/components/Input.styles.d.ts +1 -1
  129. package/out/ui/packages/input/components/{Input.styles.lua → Input.styles.luau} +1 -1
  130. package/out/ui/packages/input/index.d.ts +3 -3
  131. package/out/ui/packages/input/{init.lua → init.luau} +1 -1
  132. package/out/ui/packages/input/types/InputColor.luau +2 -0
  133. package/out/ui/packages/input/types/InputMargin.luau +2 -0
  134. package/out/ui/packages/input/types/InputVariant.luau +2 -0
  135. package/out/ui/packages/input/types/init.luau +2 -0
  136. package/out/ui/packages/progressBar/components/ProgressBar.d.ts +1 -3
  137. package/out/ui/packages/progressBar/components/ProgressBar.luau +46 -0
  138. package/out/ui/packages/progressBar/components/ProgressBar.styles.d.ts +1 -1
  139. package/out/ui/packages/progressBar/components/{ProgressBar.styles.lua → ProgressBar.styles.luau} +1 -1
  140. package/out/ui/packages/progressBar/{init.lua → init.luau} +1 -1
  141. package/out/ui/packages/shadow/components/Shadow.d.ts +0 -1
  142. package/out/ui/packages/shadow/components/{Shadow.lua → Shadow.luau} +14 -24
  143. package/out/ui/packages/shadow/components/Shadow.styles.d.ts +1 -1
  144. package/out/ui/packages/shadow/components/{Shadow.styles.lua → Shadow.styles.luau} +1 -1
  145. package/out/ui/packages/shadow/{init.lua → init.luau} +1 -1
  146. package/out/ui/packages/sidebar/components/Sidebar.d.ts +1 -3
  147. package/out/ui/packages/sidebar/components/Sidebar.luau +26 -0
  148. package/out/ui/packages/sidebar/components/Sidebar.styles.d.ts +1 -1
  149. package/out/ui/packages/sidebar/components/{Sidebar.styles.lua → Sidebar.styles.luau} +1 -1
  150. package/out/ui/packages/sidebar/index.d.ts +1 -1
  151. package/out/ui/packages/sidebar/{init.lua → init.luau} +1 -1
  152. package/out/ui/packages/sidebar/types/SidebarType.luau +2 -0
  153. package/out/ui/packages/sidebar/types/init.luau +2 -0
  154. package/out/ui/packages/toast/components/Toast.d.ts +0 -1
  155. package/out/ui/packages/toast/components/{Toast.lua → Toast.luau} +21 -29
  156. package/out/ui/packages/toast/components/Toast.styles.d.ts +1 -1
  157. package/out/ui/packages/toast/components/{Toast.styles.lua → Toast.styles.luau} +1 -1
  158. package/out/ui/packages/toast/enums/ToastVariants.luau +11 -0
  159. package/out/ui/packages/toast/{init.lua → init.luau} +1 -1
  160. package/out/ui/packages/toast/interfaces/ToastEvent.luau +2 -0
  161. package/out/ui/packages/treeView/components/TreeView.d.ts +2 -4
  162. package/out/ui/packages/treeView/components/{TreeView.lua → TreeView.luau} +116 -149
  163. package/out/ui/packages/treeView/components/TreeView.styles.d.ts +1 -1
  164. package/out/ui/packages/treeView/components/{TreeView.styles.lua → TreeView.styles.luau} +1 -1
  165. package/out/ui/packages/treeView/{init.lua → init.luau} +1 -1
  166. package/out/ui/packages/treeView/interfaces/Branch.luau +2 -0
  167. package/out/ui/packages/treeView/interfaces/Leaf.luau +2 -0
  168. package/out/ui/packages/treeView/interfaces/Tree.luau +2 -0
  169. package/out/ui/packages/typography/components/Typography.d.ts +2 -4
  170. package/out/ui/packages/typography/components/{Typography.lua → Typography.luau} +7 -22
  171. package/out/ui/packages/typography/components/Typography.styles.d.ts +1 -1
  172. package/out/ui/packages/typography/components/{Typography.styles.lua → Typography.styles.luau} +1 -1
  173. package/out/ui/packages/typography/index.d.ts +3 -3
  174. package/out/ui/packages/typography/{init.lua → init.luau} +1 -1
  175. package/out/ui/packages/typography/types/TypographyAlignment.luau +2 -0
  176. package/out/ui/packages/typography/types/TypographyColor.luau +2 -0
  177. package/out/ui/packages/typography/types/TypographyDisplay.luau +2 -0
  178. package/out/ui/packages/typography/types/init.luau +2 -0
  179. package/package.json +16 -19
  180. package/out/theme/interfaces/iconSizes/IconSizes.lua +0 -2
  181. package/out/theme/interfaces/iconSizes/init.lua +0 -2
  182. package/out/theme/interfaces/palette/Palette.lua +0 -2
  183. package/out/theme/interfaces/palette/colorTokens/ColorTokens.lua +0 -2
  184. package/out/theme/interfaces/palette/colorTokens/init.lua +0 -2
  185. package/out/theme/interfaces/palette/colors/Colors.lua +0 -2
  186. package/out/theme/interfaces/spacing/Borders.lua +0 -2
  187. package/out/theme/interfaces/spacing/Padding.lua +0 -2
  188. package/out/theme/interfaces/spacing/Shape.lua +0 -2
  189. package/out/theme/interfaces/spacing/Spacing.lua +0 -2
  190. package/out/theme/interfaces/spacing/init.lua +0 -2
  191. package/out/theme/interfaces/theme/Theme.lua +0 -2
  192. package/out/theme/interfaces/theme/ThemeConstants.lua +0 -2
  193. package/out/theme/interfaces/theme/ThemeOptions.lua +0 -2
  194. package/out/theme/interfaces/theme/init.lua +0 -2
  195. package/out/theme/interfaces/tokens/Tokens.lua +0 -2
  196. package/out/theme/interfaces/tokens/init.lua +0 -2
  197. package/out/theme/interfaces/typography/FontFamilyOptions.lua +0 -2
  198. package/out/theme/interfaces/typography/FontSizeOptions.lua +0 -2
  199. package/out/theme/interfaces/typography/ThemeTypography.lua +0 -2
  200. package/out/theme/styles/types/WriteableStyle.lua +0 -2
  201. package/out/theme/styles/types/init.lua +0 -2
  202. package/out/theme/styles/types/styles.lua +0 -2
  203. package/out/theme/styles/utilities/classNames.lua +0 -31
  204. package/out/theme/types/init.lua +0 -2
  205. package/out/ui/enums/Directions.lua +0 -23
  206. package/out/ui/enums/Icons.lua +0 -87
  207. package/out/ui/enums/Orientations.lua +0 -15
  208. package/out/ui/packages/button/types/ButtonColor.lua +0 -2
  209. package/out/ui/packages/button/types/ButtonSize.lua +0 -2
  210. package/out/ui/packages/button/types/ButtonVariant.lua +0 -2
  211. package/out/ui/packages/button/types/init.lua +0 -2
  212. package/out/ui/packages/input/types/InputColor.lua +0 -2
  213. package/out/ui/packages/input/types/InputMargin.lua +0 -2
  214. package/out/ui/packages/input/types/InputVariant.lua +0 -2
  215. package/out/ui/packages/input/types/init.lua +0 -2
  216. package/out/ui/packages/progressBar/components/ProgressBar.lua +0 -76
  217. package/out/ui/packages/sidebar/components/Sidebar.lua +0 -46
  218. package/out/ui/packages/sidebar/types/SidebarType.lua +0 -2
  219. package/out/ui/packages/sidebar/types/init.lua +0 -2
  220. package/out/ui/packages/toast/enums/ToastVariants.lua +0 -20
  221. package/out/ui/packages/toast/interfaces/ToastEvent.lua +0 -2
  222. package/out/ui/packages/treeView/interfaces/Branch.lua +0 -2
  223. package/out/ui/packages/treeView/interfaces/Leaf.lua +0 -2
  224. package/out/ui/packages/treeView/interfaces/Tree.lua +0 -2
  225. package/out/ui/packages/typography/types/TypographyAlignment.lua +0 -2
  226. package/out/ui/packages/typography/types/TypographyColor.lua +0 -2
  227. package/out/ui/packages/typography/types/TypographyDisplay.lua +0 -2
  228. package/out/ui/packages/typography/types/init.lua +0 -2
@@ -1,5 +1,3 @@
1
- /// <reference types="@rbxts/compiler-types" />
2
- /// <reference types="@rbxts/types" />
3
1
  export type FontFamilyVariant = "default" | "bold" | "semibold" | "light" | "italics";
4
2
  export interface FontFamilyOptions extends Partial<Record<FontFamilyVariant, Required<Enum.Font>>> {
5
3
  }
@@ -0,0 +1,2 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ return nil
@@ -1,4 +1,3 @@
1
- /// <reference types="@rbxts/compiler-types" />
2
1
  export type FontSizeVariant = "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "subtitle1" | "subtitle2" | "body" | "caption" | "button" | "overline";
3
2
  export interface FontSizeOptions extends Partial<Record<FontSizeVariant, Required<number>>> {
4
3
  }
@@ -0,0 +1,2 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ return nil
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.2.0
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  local baseFontSize = 16
3
3
  local allFontSizes = {
4
4
  h1 = baseFontSize * 2,
@@ -0,0 +1,2 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ return nil
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.2.0
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  local TypographyWeights = {
3
3
  title = 800,
4
4
  heading = 500,
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.2.0
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
3
  local exports = {}
4
4
  for _k, _v in TS.import(script, script, "FontSizes") or {} do
@@ -1,5 +1,5 @@
1
- export { ClassNameMap } from "./types";
2
- export { WriteableStyle } from "./types";
3
- export { createStyles } from "./utilities";
4
- export { makeStyles } from "./utilities";
5
- export { classNames } from "./utilities";
1
+ export { ClassNameMap } from "./types/index";
2
+ export { WriteableStyle } from "./types/index";
3
+ export { createStyles } from "./utilities/index";
4
+ export { makeStyles } from "./utilities/index";
5
+ export { classNames } from "./utilities/index";
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.2.0
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
3
  local exports = {}
4
4
  exports.createStyles = TS.import(script, script, "utilities").createStyles
@@ -1,3 +1 @@
1
- /// <reference types="@rbxts/types" />
2
- /// <reference types="@rbxts/compiler-types" />
3
1
  export type WriteableStyle<T extends Instance> = Partial<WritableInstanceProperties<T>>;
@@ -0,0 +1,2 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ return nil
@@ -0,0 +1,2 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ return nil
@@ -1,4 +1,2 @@
1
- /// <reference types="@rbxts/types" />
2
- /// <reference types="@rbxts/compiler-types" />
3
1
  import { WriteableStyle } from "./WriteableStyle";
4
2
  export type ClassNameMap<ClassKey extends string = string, T extends Instance = Instance> = Record<ClassKey, Partial<WriteableStyle<T>>>;
@@ -0,0 +1,2 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ return nil
@@ -1,8 +1,7 @@
1
- /// <reference types="@rbxts/compiler-types" />
2
1
  import { WriteableStyle } from "../types/WriteableStyle";
3
2
  export type GenericStyle = {
4
3
  [property: string]: boolean;
5
4
  };
6
- export type ConditionalStyles = Map<WriteableStyle<any>, boolean>;
7
- declare const classNames: (styles: ConditionalStyles) => GenericStyle;
5
+ export type ConditionalStyles<T extends Instance> = Map<WriteableStyle<T>, boolean>;
6
+ declare const classNames: <T extends Instance>(conditionalStyles?: ConditionalStyles<T>, ...styles: Array<WriteableStyle<T>>) => WriteableStyle<T>;
8
7
  export default classNames;
@@ -0,0 +1,33 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ -- eslint-disable-next-line @typescript-eslint/no-explicit-any
3
+ local classNames = function(conditionalStyles, ...)
4
+ local styles = { ... }
5
+ -- eslint-disable-next-line @typescript-eslint/no-explicit-any
6
+ local style = {}
7
+ local _result = conditionalStyles
8
+ if _result ~= nil then
9
+ -- ▼ ReadonlyMap.forEach ▼
10
+ local _callback = function(value, key)
11
+ if value then
12
+ local _object = table.clone(style)
13
+ setmetatable(_object, nil)
14
+ for _k, _v in key do
15
+ _object[_k] = _v
16
+ end
17
+ style = _object
18
+ end
19
+ end
20
+ for _k, _v in _result do
21
+ _callback(_v, _k, _result)
22
+ end
23
+ -- ▲ ReadonlyMap.forEach ▲
24
+ end
25
+ local _object = table.clone(style)
26
+ setmetatable(_object, nil)
27
+ _object.styles = styles
28
+ return _object
29
+ end
30
+ local default = classNames
31
+ return {
32
+ default = default,
33
+ }
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.2.0
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  local createStyles = function(styles)
3
3
  return styles
4
4
  end
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.2.0
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
3
  local exports = {}
4
4
  exports.createStyles = TS.import(script, script, "createStyles").default
@@ -1,4 +1,4 @@
1
- import { Theme } from "../../interfaces/theme";
1
+ import { Theme } from "../../interfaces/theme/index";
2
2
  import { ClassNameMap } from "../types/styles";
3
3
  type TMakeStyles<ClassKey extends string = string> = (theme: Theme) => ClassNameMap<ClassKey>;
4
4
  type TMakeStylesWithProps<Props, ClassKey extends string = string> = (theme: Theme, props: Props) => ClassNameMap<ClassKey>;
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.2.0
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
3
  local DefaultTheme = TS.import(script, script.Parent.Parent.Parent, "themes").default
4
4
  local themeStore = TS.import(script, script.Parent.Parent.Parent, "components", "ThemeStore").themeStore
@@ -1,3 +1,3 @@
1
- import { Theme } from "../interfaces/theme";
1
+ import { Theme } from "../interfaces/theme/index";
2
2
  declare const DarkTheme: Theme;
3
3
  export default DarkTheme;
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.2.0
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
3
  local allFontSizes = TS.import(script, script.Parent.Parent, "interfaces", "typography", "FontSizes").allFontSizes
4
4
  local _colors = TS.import(script, script.Parent.Parent, "interfaces", "palette", "colors")
@@ -1,3 +1,3 @@
1
- import { Theme } from "../interfaces/theme";
1
+ import { Theme } from "../interfaces/theme/index";
2
2
  declare const LightTheme: Theme;
3
3
  export default LightTheme;
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.2.0
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
3
  local allFontSizes = TS.import(script, script.Parent.Parent, "interfaces", "typography", "FontSizes").allFontSizes
4
4
  local _colors = TS.import(script, script.Parent.Parent, "interfaces", "palette", "colors")
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.2.0
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
3
  local exports = {}
4
4
  exports.default = TS.import(script, script, "DarkTheme").default
@@ -0,0 +1,2 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ return nil
@@ -1,16 +1,13 @@
1
- /// <reference types="@rbxts/types" />
2
- /// <reference types="roact" />
3
- /// <reference types="@rbxts/compiler-types" />
4
1
  import Roact, { Element, PropsWithChildren } from "@rbxts/roact";
5
- import { WriteableStyle } from "../interfaces";
2
+ import { WriteableStyle } from "../interfaces/index";
6
3
  export interface CommonProps<T extends Instance> extends PropsWithChildren {
7
4
  className?: WriteableStyle<T>;
5
+ component?: T;
6
+ children?: Roact.Children;
8
7
  }
9
8
  export type BaseDefaultProps<T extends Instance, P> = CommonProps<T> & P;
10
- export type BaseCustomizedProps<T extends Instance, P> = BaseDefaultProps<T, P> & PropsWithChildren<{
11
- component?: T;
12
- }>;
9
+ export type BaseCustomizedProps<T extends Instance, P> = BaseDefaultProps<T, P>;
13
10
  export type DefaultProps<T extends Instance, P = {}> = BaseDefaultProps<T, P>;
14
11
  export type CustomizedProps<T extends Instance, P = {}> = BaseCustomizedProps<T, P>;
15
12
  export type CustomizedRef<T extends Instance> = T extends Instance ? any : T extends keyof Roact.JsxInstance<T> ? WritableInstanceProperties<T> : never;
16
- export type CustomizedForwardRefComponent<D extends Instance, P = {}> = <T extends Instance = D>(props: PropsWithChildren<CustomizedProps<T, P>> & WritableInstanceProperties<CustomizedRef<T>>) => Element | undefined;
13
+ export type CustomizedForwardRefComponent<D extends Instance, P = {}> = <T extends Instance = D>(props: CustomizedProps<T, P> & WritableInstanceProperties<CustomizedRef<T>>) => Element | undefined;
@@ -1,3 +1,3 @@
1
- -- Compiled with roblox-ts v2.2.0
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  -- eslint-disable @typescript-eslint/no-explicit-any
3
3
  return nil
@@ -1,8 +1,8 @@
1
- -- Compiled with roblox-ts v2.2.0
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  local Color3FromHex = function(hex)
3
3
  local hextStr, _ = string.gsub(hex, "#", "")
4
4
  local bigint = tonumber(hextStr, 16)
5
- assert(bigint ~= 0 and (bigint == bigint and bigint), "Color3FromHex: Invalid hex value")
5
+ assert(bigint ~= 0 and bigint == bigint and bigint, "Color3FromHex: Invalid hex value")
6
6
  local r = bit32.band((bit32.arshift(bigint, 16)), 255)
7
7
  local g = bit32.band((bit32.arshift(bigint, 8)), 255)
8
8
  local b = bit32.band(bigint, 255)
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.2.0
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
3
  local exports = {}
4
4
  exports.Color3FromHex = TS.import(script, script, "Color3FromHex").default
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.2.0
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  local PRELOADER_LOGO_IMAGE = "rbxassetid://8972054582"
3
3
  local PAGE_NOT_FOUND_IMAGE = "rbxassetid://9058373693"
4
4
  return {
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.2.0
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
3
  local DefaultTheme = TS.import(script, script.Parent.Parent.Parent, "theme").DefaultTheme
4
4
  local ROBLOX_UI_OFFSET = DefaultTheme.spacing.calc(2) + DefaultTheme.padding.calc(4)
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.2.0
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
3
  local exports = {}
4
4
  for _k, _v in TS.import(script, script, "ImageConstants") or {} do
@@ -0,0 +1,12 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ local Directions = {
3
+ In = "In",
4
+ Out = "Out",
5
+ Left = "Left",
6
+ Right = "Right",
7
+ Up = "Up",
8
+ Down = "Down",
9
+ }
10
+ return {
11
+ Directions = Directions,
12
+ }
@@ -0,0 +1,44 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ local Icons = {
3
+ Delete = "rbxassetid://8583122940",
4
+ Move = "rbxassetid://8583137072",
5
+ OpenBox = "rbxassetid://8583122847",
6
+ Rotate2D = "rbxassetid://8583123169",
7
+ Rotate3D = "rbxassetid://8583123075",
8
+ Swipe = "rbxassetid://8583122640",
9
+ House = "rbxassetid://8771814151",
10
+ Furniture = "rbxassetid://8771814395",
11
+ Room = "rbxassetid://8771813821",
12
+ Arcade = "rbxassetid://8771986472",
13
+ Controller = "rbxassetid://8771986353",
14
+ Joystick = "rbxassetid://8771986232",
15
+ Save = "rbxassetid://8772040340",
16
+ EditEnabled = "rbxassetid://8772040549",
17
+ EditDisabled = "rbxassetid://8772040755",
18
+ Settings = "rbxassetid://8793943638",
19
+ VerticalDots = "rbxassetid://8793943269",
20
+ HorizontalDots = "rbxassetid://8793943828",
21
+ Store = "rbxassetid://8794697193",
22
+ Dresser = "rbxassetid://8794697532",
23
+ Hangar = "rbxassetid://8794697340",
24
+ Friends = "rbxassetid://8794697424",
25
+ Charity = "rbxassetid://8794697659",
26
+ Backpack = "rbxassetid://8794716095",
27
+ HelpBubble = "rbxassetid://8794738823",
28
+ HelpDesk = "rbxassetid://8835822182",
29
+ NewspaperVariant1 = "rbxassetid://9056545367",
30
+ NewspaperVariant2 = "rbxassetid://9056545251",
31
+ NewspaperVariant3 = "rbxassetid://9056545032",
32
+ Close = "rbxassetid://9070598165",
33
+ CloseCircle = "rbxassetid://9070597768",
34
+ Collapsed = "rbxassetid://9306279342",
35
+ Expanded = "rbxassetid://9306279848",
36
+ Book = "rbxassetid://9311703342",
37
+ BookStack = "rbxassetid://9311703545",
38
+ ListPrimary = "rbxassetid://9306610505",
39
+ LightTheme = "rbxassetid://9377269022",
40
+ DarkTheme = "rbxassetid://9377269322",
41
+ }
42
+ return {
43
+ Icons = Icons,
44
+ }
@@ -0,0 +1,8 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ local Orientations = {
3
+ Vertical = "Vertical",
4
+ Horizontal = "Horizontal",
5
+ }
6
+ return {
7
+ Orientations = Orientations,
8
+ }
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.2.0
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
3
  local exports = {}
4
4
  exports.Directions = TS.import(script, script, "Directions").Directions
package/out/ui/index.d.ts CHANGED
@@ -1,34 +1,34 @@
1
- export * from "./constants";
2
- export * from "./enums";
3
- export { Divider } from "./packages";
4
- export { DividerProps } from "./packages";
5
- export { Icon } from "./packages";
6
- export { IconProps } from "./packages";
7
- export { IconButton } from "./packages";
8
- export { IconButtonProps } from "./packages";
9
- export { Input } from "./packages";
10
- export { InputProps } from "./packages";
11
- export { InputColor } from "./packages";
12
- export { InputMargin } from "./packages";
13
- export { InputVariant } from "./packages";
14
- export { ProgressBar } from "./packages";
15
- export { ProgressBarProps } from "./packages";
16
- export { Shadow } from "./packages";
17
- export { Sidebar } from "./packages";
18
- export { SidebarProps } from "./packages";
19
- export { SidebarType } from "./packages";
20
- export { Toast } from "./packages";
21
- export { ToastProps } from "./packages";
22
- export { TreeView } from "./packages";
23
- export { TreeViewProps } from "./packages";
24
- export { Branch } from "./packages";
25
- export { Leaf } from "./packages";
26
- export { Tree } from "./packages";
27
- export { Typography } from "./packages";
28
- export { TypographyProps } from "./packages";
29
- export { TypographyAlignment } from "./packages";
30
- export { TypographyColor } from "./packages";
31
- export { TypographyDisplay } from "./packages";
32
- export { Button } from "./packages";
33
- export { ButtonProps } from "./packages";
34
- export * from "./packages";
1
+ export * from "./constants/index";
2
+ export * from "./enums/index";
3
+ export { Divider } from "./packages/index";
4
+ export { DividerProps } from "./packages/index";
5
+ export { Icon } from "./packages/index";
6
+ export { IconProps } from "./packages/index";
7
+ export { IconButton } from "./packages/index";
8
+ export { IconButtonProps } from "./packages/index";
9
+ export { Input } from "./packages/index";
10
+ export { InputProps } from "./packages/index";
11
+ export { InputColor } from "./packages/index";
12
+ export { InputMargin } from "./packages/index";
13
+ export { InputVariant } from "./packages/index";
14
+ export { ProgressBar } from "./packages/index";
15
+ export { ProgressBarProps } from "./packages/index";
16
+ export { Shadow } from "./packages/index";
17
+ export { Sidebar } from "./packages/index";
18
+ export { SidebarProps } from "./packages/index";
19
+ export { SidebarType } from "./packages/index";
20
+ export { Toast } from "./packages/index";
21
+ export { ToastProps } from "./packages/index";
22
+ export { TreeView } from "./packages/index";
23
+ export { TreeViewProps } from "./packages/index";
24
+ export { Branch } from "./packages/index";
25
+ export { Leaf } from "./packages/index";
26
+ export { Tree } from "./packages/index";
27
+ export { Typography } from "./packages/index";
28
+ export { TypographyProps } from "./packages/index";
29
+ export { TypographyAlignment } from "./packages/index";
30
+ export { TypographyColor } from "./packages/index";
31
+ export { TypographyDisplay } from "./packages/index";
32
+ export { Button } from "./packages/index";
33
+ export { ButtonProps } from "./packages/index";
34
+ export * from "./packages/index";
@@ -1,4 +1,4 @@
1
- -- Compiled with roblox-ts v2.2.0
1
+ -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
3
  local exports = {}
4
4
  for _k, _v in TS.import(script, script, "constants") or {} do
@@ -1,8 +1,6 @@
1
- /// <reference types="@rbxts/types" />
2
- /// <reference types="roact" />
3
1
  import Roact from "@rbxts/roact";
4
- import { CustomizedProps } from "../../../../theme";
5
- import { ButtonSize, ButtonColor, ButtonVariant } from "../types";
2
+ import { CustomizedProps } from "../../../../theme/index";
3
+ import { ButtonSize, ButtonColor, ButtonVariant } from "../types/index";
6
4
  export type DefaultButtonComponent = TextButton;
7
5
  export interface ButtonProps {
8
6
  text?: string;
@@ -23,6 +21,6 @@ export interface ButtonProps {
23
21
  mouseEnter?: () => void;
24
22
  mouseLeave?: () => void;
25
23
  }
26
- declare function Button(props: Roact.PropsWithChildren<CustomizedProps<DefaultButtonComponent, ButtonProps>>): Roact.Element;
24
+ declare function Button(props: CustomizedProps<DefaultButtonComponent, ButtonProps>): Roact.Element;
27
25
  declare const _default: typeof Button;
28
26
  export default _default;