@rbxts/uiblox 0.1.0

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 (251) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +263 -0
  3. package/out/index.d.ts +2 -0
  4. package/out/init.lua +10 -0
  5. package/out/theme/components/ThemeProvider.d.ts +7 -0
  6. package/out/theme/components/ThemeProvider.lua +37 -0
  7. package/out/theme/components/ThemeStore.d.ts +14 -0
  8. package/out/theme/components/ThemeStore.lua +29 -0
  9. package/out/theme/components/ThemeWrapper.d.ts +7 -0
  10. package/out/theme/components/ThemeWrapper.lua +52 -0
  11. package/out/theme/components/index.d.ts +8 -0
  12. package/out/theme/components/init.lua +10 -0
  13. package/out/theme/constants/NumberConstants.d.ts +6 -0
  14. package/out/theme/constants/NumberConstants.lua +18 -0
  15. package/out/theme/constants/ThemeConstants.d.ts +5 -0
  16. package/out/theme/constants/ThemeConstants.lua +104 -0
  17. package/out/theme/constants/index.d.ts +2 -0
  18. package/out/theme/constants/init.lua +10 -0
  19. package/out/theme/index.d.ts +20 -0
  20. package/out/theme/init.lua +27 -0
  21. package/out/theme/interfaces/IconSizes/IconSizes.d.ts +5 -0
  22. package/out/theme/interfaces/IconSizes/IconSizes.lua +2 -0
  23. package/out/theme/interfaces/IconSizes/index.d.ts +1 -0
  24. package/out/theme/interfaces/IconSizes/init.lua +2 -0
  25. package/out/theme/interfaces/Palette/ColorTokens/ColorTokens.d.ts +5 -0
  26. package/out/theme/interfaces/Palette/ColorTokens/ColorTokens.lua +2 -0
  27. package/out/theme/interfaces/Palette/ColorTokens/index.d.ts +1 -0
  28. package/out/theme/interfaces/Palette/ColorTokens/init.lua +2 -0
  29. package/out/theme/interfaces/Palette/Colors/Blue.d.ts +3 -0
  30. package/out/theme/interfaces/Palette/Colors/Blue.lua +21 -0
  31. package/out/theme/interfaces/Palette/Colors/Colors.d.ts +43 -0
  32. package/out/theme/interfaces/Palette/Colors/Colors.lua +2 -0
  33. package/out/theme/interfaces/Palette/Colors/Common.d.ts +7 -0
  34. package/out/theme/interfaces/Palette/Colors/Common.lua +9 -0
  35. package/out/theme/interfaces/Palette/Colors/Dark.d.ts +3 -0
  36. package/out/theme/interfaces/Palette/Colors/Dark.lua +24 -0
  37. package/out/theme/interfaces/Palette/Colors/Gray.d.ts +3 -0
  38. package/out/theme/interfaces/Palette/Colors/Gray.lua +21 -0
  39. package/out/theme/interfaces/Palette/Colors/Green.d.ts +3 -0
  40. package/out/theme/interfaces/Palette/Colors/Green.lua +21 -0
  41. package/out/theme/interfaces/Palette/Colors/Light.d.ts +3 -0
  42. package/out/theme/interfaces/Palette/Colors/Light.lua +8 -0
  43. package/out/theme/interfaces/Palette/Colors/Magenta.d.ts +3 -0
  44. package/out/theme/interfaces/Palette/Colors/Magenta.lua +21 -0
  45. package/out/theme/interfaces/Palette/Colors/Orange.d.ts +3 -0
  46. package/out/theme/interfaces/Palette/Colors/Orange.lua +21 -0
  47. package/out/theme/interfaces/Palette/Colors/Purple.d.ts +3 -0
  48. package/out/theme/interfaces/Palette/Colors/Purple.lua +21 -0
  49. package/out/theme/interfaces/Palette/Colors/Red.d.ts +3 -0
  50. package/out/theme/interfaces/Palette/Colors/Red.lua +21 -0
  51. package/out/theme/interfaces/Palette/Colors/Turquoise.d.ts +3 -0
  52. package/out/theme/interfaces/Palette/Colors/Turquoise.lua +21 -0
  53. package/out/theme/interfaces/Palette/Colors/Yellow.d.ts +3 -0
  54. package/out/theme/interfaces/Palette/Colors/Yellow.lua +21 -0
  55. package/out/theme/interfaces/Palette/Colors/index.d.ts +13 -0
  56. package/out/theme/interfaces/Palette/Colors/init.lua +16 -0
  57. package/out/theme/interfaces/Palette/Palette.d.ts +27 -0
  58. package/out/theme/interfaces/Palette/Palette.lua +2 -0
  59. package/out/theme/interfaces/Palette/index.d.ts +3 -0
  60. package/out/theme/interfaces/Palette/init.lua +7 -0
  61. package/out/theme/interfaces/Spacing/Borders.d.ts +4 -0
  62. package/out/theme/interfaces/Spacing/Borders.lua +2 -0
  63. package/out/theme/interfaces/Spacing/Padding.d.ts +4 -0
  64. package/out/theme/interfaces/Spacing/Padding.lua +2 -0
  65. package/out/theme/interfaces/Spacing/Shape.d.ts +3 -0
  66. package/out/theme/interfaces/Spacing/Shape.lua +2 -0
  67. package/out/theme/interfaces/Spacing/Spacing.d.ts +4 -0
  68. package/out/theme/interfaces/Spacing/Spacing.lua +2 -0
  69. package/out/theme/interfaces/Spacing/index.d.ts +4 -0
  70. package/out/theme/interfaces/Spacing/init.lua +2 -0
  71. package/out/theme/interfaces/Theme/Theme.d.ts +14 -0
  72. package/out/theme/interfaces/Theme/Theme.lua +2 -0
  73. package/out/theme/interfaces/Theme/ThemeConstants.d.ts +25 -0
  74. package/out/theme/interfaces/Theme/ThemeConstants.lua +2 -0
  75. package/out/theme/interfaces/Theme/ThemeOptions.d.ts +4 -0
  76. package/out/theme/interfaces/Theme/ThemeOptions.lua +2 -0
  77. package/out/theme/interfaces/Theme/index.d.ts +3 -0
  78. package/out/theme/interfaces/Theme/init.lua +2 -0
  79. package/out/theme/interfaces/Tokens/Tokens.d.ts +1 -0
  80. package/out/theme/interfaces/Tokens/Tokens.lua +2 -0
  81. package/out/theme/interfaces/Tokens/index.d.ts +1 -0
  82. package/out/theme/interfaces/Tokens/init.lua +2 -0
  83. package/out/theme/interfaces/index.d.ts +13 -0
  84. package/out/theme/interfaces/init.lua +16 -0
  85. package/out/theme/interfaces/typography/FontFamilies.d.ts +2 -0
  86. package/out/theme/interfaces/typography/FontFamilies.lua +11 -0
  87. package/out/theme/interfaces/typography/FontFamilyOptions.d.ts +5 -0
  88. package/out/theme/interfaces/typography/FontFamilyOptions.lua +2 -0
  89. package/out/theme/interfaces/typography/FontSizeOptions.d.ts +4 -0
  90. package/out/theme/interfaces/typography/FontSizeOptions.lua +2 -0
  91. package/out/theme/interfaces/typography/FontSizes.d.ts +3 -0
  92. package/out/theme/interfaces/typography/FontSizes.lua +15 -0
  93. package/out/theme/interfaces/typography/ThemeTypography.d.ts +7 -0
  94. package/out/theme/interfaces/typography/ThemeTypography.lua +2 -0
  95. package/out/theme/interfaces/typography/Variants.d.ts +18 -0
  96. package/out/theme/interfaces/typography/Variants.lua +24 -0
  97. package/out/theme/interfaces/typography/index.d.ts +8 -0
  98. package/out/theme/interfaces/typography/init.lua +13 -0
  99. package/out/theme/styles/index.d.ts +5 -0
  100. package/out/theme/styles/init.lua +7 -0
  101. package/out/theme/styles/types/WriteableStyle.d.ts +3 -0
  102. package/out/theme/styles/types/WriteableStyle.lua +2 -0
  103. package/out/theme/styles/types/index.d.ts +2 -0
  104. package/out/theme/styles/types/init.lua +2 -0
  105. package/out/theme/styles/types/styles.d.ts +4 -0
  106. package/out/theme/styles/types/styles.lua +2 -0
  107. package/out/theme/styles/utilities/classNames.d.ts +8 -0
  108. package/out/theme/styles/utilities/classNames.lua +31 -0
  109. package/out/theme/styles/utilities/createStyles.d.ts +3 -0
  110. package/out/theme/styles/utilities/createStyles.lua +8 -0
  111. package/out/theme/styles/utilities/index.d.ts +3 -0
  112. package/out/theme/styles/utilities/init.lua +7 -0
  113. package/out/theme/styles/utilities/makeStyles.d.ts +7 -0
  114. package/out/theme/styles/utilities/makeStyles.lua +32 -0
  115. package/out/theme/themes/DarkTheme.d.ts +3 -0
  116. package/out/theme/themes/DarkTheme.lua +99 -0
  117. package/out/theme/themes/LightTheme.d.ts +3 -0
  118. package/out/theme/themes/LightTheme.lua +99 -0
  119. package/out/theme/themes/index.d.ts +3 -0
  120. package/out/theme/themes/init.lua +7 -0
  121. package/out/theme/types/index.d.ts +7 -0
  122. package/out/theme/types/init.lua +2 -0
  123. package/out/theme/types/types.d.ts +16 -0
  124. package/out/theme/types/types.lua +3 -0
  125. package/out/theme/utilites/Color3FromHex.d.ts +2 -0
  126. package/out/theme/utilites/Color3FromHex.lua +14 -0
  127. package/out/theme/utilites/index.d.ts +1 -0
  128. package/out/theme/utilites/init.lua +5 -0
  129. package/out/ui/constants/ImageConstants.d.ts +2 -0
  130. package/out/ui/constants/ImageConstants.lua +7 -0
  131. package/out/ui/constants/LayoutConstants.d.ts +1 -0
  132. package/out/ui/constants/LayoutConstants.lua +7 -0
  133. package/out/ui/constants/index.d.ts +2 -0
  134. package/out/ui/constants/init.lua +10 -0
  135. package/out/ui/enums/Directions.d.ts +8 -0
  136. package/out/ui/enums/Directions.lua +23 -0
  137. package/out/ui/enums/Icons.d.ts +40 -0
  138. package/out/ui/enums/Icons.lua +87 -0
  139. package/out/ui/enums/Orientations.d.ts +4 -0
  140. package/out/ui/enums/Orientations.lua +15 -0
  141. package/out/ui/enums/index.d.ts +3 -0
  142. package/out/ui/enums/init.lua +7 -0
  143. package/out/ui/index.d.ts +34 -0
  144. package/out/ui/init.lua +24 -0
  145. package/out/ui/packages/button/components/Button.d.ts +26 -0
  146. package/out/ui/packages/button/components/Button.lua +175 -0
  147. package/out/ui/packages/button/components/Button.styles.d.ts +3 -0
  148. package/out/ui/packages/button/components/Button.styles.lua +149 -0
  149. package/out/ui/packages/button/index.d.ts +6 -0
  150. package/out/ui/packages/button/init.lua +8 -0
  151. package/out/ui/packages/button/types/ButtonColor.d.ts +1 -0
  152. package/out/ui/packages/button/types/ButtonColor.lua +2 -0
  153. package/out/ui/packages/button/types/ButtonSize.d.ts +1 -0
  154. package/out/ui/packages/button/types/ButtonSize.lua +2 -0
  155. package/out/ui/packages/button/types/ButtonVariant.d.ts +1 -0
  156. package/out/ui/packages/button/types/ButtonVariant.lua +2 -0
  157. package/out/ui/packages/button/types/index.d.ts +3 -0
  158. package/out/ui/packages/button/types/init.lua +2 -0
  159. package/out/ui/packages/divider/components/Divider.d.ts +18 -0
  160. package/out/ui/packages/divider/components/Divider.lua +27 -0
  161. package/out/ui/packages/divider/components/Divider.styles.d.ts +3 -0
  162. package/out/ui/packages/divider/components/Divider.styles.lua +42 -0
  163. package/out/ui/packages/divider/index.d.ts +3 -0
  164. package/out/ui/packages/divider/init.lua +8 -0
  165. package/out/ui/packages/icon/components/Icon.d.ts +11 -0
  166. package/out/ui/packages/icon/components/Icon.lua +31 -0
  167. package/out/ui/packages/icon/components/Icon.styles.d.ts +3 -0
  168. package/out/ui/packages/icon/components/Icon.styles.lua +47 -0
  169. package/out/ui/packages/icon/index.d.ts +3 -0
  170. package/out/ui/packages/icon/init.lua +8 -0
  171. package/out/ui/packages/iconButton/components/IconButton.d.ts +13 -0
  172. package/out/ui/packages/iconButton/components/IconButton.lua +48 -0
  173. package/out/ui/packages/iconButton/components/IconButton.styles.d.ts +3 -0
  174. package/out/ui/packages/iconButton/components/IconButton.styles.lua +47 -0
  175. package/out/ui/packages/iconButton/index.d.ts +3 -0
  176. package/out/ui/packages/iconButton/init.lua +8 -0
  177. package/out/ui/packages/index.d.ts +11 -0
  178. package/out/ui/packages/init.lua +37 -0
  179. package/out/ui/packages/input/components/Input.d.ts +26 -0
  180. package/out/ui/packages/input/components/Input.lua +165 -0
  181. package/out/ui/packages/input/components/Input.styles.d.ts +3 -0
  182. package/out/ui/packages/input/components/Input.styles.lua +156 -0
  183. package/out/ui/packages/input/index.d.ts +6 -0
  184. package/out/ui/packages/input/init.lua +8 -0
  185. package/out/ui/packages/input/types/InputColor.d.ts +1 -0
  186. package/out/ui/packages/input/types/InputColor.lua +2 -0
  187. package/out/ui/packages/input/types/InputMargin.d.ts +1 -0
  188. package/out/ui/packages/input/types/InputMargin.lua +2 -0
  189. package/out/ui/packages/input/types/InputVariant.d.ts +1 -0
  190. package/out/ui/packages/input/types/InputVariant.lua +2 -0
  191. package/out/ui/packages/input/types/index.d.ts +3 -0
  192. package/out/ui/packages/input/types/init.lua +2 -0
  193. package/out/ui/packages/progressBar/components/ProgressBar.d.ts +9 -0
  194. package/out/ui/packages/progressBar/components/ProgressBar.lua +76 -0
  195. package/out/ui/packages/progressBar/components/ProgressBar.styles.d.ts +2 -0
  196. package/out/ui/packages/progressBar/components/ProgressBar.styles.lua +47 -0
  197. package/out/ui/packages/progressBar/index.d.ts +3 -0
  198. package/out/ui/packages/progressBar/init.lua +8 -0
  199. package/out/ui/packages/shadow/components/Shadow.d.ts +3 -0
  200. package/out/ui/packages/shadow/components/Shadow.lua +72 -0
  201. package/out/ui/packages/shadow/components/Shadow.styles.d.ts +2 -0
  202. package/out/ui/packages/shadow/components/Shadow.styles.lua +20 -0
  203. package/out/ui/packages/shadow/index.d.ts +2 -0
  204. package/out/ui/packages/shadow/init.lua +8 -0
  205. package/out/ui/packages/sidebar/components/Sidebar.d.ts +11 -0
  206. package/out/ui/packages/sidebar/components/Sidebar.lua +46 -0
  207. package/out/ui/packages/sidebar/components/Sidebar.styles.d.ts +3 -0
  208. package/out/ui/packages/sidebar/components/Sidebar.styles.lua +38 -0
  209. package/out/ui/packages/sidebar/index.d.ts +4 -0
  210. package/out/ui/packages/sidebar/init.lua +8 -0
  211. package/out/ui/packages/sidebar/types/SidebarType.d.ts +1 -0
  212. package/out/ui/packages/sidebar/types/SidebarType.lua +2 -0
  213. package/out/ui/packages/sidebar/types/index.d.ts +1 -0
  214. package/out/ui/packages/sidebar/types/init.lua +2 -0
  215. package/out/ui/packages/toast/components/Toast.d.ts +11 -0
  216. package/out/ui/packages/toast/components/Toast.lua +94 -0
  217. package/out/ui/packages/toast/components/Toast.styles.d.ts +3 -0
  218. package/out/ui/packages/toast/components/Toast.styles.lua +74 -0
  219. package/out/ui/packages/toast/enums/ToastVariants.d.ts +7 -0
  220. package/out/ui/packages/toast/enums/ToastVariants.lua +20 -0
  221. package/out/ui/packages/toast/index.d.ts +5 -0
  222. package/out/ui/packages/toast/init.lua +9 -0
  223. package/out/ui/packages/toast/interfaces/ToastEvent.d.ts +5 -0
  224. package/out/ui/packages/toast/interfaces/ToastEvent.lua +2 -0
  225. package/out/ui/packages/treeView/components/TreeView.d.ts +11 -0
  226. package/out/ui/packages/treeView/components/TreeView.lua +339 -0
  227. package/out/ui/packages/treeView/components/TreeView.styles.d.ts +2 -0
  228. package/out/ui/packages/treeView/components/TreeView.styles.lua +91 -0
  229. package/out/ui/packages/treeView/index.d.ts +6 -0
  230. package/out/ui/packages/treeView/init.lua +8 -0
  231. package/out/ui/packages/treeView/interfaces/Branch.d.ts +6 -0
  232. package/out/ui/packages/treeView/interfaces/Branch.lua +2 -0
  233. package/out/ui/packages/treeView/interfaces/Leaf.d.ts +4 -0
  234. package/out/ui/packages/treeView/interfaces/Leaf.lua +2 -0
  235. package/out/ui/packages/treeView/interfaces/Tree.d.ts +5 -0
  236. package/out/ui/packages/treeView/interfaces/Tree.lua +2 -0
  237. package/out/ui/packages/typography/components/Typography.d.ts +21 -0
  238. package/out/ui/packages/typography/components/Typography.lua +47 -0
  239. package/out/ui/packages/typography/components/Typography.styles.d.ts +3 -0
  240. package/out/ui/packages/typography/components/Typography.styles.lua +97 -0
  241. package/out/ui/packages/typography/index.d.ts +6 -0
  242. package/out/ui/packages/typography/init.lua +8 -0
  243. package/out/ui/packages/typography/types/TypographyAlignment.d.ts +1 -0
  244. package/out/ui/packages/typography/types/TypographyAlignment.lua +2 -0
  245. package/out/ui/packages/typography/types/TypographyColor.d.ts +1 -0
  246. package/out/ui/packages/typography/types/TypographyColor.lua +2 -0
  247. package/out/ui/packages/typography/types/TypographyDisplay.d.ts +1 -0
  248. package/out/ui/packages/typography/types/TypographyDisplay.lua +2 -0
  249. package/out/ui/packages/typography/types/index.d.ts +3 -0
  250. package/out/ui/packages/typography/types/init.lua +2 -0
  251. package/package.json +68 -0
