@rbxts/uiblox 0.2.0-alpha.20 → 0.2.0-alpha.22

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 (53) hide show
  1. package/out/ui/packages/bottomNavigation/components/BottomNavigation.luau +1 -1
  2. package/out/ui/packages/breadcrumbs/components/Breadcrumbs.luau +1 -1
  3. package/out/ui/packages/cframeEditor/components/CFrameEditor.luau +1 -1
  4. package/out/ui/packages/checkbox/components/checkboxLook.d.ts +1 -1
  5. package/out/ui/packages/colorPicker/components/ColorPicker.luau +1 -1
  6. package/out/ui/packages/colorPicker/components/ColorSequenceEditor.luau +1 -1
  7. package/out/ui/packages/colorPicker/components/NumberSequenceEditor.luau +1 -1
  8. package/out/ui/packages/imageList/components/ImageList.styles.luau +0 -1
  9. package/out/ui/packages/layout/components/FlexItem.d.ts +12 -0
  10. package/out/ui/packages/layout/components/FlexItem.luau +49 -0
  11. package/out/ui/packages/layout/components/FlexItem.styles.d.ts +8 -0
  12. package/out/ui/packages/layout/components/FlexItem.styles.luau +66 -0
  13. package/out/ui/packages/layout/components/Grid.d.ts +5 -1
  14. package/out/ui/packages/layout/components/Grid.luau +35 -4
  15. package/out/ui/packages/layout/components/Stack.d.ts +2 -0
  16. package/out/ui/packages/layout/components/Stack.luau +4 -0
  17. package/out/ui/packages/layout/components/Stack.styles.d.ts +2 -0
  18. package/out/ui/packages/layout/components/Stack.styles.luau +34 -5
  19. package/out/ui/packages/layout/components/flexItemMode.d.ts +6 -0
  20. package/out/ui/packages/layout/components/flexItemMode.luau +36 -0
  21. package/out/ui/packages/layout/components/gridProps.d.ts +3 -0
  22. package/out/ui/packages/layout/components/gridProps.luau +20 -0
  23. package/out/ui/packages/layout/components/stackAlign.d.ts +4 -2
  24. package/out/ui/packages/layout/components/stackAlign.luau +16 -2
  25. package/out/ui/packages/layout/index.d.ts +4 -0
  26. package/out/ui/packages/layout/init.luau +1 -0
  27. package/out/ui/packages/menu/components/Menu.luau +1 -1
  28. package/out/ui/packages/pagination/components/Pagination.d.ts +2 -0
  29. package/out/ui/packages/pagination/components/Pagination.luau +11 -2
  30. package/out/ui/packages/pagination/components/Pagination.styles.d.ts +2 -0
  31. package/out/ui/packages/pagination/components/Pagination.styles.luau +17 -0
  32. package/out/ui/packages/physicalPropertiesEditor/components/PhysicalPropertiesEditor.luau +1 -1
  33. package/out/ui/packages/radioGroup/components/RadioGroup.luau +1 -1
  34. package/out/ui/packages/rating/components/Rating.luau +1 -1
  35. package/out/ui/packages/rectEditor/components/RectEditor.luau +1 -1
  36. package/out/ui/packages/select/components/Select.luau +2 -39
  37. package/out/ui/packages/skeleton/components/Skeleton.luau +1 -1
  38. package/out/ui/packages/speedDial/components/SpeedDial.luau +1 -1
  39. package/out/ui/packages/splitPane/components/SplitPane.luau +1 -1
  40. package/out/ui/packages/splitPane/components/splitLook.d.ts +1 -1
  41. package/out/ui/packages/stateMatrix.luau +244 -167
  42. package/out/ui/packages/stepper/components/Stepper.luau +1 -1
  43. package/out/ui/packages/switch/components/switchLook.d.ts +1 -1
  44. package/out/ui/packages/table/components/Table.luau +3 -3
  45. package/out/ui/packages/tabs/components/Tabs.luau +1 -1
  46. package/out/ui/packages/toggleButton/components/ToggleButton.d.ts +2 -0
  47. package/out/ui/packages/toggleButton/components/ToggleButton.luau +3 -1
  48. package/out/ui/packages/toggleButton/components/ToggleButton.styles.d.ts +2 -0
  49. package/out/ui/packages/toggleButton/components/ToggleButton.styles.luau +5 -1
  50. package/out/ui/packages/vectorEditor/components/VectorEditor.luau +1 -1
  51. package/package.json +2 -2
  52. package/out/ui/packages/select/components/selectMotion.d.ts +0 -2
  53. package/out/ui/packages/select/components/selectMotion.luau +0 -12
