@rbxts/uiblox 0.1.32 → 0.1.34

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.
@@ -3,7 +3,7 @@ import { WriteableStyle } from "../interfaces/index";
3
3
  export interface CommonProps<T extends Instance> extends PropsWithChildren {
4
4
  className?: WriteableStyle<T>;
5
5
  component?: T;
6
- key?: string;
6
+ key?: React.Key;
7
7
  }
8
8
  export type BaseDefaultProps<T extends Instance, P> = CommonProps<T> & P;
9
9
  export type BaseCustomizedProps<T extends Instance, P> = BaseDefaultProps<T, P>;
@@ -49,7 +49,7 @@ local function Button(props)
49
49
  local hovering, setHovering = useState(false)
50
50
  local _attributes = {}
51
51
  local _condition = key
52
- if not (_condition ~= "" and _condition) then
52
+ if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
53
53
  _condition = "Button"
54
54
  end
55
55
  _attributes.key = _condition
@@ -10,7 +10,7 @@ local function Divider(props)
10
10
  local root = _binding_1.root
11
11
  local _attributes = {}
12
12
  local _condition = key
13
- if not (_condition ~= "" and _condition) then
13
+ if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
14
14
  _condition = "Divider"
15
15
  end
16
16
  _attributes.key = _condition
@@ -12,7 +12,7 @@ local function Icon(props)
12
12
  local container = _binding_1.container
13
13
  local _attributes = {}
14
14
  local _condition = key
15
- if not (_condition ~= "" and _condition) then
15
+ if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
16
16
  _condition = "Icon"
17
17
  end
18
18
  _attributes.key = _condition
@@ -17,7 +17,7 @@ local function IconButton(props)
17
17
  local hovering, setHovering = useState(false)
18
18
  local _attributes = {}
19
19
  local _condition = key
20
- if not (_condition ~= "" and _condition) then
20
+ if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
21
21
  _condition = "IconButton"
22
22
  end
23
23
  _attributes.key = _condition
@@ -52,7 +52,7 @@ local function Input(props)
52
52
  local input, setInput = useState(_condition)
53
53
  local _attributes = {}
54
54
  local _condition_1 = key
55
- if not (_condition_1 ~= "" and _condition_1) then
55
+ if not (_condition_1 ~= 0 and _condition_1 == _condition_1 and _condition_1 ~= "" and _condition_1) then
56
56
  _condition_1 = "Input"
57
57
  end
58
58
  _attributes.key = _condition_1
@@ -9,7 +9,7 @@ local useGridStyles = makeStyles(function(_, props)
9
9
  baseGrid = {
10
10
  AutomaticSize = Enum.AutomaticSize.XY,
11
11
  Size = UDim2.fromScale(0, 0),
12
- BackgroundTransparency = 0,
12
+ BackgroundTransparency = 1,
13
13
  BorderSizePixel = 0,
14
14
  },
15
15
  baseLayout = {
@@ -75,7 +75,7 @@ local function Grid(props)
75
75
  local baseLayout = _binding_1.baseLayout
76
76
  local _attributes = {}
77
77
  local _condition = key
78
- if not (_condition ~= "" and _condition) then
78
+ if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
79
79
  _condition = "Grid"
80
80
  end
81
81
  _attributes.key = _condition
@@ -9,7 +9,7 @@ local useListStyles = makeStyles(function(_, props)
9
9
  baseList = {
10
10
  AutomaticSize = Enum.AutomaticSize.XY,
11
11
  Size = UDim2.fromScale(0, 0),
12
- BackgroundTransparency = 0,
12
+ BackgroundTransparency = 1,
13
13
  BorderSizePixel = 0,
14
14
  },
15
15
  baseLayout = {
@@ -75,7 +75,7 @@ local function List(props)
75
75
  local baseLayout = _binding_1.baseLayout
76
76
  local _attributes = {}
77
77
  local _condition = key
78
- if not (_condition ~= "" and _condition) then
78
+ if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
79
79
  _condition = "List"
80
80
  end
81
81
  _attributes.key = _condition
@@ -103,7 +103,7 @@ local function Preloader(props)
103
103
  else
104
104
  local _attributes = {}
105
105
  local _condition = key
106
- if not (_condition ~= "" and _condition) then
106
+ if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
107
107
  _condition = "Preloader"
108
108
  end
109
109
  _attributes.key = _condition
@@ -16,7 +16,7 @@ local function ProgressBar(props)
16
16
  local corner = _binding_1.corner
17
17
  local _attributes = {}
18
18
  local _condition = key
19
- if not (_condition ~= "" and _condition) then
19
+ if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
20
20
  _condition = "ProgressBar"
21
21
  end
22
22
  _attributes.key = _condition
@@ -12,7 +12,7 @@ local function Sidebar(props)
12
12
  local container = _binding_1.container
13
13
  local _attributes = {}
14
14
  local _condition = key
15
- if not (_condition ~= "" and _condition) then
15
+ if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
16
16
  _condition = "Sidebar"
17
17
  end
18
18
  _attributes.key = _condition
@@ -57,7 +57,7 @@ local function Toast(props)
57
57
  end, {})
58
58
  local _attributes = {}
59
59
  local _condition = key
60
- if not (_condition ~= "" and _condition) then
60
+ if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
61
61
  _condition = "Toast"
62
62
  end
63
63
  _attributes.key = _condition
@@ -136,7 +136,7 @@ local function TreeView(props)
136
136
  end, { tree, filter })
137
137
  local _attributes = {}
138
138
  local _condition = key
139
- if not (_condition ~= "" and _condition) then
139
+ if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
140
140
  _condition = "TreeView"
141
141
  end
142
142
  _attributes.key = _condition
@@ -16,7 +16,7 @@ local function Typography(props)
16
16
  local variantToken = _binding_1.variantToken
17
17
  local _attributes = {}
18
18
  local _condition = key
19
- if not (_condition ~= "" and _condition) then
19
+ if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
20
20
  _condition = "Typography"
21
21
  end
22
22
  _attributes.key = _condition
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/uiblox",
3
- "version": "0.1.32",
3
+ "version": "0.1.34",
4
4
  "description": "UI Library and theming for roblox-ts projects",
5
5
  "main": "out/init.lua",
6
6
  "scripts": {