@@ -0,0 +1,156 @@
1
+ -- Compiled with roblox-ts v2.2.0
2
+ local TS = _G[script]
3
+ local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
4
+ local createStyles = _theme.createStyles
5
+ local makeStyles = _theme.makeStyles
6
+ local useInputStyles = makeStyles(function(theme, _param)
7
+ local color = _param.color
8
+ if color == nil then
9
+ color = "primary"
10
+ end
11
+ local margin = _param.margin
12
+ if margin == nil then
13
+ margin = "none"
14
+ end
15
+ local variant = _param.variant
16
+ if variant == nil then
17
+ variant = "standard"
18
+ end
19
+ local width = _param.width
20
+ if width == nil then
21
+ width = UDim.new(0, theme.spacing.calc(8))
22
+ end
23
+ local helperText = _param.helperText
24
+ local clearsTextOnFocus = _param.clearsTextOnFocus
25
+ if clearsTextOnFocus == nil then
26
+ clearsTextOnFocus = false
27
+ end
28
+ local makeRootStyles = function()
29
+ local defaultStyles = {}
30
+ defaultStyles.BackgroundTransparency = 1
31
+ defaultStyles.BorderSizePixel = 0
32
+ defaultStyles.Size = UDim2.new(width.Scale, width.Offset, 0, if helperText ~= nil then theme.spacing.calc(4) else theme.spacing.calc(2))
33
+ -- Increase size vertically to account for margin
34
+ repeat
35
+ if margin == "none" then
36
+ break
37
+ end
38
+ if margin == "dense" then
39
+ defaultStyles.Size = UDim2.new(defaultStyles.Size.X.Scale, defaultStyles.Size.X.Offset, defaultStyles.Size.Y.Scale, defaultStyles.Size.Y.Offset + theme.padding.calc(2))
40
+ break
41
+ end
42
+ if margin == "normal" then
43
+ defaultStyles.Size = UDim2.new(defaultStyles.Size.X.Scale, defaultStyles.Size.X.Offset, defaultStyles.Size.Y.Scale, defaultStyles.Size.Y.Offset + theme.padding.calc(2))
44
+ break
45
+ end
46
+ break
47
+ until true
48
+ defaultStyles.ZIndex = 10000
49
+ return defaultStyles
50
+ end
51
+ local makeBoxStyles = function()
52
+ local defaultStyles = {}
53
+ defaultStyles.BackgroundColor3 = if color == "primary" then theme.palette.secondary.main else theme.palette.text.primary
54
+ defaultStyles.PlaceholderColor3 = theme.palette.text.secondary
55
+ defaultStyles.Position = UDim2.new(0, 0, 0, 0)
56
+ defaultStyles.Size = UDim2.new(1, 0, 0, theme.spacing.calc(2))
57
+ repeat
58
+ if variant == "filled" then
59
+ defaultStyles.BackgroundTransparency = 0
60
+ defaultStyles.BorderSizePixel = 0
61
+ break
62
+ end
63
+ if variant == "outlined" then
64
+ defaultStyles.TextColor3 = theme.palette.text.primary
65
+ defaultStyles.BackgroundTransparency = 1
66
+ defaultStyles.BorderSizePixel = theme.options.constants.borders.default
67
+ break
68
+ end
69
+ if variant == "standard" then
70
+ defaultStyles.TextColor3 = theme.palette.text.primary
71
+ defaultStyles.BackgroundTransparency = 1
72
+ defaultStyles.BorderSizePixel = 0
73
+ break
74
+ end
75
+ defaultStyles.BackgroundTransparency = 0
76
+ defaultStyles.BorderSizePixel = 0
77
+ break
78
+ until true
79
+ defaultStyles.TextXAlignment = Enum.TextXAlignment.Left
80
+ defaultStyles.ClearTextOnFocus = clearsTextOnFocus
81
+ defaultStyles.ZIndex = 12000
82
+ return defaultStyles
83
+ end
84
+ local makeMarginStyles = function()
85
+ local defaultStyles = {}
86
+ defaultStyles.BackgroundTransparency = 1
87
+ defaultStyles.BorderSizePixel = 0
88
+ -- Center in root
89
+ defaultStyles.Position = UDim2.new(0.5, 0, 0.5, 0)
90
+ defaultStyles.AnchorPoint = Vector2.new(0.5, 0.5)
91
+ -- Margin controls vertical spacing around the input component
92
+ repeat
93
+ if margin == "none" then
94
+ defaultStyles.Size = UDim2.new(1, -theme.padding.calc(0), 1, 0)
95
+ break
96
+ end
97
+ if margin == "dense" then
98
+ defaultStyles.Size = UDim2.new(1, -theme.padding.calc(2), 1, -theme.padding.calc(2))
99
+ break
100
+ end
101
+ if margin == "normal" then
102
+ defaultStyles.Size = UDim2.new(1, -theme.padding.calc(4), 1, -theme.padding.calc(4))
103
+ break
104
+ end
105
+ defaultStyles.Size = UDim2.new(1, -theme.padding.calc(0), 1, 0)
106
+ break
107
+ until true
108
+ defaultStyles.ZIndex = 11000
109
+ return defaultStyles
110
+ end
111
+ return createStyles({
112
+ root = makeRootStyles(),
113
+ font = {
114
+ TextSize = theme.typography.fontSizes.button,
115
+ Font = theme.typography.fontFamilies.default,
116
+ },
117
+ margin = makeMarginStyles(),
118
+ box = makeBoxStyles(),
119
+ helper = {
120
+ Size = UDim2.new(1, 0, 0, theme.spacing.calc(2)),
121
+ Position = UDim2.new(0, 0, 1, 0),
122
+ AnchorPoint = Vector2.new(0, 1),
123
+ BackgroundTransparency = 1,
124
+ BorderSizePixel = 0,
125
+ TextColor3 = theme.palette.text.secondary,
126
+ TextXAlignment = Enum.TextXAlignment.Left,
127
+ ZIndex = 11000,
128
+ },
129
+ errorColorFrame = {
130
+ BackgroundColor3 = theme.palette.error.main,
131
+ BorderColor3 = theme.palette.error.main,
132
+ },
133
+ errorColorText = {
134
+ TextColor3 = theme.palette.error.main,
135
+ BackgroundColor3 = theme.palette.error.main,
136
+ BorderColor3 = theme.palette.error.main,
137
+ },
138
+ divider = {
139
+ Position = UDim2.new(0, 0, 0, theme.spacing.calc(2)),
140
+ BackgroundColor3 = if color == "primary" then theme.palette.secondary.main else theme.palette.text.primary,
141
+ ZIndex = 11000,
142
+ },
143
+ corner = {
144
+ CornerRadius = UDim.new(0, theme.shape.borderRadius),
145
+ },
146
+ stroke = {
147
+ Color = if color == "primary" then theme.palette.secondary.main else theme.palette.text.primary,
148
+ Transparency = 0,
149
+ ApplyStrokeMode = Enum.ApplyStrokeMode.Border,
150
+ },
151
+ })
152
+ end)
153
+ local default = useInputStyles
154
+ return {
155
+ default = default,
156
+ }
@@ -0,0 +1,6 @@
1
+ export { default as Input } from "./components/Input";
2
+ export { InputProps } from "./components/Input";
3
+ export * from "./components/Input";
4
+ export { InputColor } from "./types";
5
+ export { InputMargin } from "./types";
6
+ export { InputVariant } from "./types";
@@ -0,0 +1,8 @@
1
+ -- Compiled with roblox-ts v2.2.0
2
+ local TS = _G[script]
3
+ local exports = {}
4
+ exports.Input = TS.import(script, script, "components", "Input").default
5
+ for _k, _v in TS.import(script, script, "components", "Input") or {} do
6
+ exports[_k] = _v
7
+ end
8
+ return exports
@@ -0,0 +1 @@
1
+ export type InputColor = "primary" | "secondary";
@@ -0,0 +1,2 @@
1
+ -- Compiled with roblox-ts v2.2.0
2
+ return nil
@@ -0,0 +1 @@
1
+ export type InputMargin = "none" | "dense" | "normal";
@@ -0,0 +1,2 @@
1
+ -- Compiled with roblox-ts v2.2.0
2
+ return nil
@@ -0,0 +1 @@
1
+ export type InputVariant = "filled" | "outlined" | "standard";
@@ -0,0 +1,2 @@
1
+ -- Compiled with roblox-ts v2.2.0
2
+ return nil
@@ -0,0 +1,3 @@
1
+ export { InputColor } from "./InputColor";
2
+ export { InputMargin } from "./InputMargin";
3
+ export { InputVariant } from "./InputVariant";
@@ -0,0 +1,2 @@
1
+ -- Compiled with roblox-ts v2.2.0
2
+ return nil
@@ -0,0 +1,9 @@
1
+ /// <reference types="@rbxts/types" />
2
+ import Roact from "@rbxts/roact";
3
+ import { WriteableStyle } from "../../../../theme";
4
+ export interface ProgressBarProps {
5
+ progress: number;
6
+ className?: WriteableStyle<Frame>;
7
+ }
8
+ declare const ProgressBar: (props: ProgressBarProps) => Roact.Element;
9
+ export default ProgressBar;
@@ -0,0 +1,76 @@
1
+ -- Compiled with roblox-ts v2.2.0
2
+ local TS = _G[script]
3
+ local Roact = TS.import(script, TS.getModule(script, "@rbxts", "roact").src)
4
+ local withHooks = TS.import(script, TS.getModule(script, "@rbxts", "roact-hooked").src).withHooks
5
+ local useProgressBarStyles = TS.import(script, script.Parent, "ProgressBar.styles").default
6
+ local ProgressBar = withHooks(function(_param)
7
+ local progress = _param.progress
8
+ local className = _param.className
9
+ local _binding = useProgressBarStyles()
10
+ local container = _binding.container
11
+ local outer = _binding.outer
12
+ local stroke = _binding.stroke
13
+ local inner = _binding.inner
14
+ local fill = _binding.fill
15
+ local corner = _binding.corner
16
+ local _attributes = {}
17
+ for _k, _v in container do
18
+ _attributes[_k] = _v
19
+ end
20
+ if className then
21
+ for _k, _v in className do
22
+ _attributes[_k] = _v
23
+ end
24
+ end
25
+ local _children = {}
26
+ local _length = #_children
27
+ local _attributes_1 = {}
28
+ for _k, _v in outer do
29
+ _attributes_1[_k] = _v
30
+ end
31
+ local _children_1 = {}
32
+ local _length_1 = #_children_1
33
+ local _attributes_2 = {}
34
+ for _k, _v in corner do
35
+ _attributes_2[_k] = _v
36
+ end
37
+ _children_1.Corner = Roact.createElement("UICorner", _attributes_2)
38
+ local _attributes_3 = {}
39
+ for _k, _v in stroke do
40
+ _attributes_3[_k] = _v
41
+ end
42
+ _children_1[_length_1 + 1] = Roact.createElement("UIStroke", _attributes_3)
43
+ local _attributes_4 = {}
44
+ for _k, _v in inner do
45
+ _attributes_4[_k] = _v
46
+ end
47
+ local _children_2 = {}
48
+ local _length_2 = #_children_2
49
+ local _attributes_5 = {}
50
+ for _k, _v in corner do
51
+ _attributes_5[_k] = _v
52
+ end
53
+ _children_2.Corner = Roact.createElement("UICorner", _attributes_5)
54
+ local _attributes_6 = {}
55
+ for _k, _v in fill do
56
+ _attributes_6[_k] = _v
57
+ end
58
+ _attributes_6.Size = UDim2.new(progress / 100, 0, 1, 0)
59
+ local _children_3 = {}
60
+ local _length_3 = #_children_3
61
+ local _attributes_7 = {}
62
+ for _k, _v in corner do
63
+ _attributes_7[_k] = _v
64
+ end
65
+ _children_3.Corner = Roact.createElement("UICorner", _attributes_7)
66
+ _children_2[_length_2 + 1] = Roact.createElement("Frame", _attributes_6, _children_3)
67
+ _children_1[_length_1 + 2] = Roact.createElement("Frame", _attributes_4, _children_2)
68
+ _children.Bar = Roact.createElement("Frame", _attributes_1, _children_1)
69
+ return Roact.createFragment({
70
+ ProgressBar = Roact.createElement("Frame", _attributes, _children),
71
+ })
72
+ end)
73
+ local default = ProgressBar
74
+ return {
75
+ default = default,
76
+ }
@@ -0,0 +1,2 @@
1
+ declare const useProgressBarStyles: () => import("../../../../theme").ClassNameMap<string>;
2
+ export default useProgressBarStyles;
@@ -0,0 +1,47 @@
1
+ -- Compiled with roblox-ts v2.2.0
2
+ local TS = _G[script]
3
+ local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
4
+ local createStyles = _theme.createStyles
5
+ local makeStyles = _theme.makeStyles
6
+ local useProgressBarStyles = makeStyles(function(theme)
7
+ return createStyles({
8
+ container = {
9
+ BackgroundTransparency = 1,
10
+ BorderSizePixel = 0,
11
+ ZIndex = 110001,
12
+ },
13
+ outer = {
14
+ Size = UDim2.new(1, 0, 1, 0),
15
+ BackgroundTransparency = 1,
16
+ BorderSizePixel = 0,
17
+ ZIndex = 110001,
18
+ },
19
+ stroke = {
20
+ Thickness = theme.options.constants.borders.divider,
21
+ Color = theme.palette.text.primary,
22
+ },
23
+ inner = {
24
+ Size = UDim2.new(1, -theme.options.constants.borders.divider * 2, 1, -theme.options.constants.borders.divider * 2),
25
+ Position = UDim2.new(0.5, 0, 0.5, 0),
26
+ AnchorPoint = Vector2.new(0.5, 0.5),
27
+ BackgroundTransparency = 1,
28
+ BorderSizePixel = 0,
29
+ ClipsDescendants = true,
30
+ ZIndex = 110001,
31
+ },
32
+ fill = {
33
+ Position = UDim2.new(0, 0, 0.5, 0),
34
+ AnchorPoint = Vector2.new(0, 0.5),
35
+ BackgroundColor3 = theme.palette.text.primary,
36
+ BorderSizePixel = 0,
37
+ ZIndex = 110001,
38
+ },
39
+ corner = {
40
+ CornerRadius = UDim.new(0, theme.shape.borderRadius),
41
+ },
42
+ })
43
+ end)
44
+ local default = useProgressBarStyles
45
+ return {
46
+ default = default,
47
+ }
@@ -0,0 +1,3 @@
1
+ export { default as ProgressBar } from "./components/ProgressBar";
2
+ export { ProgressBarProps } from "./components/ProgressBar";
3
+ export * from "./components/ProgressBar";
@@ -0,0 +1,8 @@
1
+ -- Compiled with roblox-ts v2.2.0
2
+ local TS = _G[script]
3
+ local exports = {}
4
+ exports.ProgressBar = TS.import(script, script, "components", "ProgressBar").default
5
+ for _k, _v in TS.import(script, script, "components", "ProgressBar") or {} do
6
+ exports[_k] = _v
7
+ end
8
+ return exports
@@ -0,0 +1,3 @@
1
+ import Roact from "@rbxts/roact";
2
+ declare const Shadow: (props: {}) => Roact.Element;
3
+ export default Shadow;
@@ -0,0 +1,72 @@
1
+ -- Compiled with roblox-ts v2.2.0
2
+ local TS = _G[script]
3
+ local Roact = TS.import(script, TS.getModule(script, "@rbxts", "roact").src)
4
+ local _roact_hooked = TS.import(script, TS.getModule(script, "@rbxts", "roact-hooked").src)
5
+ local withHooks = _roact_hooked.withHooks
6
+ local useEffect = _roact_hooked.useEffect
7
+ local useState = _roact_hooked.useState
8
+ local useShadowStyles = TS.import(script, script.Parent, "Shadow.styles").default
9
+ local Shadow = withHooks(function()
10
+ local _binding = useShadowStyles()
11
+ local container = _binding.container
12
+ local parent, setParent = useState(nil)
13
+ local cornerRadius, setCornerRadius = useState()
14
+ local _condition = container.ZIndex
15
+ if _condition == nil then
16
+ _condition = 0
17
+ end
18
+ local defaultZIndex = _condition
19
+ local zIndex, setZIndex = useState(defaultZIndex)
20
+ -- Set any inherited properties
21
+ useEffect(function()
22
+ if not parent then
23
+ return nil
24
+ end
25
+ local _cornerRadius = parent
26
+ if _cornerRadius ~= nil then
27
+ _cornerRadius = _cornerRadius:FindFirstChildOfClass("UICorner")
28
+ if _cornerRadius ~= nil then
29
+ _cornerRadius = _cornerRadius.CornerRadius
30
+ end
31
+ end
32
+ local cornerRadius = _cornerRadius
33
+ setCornerRadius(cornerRadius)
34
+ local _result = parent
35
+ if _result ~= nil then
36
+ _result = _result.ZIndex
37
+ end
38
+ local _condition_1 = _result
39
+ if _condition_1 == nil then
40
+ _condition_1 = defaultZIndex
41
+ end
42
+ setZIndex(_condition_1 - 1)
43
+ parent.ClipsDescendants = false
44
+ end, { parent })
45
+ local _attributes = {}
46
+ for _k, _v in container do
47
+ _attributes[_k] = _v
48
+ end
49
+ _attributes.ZIndex = zIndex
50
+ _attributes[Roact.Event.AncestryChanged] = function(rbx, parent)
51
+ if parent:IsA("GuiObject") and rbx.Parent == parent then
52
+ setParent(parent)
53
+ end
54
+ end
55
+ local _children = {}
56
+ local _length = #_children
57
+ local _child = cornerRadius ~= nil and Roact.createFragment({
58
+ Corner = Roact.createElement("UICorner", {
59
+ CornerRadius = cornerRadius,
60
+ }),
61
+ })
62
+ if _child then
63
+ _children[_length + 1] = _child
64
+ end
65
+ return Roact.createFragment({
66
+ Shadow = Roact.createElement("Frame", _attributes, _children),
67
+ })
68
+ end)
69
+ local default = Shadow
70
+ return {
71
+ default = default,
72
+ }
@@ -0,0 +1,2 @@
1
+ declare const useShadowStyles: () => import("../../../../theme").ClassNameMap<string>;
2
+ export default useShadowStyles;
@@ -0,0 +1,20 @@
1
+ -- Compiled with roblox-ts v2.2.0
2
+ local TS = _G[script]
3
+ local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
4
+ local createStyles = _theme.createStyles
5
+ local makeStyles = _theme.makeStyles
6
+ local useShadowStyles = makeStyles(function(theme)
7
+ return createStyles({
8
+ container = {
9
+ Size = UDim2.new(1, theme.spacing.calc(0.25), 1, theme.spacing.calc(0.25)),
10
+ BackgroundColor3 = theme.options.constants.colors.backgroundUIContrast,
11
+ BackgroundTransparency = 0.8,
12
+ BorderSizePixel = 0,
13
+ ZIndex = -100,
14
+ },
15
+ })
16
+ end)
17
+ local default = useShadowStyles
18
+ return {
19
+ default = default,
20
+ }
@@ -0,0 +1,2 @@
1
+ export { default as Shadow } from "./components/Shadow";
2
+ export * from "./components/Shadow";
@@ -0,0 +1,8 @@
1
+ -- Compiled with roblox-ts v2.2.0
2
+ local TS = _G[script]
3
+ local exports = {}
4
+ exports.Shadow = TS.import(script, script, "components", "Shadow").default
5
+ for _k, _v in TS.import(script, script, "components", "Shadow") or {} do
6
+ exports[_k] = _v
7
+ end
8
+ return exports
@@ -0,0 +1,11 @@
1
+ /// <reference types="@rbxts/types" />
2
+ /// <reference types="roact" />
3
+ import Roact from "@rbxts/roact";
4
+ import { CustomizedProps } from "../../../../theme";
5
+ export type DefaultSidebarComponent = Frame;
6
+ export interface SidebarProps {
7
+ size: "compact" | "large";
8
+ ignoreInset?: boolean;
9
+ }
10
+ declare function Sidebar<T extends DefaultSidebarComponent>(props: CustomizedProps<T, SidebarProps>): Roact.Element;
11
+ export default Sidebar;
@@ -0,0 +1,46 @@
1
+ -- Compiled with roblox-ts v2.2.0
2
+ local TS = _G[script]
3
+ local Roact = TS.import(script, TS.getModule(script, "@rbxts", "roact").src)
4
+ local useSidebarStyles = TS.import(script, script.Parent, "Sidebar.styles").default
5
+ local function Sidebar(props)
6
+ local _binding = props
7
+ local className = _binding.className
8
+ local children = _binding[Roact.Children]
9
+ local _binding_1 = useSidebarStyles(props)
10
+ local root = _binding_1.root
11
+ local container = _binding_1.container
12
+ local _attributes = {}
13
+ for _k, _v in root do
14
+ _attributes[_k] = _v
15
+ end
16
+ if className then
17
+ for _k, _v in className do
18
+ _attributes[_k] = _v
19
+ end
20
+ end
21
+ local _children = {}
22
+ local _length = #_children
23
+ local _attributes_1 = {}
24
+ for _k, _v in container do
25
+ _attributes_1[_k] = _v
26
+ end
27
+ local _children_1 = {}
28
+ local _length_1 = #_children_1
29
+ if children then
30
+ for _k, _v in children do
31
+ if type(_k) == "number" then
32
+ _children_1[_length_1 + _k] = _v
33
+ else
34
+ _children_1[_k] = _v
35
+ end
36
+ end
37
+ end
38
+ _children.Container = Roact.createElement("Frame", _attributes_1, _children_1)
39
+ return Roact.createFragment({
40
+ Sidebar = Roact.createElement("Frame", _attributes, _children),
41
+ })
42
+ end
43
+ local default = Sidebar
44
+ return {
45
+ default = default,
46
+ }
@@ -0,0 +1,3 @@
1
+ import { SidebarProps } from "./Sidebar";
2
+ declare const useSidebarStyles: (props: SidebarProps) => import("../../../../theme").ClassNameMap<string>;
3
+ export default useSidebarStyles;
@@ -0,0 +1,38 @@
1
+ -- Compiled with roblox-ts v2.2.0
2
+ local TS = _G[script]
3
+ local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
4
+ local createStyles = _theme.createStyles
5
+ local makeStyles = _theme.makeStyles
6
+ local ROBLOX_UI_OFFSET = TS.import(script, script.Parent.Parent.Parent.Parent, "constants").ROBLOX_UI_OFFSET
7
+ local useSidebarStyles = makeStyles(function(theme, props)
8
+ local _binding = props
9
+ local size = _binding.size
10
+ local ignoreInset = _binding.ignoreInset
11
+ if ignoreInset == nil then
12
+ ignoreInset = false
13
+ end
14
+ local sidebarWidths = {
15
+ large = theme.spacing.calc(15),
16
+ compact = theme.spacing.calc(5),
17
+ }
18
+ return createStyles({
19
+ root = {
20
+ Size = UDim2.new(0, if size == "compact" then sidebarWidths.compact else sidebarWidths.large, 1, 0),
21
+ BackgroundColor3 = theme.options.constants.colors.backgroundUIMuted,
22
+ BorderSizePixel = 0,
23
+ ZIndex = 5000,
24
+ },
25
+ container = {
26
+ Size = UDim2.new(1, -theme.padding.calc(4), 1, -(theme.padding.calc(4) + (if ignoreInset then 0 else ROBLOX_UI_OFFSET))),
27
+ Position = UDim2.new(0.5, 0, 0, theme.padding.calc(2) + (if ignoreInset then 0 else ROBLOX_UI_OFFSET)),
28
+ AnchorPoint = Vector2.new(0.5, 0),
29
+ BackgroundTransparency = 1,
30
+ BorderSizePixel = 0,
31
+ ZIndex = 5100,
32
+ },
33
+ })
34
+ end)
35
+ local default = useSidebarStyles
36
+ return {
37
+ default = default,
38
+ }
@@ -0,0 +1,4 @@
1
+ export { default as Sidebar } from "./components/Sidebar";
2
+ export { SidebarProps } from "./components/Sidebar";
3
+ export * from "./components/Sidebar";
4
+ export { SidebarType } from "./types";
@@ -0,0 +1,8 @@
1
+ -- Compiled with roblox-ts v2.2.0
2
+ local TS = _G[script]
3
+ local exports = {}
4
+ exports.Sidebar = TS.import(script, script, "components", "Sidebar").default
5
+ for _k, _v in TS.import(script, script, "components", "Sidebar") or {} do
6
+ exports[_k] = _v
7
+ end
8
+ return exports
@@ -0,0 +1 @@
1
+ export type SidebarType = "compact" | "large";
@@ -0,0 +1,2 @@
1
+ -- Compiled with roblox-ts v2.2.0
2
+ return nil
@@ -0,0 +1 @@
1
+ export { SidebarType } from "./SidebarType";
@@ -0,0 +1,2 @@
1
+ -- Compiled with roblox-ts v2.2.0
2
+ return nil
@@ -0,0 +1,11 @@
1
+ import Roact from "@rbxts/roact";
2
+ import ToastVariants from "../enums/ToastVariants";
3
+ export interface ToastProps {
4
+ text: string;
5
+ onDismiss: () => void;
6
+ duration?: number;
7
+ variant?: ToastVariants;
8
+ toggledAt?: number;
9
+ }
10
+ declare const Toast: (props: ToastProps) => Roact.Element;
11
+ export default Toast;