@@ -8,6 +8,11 @@ local usePaginationStyles = componentStyles("Pagination", function(theme, _param
8
8
  if size == nil then
9
9
  size = "medium"
10
10
  end
11
+ local variant = _param.variant
12
+ if variant == nil then
13
+ variant = "text"
14
+ end
15
+ local outlined = variant == "outlined"
11
16
  local box = if size == "small" then theme.spacing.calc(2.5) elseif size == "large" then theme.spacing.calc(4) else theme.spacing.calc(3)
12
17
  local text = if size == "small" then theme.typography.fontSizes.caption elseif size == "large" then theme.typography.fontSizes.h6 else theme.typography.fontSizes.body
13
18
  return createStyles({
@@ -25,6 +30,7 @@ local usePaginationStyles = componentStyles("Pagination", function(theme, _param
25
30
  page = {
26
31
  Size = UDim2.fromOffset(box, box),
27
32
  BackgroundColor3 = theme.palette.surface.input,
33
+ BackgroundTransparency = if outlined then 1 else 0,
28
34
  BorderSizePixel = 0,
29
35
  AutoButtonColor = false,
30
36
  Font = theme.typography.fontFamilies.default,
@@ -33,6 +39,17 @@ local usePaginationStyles = componentStyles("Pagination", function(theme, _param
33
39
  },
34
40
  selected = {
35
41
  BackgroundColor3 = theme.palette.action.selected,
42
+ BackgroundTransparency = 0,
43
+ },
44
+ stroke = {
45
+ Color = theme.palette.border,
46
+ Thickness = 1,
47
+ ApplyStrokeMode = Enum.ApplyStrokeMode.Border,
48
+ },
49
+ selectedStroke = {
50
+ Color = theme.palette.primary.main,
51
+ Thickness = 1,
52
+ ApplyStrokeMode = Enum.ApplyStrokeMode.Border,
36
53
  },
37
54
  ellipsis = {
38
55
  Size = UDim2.fromOffset(box, box),
@@ -77,7 +77,7 @@ local function PhysicalPropertiesEditor(props)
77
77
  _newValue[_k] = _callback(_v, _k - 1, _exp_1)
78
78
  end
79
79
  -- ▲ ReadonlyArray.map ▲
80
- return React.createElement("frame", _attributes, _exp, _newValue)
80
+ return React.createElement("frame", _attributes, _exp, React.createElement(React.Fragment, nil, _newValue))
81
81
  end
82
82
  local default = PhysicalPropertiesEditor
83
83
  return {
@@ -106,7 +106,7 @@ local function RadioGroup(props)
106
106
  _newValue[_k] = _callback(_v, _k - 1, options)
107
107
  end
108
108
  -- ▲ ReadonlyArray.map ▲
109
- return React.createElement("frame", _attributes, _exp, _newValue)
109
+ return React.createElement("frame", _attributes, _exp, React.createElement(React.Fragment, nil, _newValue))
110
110
  end
111
111
  local default = RadioGroup
112
112
  return {
@@ -93,7 +93,7 @@ local function Rating(props)
93
93
  _newValue[_k] = _callback(_v, _k - 1, stars)
94
94
  end
95
95
  -- ▲ ReadonlyArray.map ▲
96
- return React.createElement("frame", _attributes, _exp, _newValue)
96
+ return React.createElement("frame", _attributes, _exp, React.createElement(React.Fragment, nil, _newValue))
97
97
  end
98
98
  local default = Rating
99
99
  return {
@@ -77,7 +77,7 @@ local function RectEditor(props)
77
77
  _newValue[_k] = _callback(_v, _k - 1, _exp_1)
78
78
  end
79
79
  -- ▲ ReadonlyArray.map ▲
80
- return React.createElement("frame", _attributes, _exp, _newValue)
80
+ return React.createElement("frame", _attributes, _exp, React.createElement(React.Fragment, nil, _newValue))
81
81
  end
82
82
  local default = RectEditor
83
83
  return {
@@ -17,7 +17,6 @@ local canActivate = TS.import(script, script.Parent.Parent.Parent, "button", "co
17
17
  local spinnerPixels = TS.import(script, script.Parent.Parent.Parent, "button", "components", "buttonLook").spinnerPixels
18
18
  local CircularProgress = TS.import(script, script.Parent.Parent.Parent, "circularProgress").CircularProgress
19
19
  local Input = TS.import(script, script.Parent.Parent.Parent, "input").Input
20
- local playProperty = TS.import(script, script.Parent.Parent.Parent, "motion").playProperty
21
20
  local Popup = TS.import(script, script.Parent.Parent.Parent, "popup").Popup
22
21
  local Shadow = TS.import(script, script.Parent.Parent.Parent, "shadow").Shadow
23
22
  local _virtualList = TS.import(script, script.Parent.Parent.Parent, "virtualList")
@@ -33,7 +32,6 @@ local _selectGroups = TS.import(script, script.Parent, "selectGroups")
33
32
  local groupRows = _selectGroups.groupRows
34
33
  local rowForOption = _selectGroups.rowForOption
35
34
  local shouldHandleSelectKey = TS.import(script, script.Parent, "selectKey").shouldHandleSelectKey
36
- local menuHold = TS.import(script, script.Parent, "selectMotion").menuHold
37
35
  local _selectMulti = TS.import(script, script.Parent, "selectMulti")
38
36
  local includesChoice = _selectMulti.includesChoice
39
37
  local selectionLabel = _selectMulti.selectionLabel
@@ -75,7 +73,6 @@ local function Select(props)
75
73
  local active = canActivate(disabled, loading)
76
74
  local anchor, setAnchor = useState()
77
75
  local open, setOpen = useState(defaultOpen == true and not loading)
78
- local held, setHeld = useState(false)
79
76
  local focused, setFocused = useState(false)
80
77
  local highlight, setHighlight = useState(-1)
81
78
  local _condition = defaultQuery
@@ -87,7 +84,6 @@ local function Select(props)
87
84
  local typed = useRef()
88
85
  local onKeyRef = useRef()
89
86
  local listRef = useRef()
90
- local menuRef = useRef()
91
87
  -- ▼ ReadonlyArray.find ▼
92
88
  local _callback = function(option)
93
89
  return option.value == value
@@ -242,40 +238,12 @@ local function Select(props)
242
238
  _result_1.ensureVisible(rowForOption(rows, highlight))
243
239
  end
244
240
  end, { shown, highlight })
245
- useEffect(function()
246
- if shown then
247
- setHeld(true)
248
- end
249
- end, { shown })
250
241
  useEffect(function()
251
242
  if loading and open then
252
243
  setOpen(false)
253
244
  setQuery("")
254
245
  end
255
246
  end, { loading, open })
256
- useEffect(function()
257
- local menu = menuRef.current
258
- if not menu or not held then
259
- return nil
260
- end
261
- local stop = playProperty(menu, {
262
- GroupTransparency = if shown then 0 else 1,
263
- }, 0.12, reducedMotion)
264
- local seconds = menuHold(shown, reducedMotion)
265
- if seconds == 0 then
266
- if not shown then
267
- setHeld(false)
268
- end
269
- return stop
270
- end
271
- local wait = task.delay(seconds, function()
272
- return setHeld(false)
273
- end)
274
- return function()
275
- stop()
276
- task.cancel(wait)
277
- end
278
- end, { shown, held, reducedMotion })
279
247
  local _attributes = {}
280
248
  local _condition_2 = id
281
249
  if not (_condition_2 ~= 0 and _condition_2 == _condition_2 and _condition_2 ~= "" and _condition_2) then
@@ -360,7 +328,7 @@ local function Select(props)
360
328
  Position = UDim2.new(1, -theme.padding.calc(1), 0.5, 0),
361
329
  },
362
330
  })))
363
- local _condition_3 = (shown or held)
331
+ local _condition_3 = shown
364
332
  if _condition_3 then
365
333
  local _attributes_5 = {
366
334
  key = "Menu",
@@ -405,11 +373,6 @@ local function Select(props)
405
373
  onInput = function(input)
406
374
  return onKey(input, true)
407
375
  end,
408
- }, React.createElement("canvasgroup", {
409
- ref = menuRef,
410
- Size = UDim2.fromScale(1, 1),
411
- BackgroundTransparency = 1,
412
- GroupTransparency = 1,
413
376
  }, React.createElement("frame", _attributes_5, _exp_3, _exp_4, _exp_5, _exp_6, _condition_4, React.createElement("frame", {
414
377
  key = "ListHost",
415
378
  Size = UDim2.new(1, 0, 1, if search then -row else 0),
@@ -469,7 +432,7 @@ local function Select(props)
469
432
  setmetatable(_attributes_9, nil)
470
433
  return React.createElement("textbutton", _attributes_8, React.createElement("uipadding", _attributes_9))
471
434
  end,
472
- }))))))
435
+ })))))
473
436
  end
