@rbxts/uiblox 0.2.0-alpha.28 → 0.2.0-alpha.29

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.
@@ -2,6 +2,7 @@
2
2
  local TS = _G[script]
3
3
  local React = TS.import(script, TS.getModule(script, "@rbxts", "react"))
4
4
  local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
5
+ local Shadow = TS.import(script, script.Parent.Parent.Parent, "shadow").Shadow
5
6
  local usePaperStyles = TS.import(script, script.Parent, "Paper.styles").default
6
7
  local function Paper(props)
7
8
  local _binding = props
@@ -28,9 +29,10 @@ local function Paper(props)
28
29
  _attributes.base = styles.root
29
30
  _attributes.className = className
30
31
  _attributes.sx = sx
32
+ local _exp = elevation == "raised" and React.createElement(Shadow)
31
33
  local _attributes_1 = table.clone(styles.padding)
32
34
  setmetatable(_attributes_1, nil)
33
- local _exp = React.createElement("uipadding", _attributes_1)
35
+ local _exp_1 = React.createElement("uipadding", _attributes_1)
34
36
  local _condition_1 = square ~= true
35
37
  if _condition_1 then
36
38
  local _attributes_2 = table.clone(styles.corner)
@@ -43,7 +45,7 @@ local function Paper(props)
43
45
  setmetatable(_attributes_2, nil)
44
46
  _condition_2 = React.createElement("uistroke", _attributes_2)
45
47
  end
46
- return React.createElement(SxHost, _attributes, _exp, _condition_1, _condition_2, children)
48
+ return React.createElement(SxHost, _attributes, _exp, _exp_1, _condition_1, _condition_2, children)
47
49
  end
48
50
  local default = Paper
49
51
  return {