474
437
  return React.createElement("frame", _attributes, _exp_2, _condition_3)
475
438
  end
@@ -210,7 +210,7 @@ local function Skeleton(props)
210
210
  _newValue[_k] = _callback(_v, _k - 1, rows)
211
211
  end
212
212
  -- ▲ ReadonlyArray.map ▲
213
- return React.createElement("frame", _attributes, _exp, _newValue)
213
+ return React.createElement("frame", _attributes, _exp, React.createElement(React.Fragment, nil, _newValue))
214
214
  end
215
215
  local function SkeletonText(props)
216
216
  local _attributes = table.clone(props)
@@ -81,7 +81,7 @@ local function SpeedDial(props)
81
81
  _newValue[_k] = _callback(_v, _k - 1, actions)
82
82
  end
83
83
  -- ▲ ReadonlyArray.map ▲
84
- _condition_1 = _newValue
84
+ _condition_1 = (React.createElement(React.Fragment, nil, _newValue))
85
85
  end
86
86
  return React.createElement("frame", _attributes, _exp, _condition_1, React.createElement(Fab, {
87
87
  key = "Main",
@@ -184,7 +184,7 @@ local function SplitPane(props)
184
184
  _newValue[_k] = _callback(_v, _k - 1, _exp_3)
185
185
  end
186
186
  -- ▲ ReadonlyArray.map ▲
187
- local _exp_4 = React.createElement("frame", _attributes_3, _exp_1, React.createElement("frame", _attributes_5, _exp_2, _newValue))
187
+ local _exp_4 = React.createElement("frame", _attributes_3, _exp_1, React.createElement("frame", _attributes_5, _exp_2, React.createElement(React.Fragment, nil, _newValue)))
188
188
  local _attributes_6 = {
189
189
  key = "Second",
190
190
  }
@@ -1,5 +1,5 @@
1
1
  export type SplitPointer = "rest" | "hover" | "press";
2
2
  export declare function splitPointer(hovering: boolean, pressed: boolean): SplitPointer;
3
- export declare function splitRuleTransparency(pointer: SplitPointer, disabled?: boolean): 0.25 | 0.7 | 0.55 | 0.35;
3
+ export declare function splitRuleTransparency(pointer: SplitPointer, disabled?: boolean): 0.25 | 0.35 | 0.7 | 0.55;
4
4
  export declare function splitMarkTransparency(pointer: SplitPointer, disabled?: boolean): 0 | 0.55 | 0.1;
5
5
  export declare function splitHitTransparency(pointer: SplitPointer, disabled?: boolean): 1 | 0.9 | 0.94;