@rbxts/uiblox 0.2.0-alpha.14 → 0.2.0-alpha.15

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.
@@ -1,8 +1,10 @@
1
1
  import { CustomizedProps } from "../../../../theme/index";
2
+ import { AvatarVariant } from "./Avatar.styles";
2
3
  export interface AvatarProps {
3
4
  name?: string;
4
5
  image?: string;
5
6
  size?: number;
7
+ variant?: AvatarVariant;
6
8
  }
7
9
  declare function Avatar(props: CustomizedProps<Frame, AvatarProps>): JSX.Element;
8
10
  export default Avatar;
@@ -11,12 +11,17 @@ local function Avatar(props)
11
11
  end
12
12
  local image = _binding.image
13
13
  local size = _binding.size
14
+ local variant = _binding.variant
15
+ if variant == nil then
16
+ variant = "circular"
17
+ end
14
18
  local className = _binding.className
15
19
  local sx = _binding.sx
16
20
  local id = _binding.id
17
21
  local ref = _binding.ref
18
22
  local styles = useAvatarStyles({
19
23
  size = size,
24
+ variant = variant,
20
25
  })
21
26
  local _attributes = {}
22
27
  local _condition = id
@@ -38,30 +43,33 @@ local function Avatar(props)
38
43
  _attributes[_k] = _v
39
44
  end
40
45
  end
41
- local _attributes_1 = table.clone(styles.corner)
42
- setmetatable(_attributes_1, nil)
43
- local _exp = React.createElement("uicorner", _attributes_1)
46
+ local _condition_1 = variant ~= "square"
47
+ if _condition_1 then
48
+ local _attributes_1 = table.clone(styles.corner)
49
+ setmetatable(_attributes_1, nil)
50
+ _condition_1 = React.createElement("uicorner", _attributes_1)
51
+ end
44
52
  local _result
45
53
  if image ~= nil then
46
- local _attributes_2 = {
54
+ local _attributes_1 = {
47
55
  key = "Image",
48
56
  }
49
57
  for _k, _v in styles.image do
50
- _attributes_2[_k] = _v
58
+ _attributes_1[_k] = _v
51
59
  end
52
- _attributes_2.Image = image
53
- _result = (React.createElement("imagelabel", _attributes_2))
60
+ _attributes_1.Image = image
61
+ _result = (React.createElement("imagelabel", _attributes_1))
54
62
  else
55
- local _attributes_2 = {
63
+ local _attributes_1 = {
56
64
  key = "Initials",
57
65
  }
58
66
  for _k, _v in styles.text do
59
- _attributes_2[_k] = _v
67
+ _attributes_1[_k] = _v
60
68
  end
61
- _attributes_2.Text = avatarInitials(name)
62
- _result = (React.createElement("textlabel", _attributes_2))
69
+ _attributes_1.Text = avatarInitials(name)
70
+ _result = (React.createElement("textlabel", _attributes_1))
63
71
  end
64
- return React.createElement("frame", _attributes, _exp, _result)
72
+ return React.createElement("frame", _attributes, _condition_1, _result)
65
73
  end
66
74
  local default = Avatar
67
75
  return {
@@ -1,4 +1,6 @@
1
+ export type AvatarVariant = "circular" | "rounded" | "square";
1
2
  declare const useAvatarStyles: (props: {
2
3
  size?: number;
4
+ variant?: AvatarVariant;
3
5
  }) => import("../../../../theme/index").ClassNameMap<string>;
4
6
  export default useAvatarStyles;
@@ -8,6 +8,10 @@ local useAvatarStyles = componentStyles("Avatar", function(theme, _param)
8
8
  if size == nil then
9
9
  size = 40
10
10
  end
11
+ local variant = _param.variant
12
+ if variant == nil then
13
+ variant = "circular"
14
+ end
11
15
  return createStyles({
12
16
  root = {
13
17
  Size = UDim2.fromOffset(size, size),
@@ -29,7 +33,7 @@ local useAvatarStyles = componentStyles("Avatar", function(theme, _param)
29
33
  TextColor3 = theme.palette.primary.on,
30
34
  },
31
35
  corner = {
32
- CornerRadius = UDim.new(1, 0),
36
+ CornerRadius = if variant == "rounded" then UDim.new(0, theme.shape.borderRadius) else UDim.new(1, 0),
33
37
  },
34
38
  })
35
39
  end)
@@ -1,6 +1,7 @@
1
1
  -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
3
  local React = TS.import(script, TS.getModule(script, "@rbxts", "react"))
4
+ local imageListTitle = TS.import(script, script.Parent, "imageListLayout").imageListTitle
4
5
  local useImageListStyles = TS.import(script, script.Parent, "ImageList.styles").default
5
6
  local function ImageList(props)
6
7
  local _binding = props
@@ -44,6 +45,7 @@ local function ImageList(props)
44
45
  -- ▼ ReadonlyArray.map ▼
45
46
  local _newValue = table.create(#items)
46
47
  local _callback = function(item, index)
48
+ local title = imageListTitle(item.title)
47
49
  local _attributes_2 = {
48
50
  key = `Tile-{index}`,
49
51
  }
@@ -70,7 +72,21 @@ local function ImageList(props)
70
72
  _attributes_4[_k] = _v
71
73
  end
72
74
  _attributes_4.Image = item.src
73
- return React.createElement("imagebutton", _attributes_2, _exp_1, React.createElement("imagelabel", _attributes_4))
75
+ local _exp_2 = React.createElement("imagelabel", _attributes_4)
76
+ local _condition_1 = title ~= nil
77
+ if _condition_1 then
78
+ local _attributes_5 = {
79
+ key = "Title",
80
+ }
81
+ for _k, _v in styles.title do
82
+ _attributes_5[_k] = _v
83
+ end
84
+ _attributes_5.Text = title
85
+ local _attributes_6 = table.clone(styles.titlePad)
86
+ setmetatable(_attributes_6, nil)
87
+ _condition_1 = (React.createElement("textlabel", _attributes_5, React.createElement("uipadding", _attributes_6)))
88
+ end
89
+ return React.createElement("imagebutton", _attributes_2, _exp_1, _exp_2, _condition_1)
74
90
  end
75
91
  for _k, _v in items do
76
92
  _newValue[_k] = _callback(_v, _k - 1, items)
@@ -13,6 +13,7 @@ local useImageListStyles = componentStyles("ImageList", function(theme, _param)
13
13
  local itemSize = _param.itemSize
14
14
  local size = imageListItemSize(itemSize)
15
15
  local pad = theme.spacing.calc(imageListGap(gap))
16
+ local bar = theme.spacing.calc(2.5)
16
17
  return createStyles({
17
18
  root = {
18
19
  AutomaticSize = Enum.AutomaticSize.XY,
@@ -35,6 +36,7 @@ local useImageListStyles = componentStyles("ImageList", function(theme, _param)
35
36
  BackgroundColor3 = theme.palette.surface.input,
36
37
  BorderSizePixel = 0,
37
38
  AutoButtonColor = false,
39
+ ClipsDescendants = true,
38
40
  Text = "",
39
41
  },
40
42
  corner = {
@@ -46,6 +48,23 @@ local useImageListStyles = componentStyles("ImageList", function(theme, _param)
46
48
  BorderSizePixel = 0,
47
49
  ScaleType = Enum.ScaleType.Crop,
48
50
  },
51
+ title = {
52
+ Size = UDim2.new(1, 0, 0, bar),
53
+ Position = UDim2.new(0, 0, 1, -bar),
54
+ BackgroundColor3 = theme.palette.surface.overlay,
55
+ BackgroundTransparency = 0.25,
56
+ BorderSizePixel = 0,
57
+ Font = theme.typography.fontFamilies.default,
58
+ TextSize = theme.typography.fontSizes.caption,
59
+ TextColor3 = theme.palette.text.inverse,
60
+ TextXAlignment = Enum.TextXAlignment.Left,
61
+ TextTruncate = Enum.TextTruncate.AtEnd,
62
+ ZIndex = 2,
63
+ },
64
+ titlePad = {
65
+ PaddingLeft = UDim.new(0, theme.spacing.calc(0.5)),
66
+ PaddingRight = UDim.new(0, theme.spacing.calc(0.5)),
67
+ },
49
68
  })
50
69
  end)
51
70
  local default = useImageListStyles
@@ -1,3 +1,4 @@
1
1
  export declare function imageListCols(cols?: number): number;
2
2
  export declare function imageListGap(gap?: number): number;
3
3
  export declare function imageListItemSize(itemSize?: number): number;
4
+ export declare function imageListTitle(title?: string): string | undefined;
@@ -17,8 +17,15 @@ local function imageListItemSize(itemSize)
17
17
  end
18
18
  return math.floor(itemSize)
19
19
  end
20
+ local function imageListTitle(title)
21
+ if title == nil or #title == 0 then
22
+ return nil
23
+ end
24
+ return title
25
+ end
20
26
  return {
21
27
  imageListCols = imageListCols,
22
28
  imageListGap = imageListGap,
23
29
  imageListItemSize = imageListItemSize,
30
+ imageListTitle = imageListTitle,
24
31
  }
@@ -1354,281 +1354,287 @@ local function chromeRows()
1354
1354
  local _Length_4 = #_array_5
1355
1355
  table.move(_array_5, 1, _Length_4, _length + 1, _array)
1356
1356
  _length += _Length_4
1357
- local _array_6 = pair("Drawer", "closed", {
1358
- open = false,
1357
+ local _array_6 = pair("Avatar", "rounded", {
1358
+ variant = "rounded",
1359
1359
  })
1360
1360
  local _Length_5 = #_array_6
1361
1361
  table.move(_array_6, 1, _Length_5, _length + 1, _array)
1362
1362
  _length += _Length_5
1363
- local _array_7 = pair("Drawer", "left", {
1364
- open = true,
1365
- variant = "left",
1363
+ local _array_7 = pair("Drawer", "closed", {
1364
+ open = false,
1366
1365
  })
1367
1366
  local _Length_6 = #_array_7
1368
1367
  table.move(_array_7, 1, _Length_6, _length + 1, _array)
1369
1368
  _length += _Length_6
1370
- local _array_8 = pair("Drawer", "right", {
1369
+ local _array_8 = pair("Drawer", "left", {
1371
1370
  open = true,
1372
- variant = "right",
1371
+ variant = "left",
1373
1372
  })
1374
1373
  local _Length_7 = #_array_8
1375
1374
  table.move(_array_8, 1, _Length_7, _length + 1, _array)
1376
1375
  _length += _Length_7
1377
- local _array_9 = pair("Drawer", "wide", {
1376
+ local _array_9 = pair("Drawer", "right", {
1378
1377
  open = true,
1379
- variant = "wide",
1378
+ variant = "right",
1380
1379
  })
1381
1380
  local _Length_8 = #_array_9
1382
1381
  table.move(_array_9, 1, _Length_8, _length + 1, _array)
1383
1382
  _length += _Length_8
1384
- local _array_10 = pair("Breadcrumbs", "single", {
1385
- text = "Home",
1383
+ local _array_10 = pair("Drawer", "wide", {
1384
+ open = true,
1385
+ variant = "wide",
1386
1386
  })
1387
1387
  local _Length_9 = #_array_10
1388
1388
  table.move(_array_10, 1, _Length_9, _length + 1, _array)
1389
1389
  _length += _Length_9
1390
- local _array_11 = pair("Breadcrumbs", "trail", {
1391
- text = "Home / Library / Item",
1390
+ local _array_11 = pair("Breadcrumbs", "single", {
1391
+ text = "Home",
1392
1392
  })
1393
1393
  local _Length_10 = #_array_11
1394
1394
  table.move(_array_11, 1, _Length_10, _length + 1, _array)
1395
1395
  _length += _Length_10
1396
- local _array_12 = pair("Breadcrumbs", "collapsed", {
1397
- text = "Home / … / Item",
1398
- size = "small",
1396
+ local _array_12 = pair("Breadcrumbs", "trail", {
1397
+ text = "Home / Library / Item",
1399
1398
  })
1400
1399
  local _Length_11 = #_array_12
1401
1400
  table.move(_array_12, 1, _Length_11, _length + 1, _array)
1402
1401
  _length += _Length_11
1403
- local _array_13 = pair("Breadcrumbs", "custom-separator", {
1404
- text = "Home > Item",
1402
+ local _array_13 = pair("Breadcrumbs", "collapsed", {
1403
+ text = "Home / … / Item",
1404
+ size = "small",
1405
1405
  })
1406
1406
  local _Length_12 = #_array_13
1407
1407
  table.move(_array_13, 1, _Length_12, _length + 1, _array)
1408
1408
  _length += _Length_12
1409
- local _array_14 = pair("Pagination", "first", {
1410
- value = 1,
1409
+ local _array_14 = pair("Breadcrumbs", "custom-separator", {
1410
+ text = "Home > Item",
1411
1411
  })
1412
1412
  local _Length_13 = #_array_14
1413
1413
  table.move(_array_14, 1, _Length_13, _length + 1, _array)
1414
1414
  _length += _Length_13
1415
- local _array_15 = pair("Pagination", "middle", {
1416
- value = 3,
1415
+ local _array_15 = pair("Pagination", "first", {
1416
+ value = 1,
1417
1417
  })
1418
1418
  local _Length_14 = #_array_15
1419
1419
  table.move(_array_15, 1, _Length_14, _length + 1, _array)
1420
1420
  _length += _Length_14
1421
- local _array_16 = pair("Pagination", "collapsed", {
1422
- value = 10,
1423
- size = "large",
1421
+ local _array_16 = pair("Pagination", "middle", {
1422
+ value = 3,
1424
1423
  })
1425
1424
  local _Length_15 = #_array_16
1426
1425
  table.move(_array_16, 1, _Length_15, _length + 1, _array)
1427
1426
  _length += _Length_15
1428
- local _array_17 = pair("Pagination", "disabled", {
1429
- value = 2,
1430
- disabled = true,
1427
+ local _array_17 = pair("Pagination", "collapsed", {
1428
+ value = 10,
1429
+ size = "large",
1431
1430
  })
1432
1431
  local _Length_16 = #_array_17
1433
1432
  table.move(_array_17, 1, _Length_16, _length + 1, _array)
1434
1433
  _length += _Length_16
1435
- local _array_18 = pair("Pagination", "size-small", {
1434
+ local _array_18 = pair("Pagination", "disabled", {
1436
1435
  value = 2,
1437
- size = "small",
1436
+ disabled = true,
1438
1437
  })
1439
1438
  local _Length_17 = #_array_18
1440
1439
  table.move(_array_18, 1, _Length_17, _length + 1, _array)
1441
1440
  _length += _Length_17
1442
- local _array_19 = pair("Stepper", "first", {
1443
- value = 0,
1441
+ local _array_19 = pair("Pagination", "size-small", {
1442
+ value = 2,
1443
+ size = "small",
1444
1444
  })
1445
1445
  local _Length_18 = #_array_19
1446
1446
  table.move(_array_19, 1, _Length_18, _length + 1, _array)
1447
1447
  _length += _Length_18
1448
- local _array_20 = pair("Stepper", "middle", {
1449
- value = 1,
1448
+ local _array_20 = pair("Stepper", "first", {
1449
+ value = 0,
1450
1450
  })
1451
1451
  local _Length_19 = #_array_20
1452
1452
  table.move(_array_20, 1, _Length_19, _length + 1, _array)
1453
1453
  _length += _Length_19
1454
- local _array_21 = pair("Stepper", "last", {
1455
- value = 2,
1454
+ local _array_21 = pair("Stepper", "middle", {
1455
+ value = 1,
1456
1456
  })
1457
1457
  local _Length_20 = #_array_21
1458
1458
  table.move(_array_21, 1, _Length_20, _length + 1, _array)
1459
1459
  _length += _Length_20
1460
- local _array_22 = pair("Stepper", "vertical", {
1461
- value = 1,
1462
- variant = "vertical",
1460
+ local _array_22 = pair("Stepper", "last", {
1461
+ value = 2,
1463
1462
  })
1464
1463
  local _Length_21 = #_array_22
1465
1464
  table.move(_array_22, 1, _Length_21, _length + 1, _array)
1466
1465
  _length += _Length_21
1467
- local _array_23 = pair("Accordion", "closed", {
1468
- open = false,
1466
+ local _array_23 = pair("Stepper", "vertical", {
1467
+ value = 1,
1468
+ variant = "vertical",
1469
1469
  })
1470
1470
  local _Length_22 = #_array_23
1471
1471
  table.move(_array_23, 1, _Length_22, _length + 1, _array)
1472
1472
  _length += _Length_22
1473
- local _array_24 = pair("Accordion", "open", {
1474
- open = true,
1473
+ local _array_24 = pair("Accordion", "closed", {
1474
+ open = false,
1475
1475
  })
1476
1476
  local _Length_23 = #_array_24
1477
1477
  table.move(_array_24, 1, _Length_23, _length + 1, _array)
1478
1478
  _length += _Length_23
1479
- local _array_25 = pair("Accordion", "disabled", {
1480
- open = false,
1481
- disabled = true,
1479
+ local _array_25 = pair("Accordion", "open", {
1480
+ open = true,
1482
1481
  })
1483
1482
  local _Length_24 = #_array_25
1484
1483
  table.move(_array_25, 1, _Length_24, _length + 1, _array)
1485
1484
  _length += _Length_24
1486
- local _array_26 = pair("Snackbar", "open", {
1487
- open = true,
1488
- text = "Saved",
1485
+ local _array_26 = pair("Accordion", "disabled", {
1486
+ open = false,
1487
+ disabled = true,
1489
1488
  })
1490
1489
  local _Length_25 = #_array_26
1491
1490
  table.move(_array_26, 1, _Length_25, _length + 1, _array)
1492
1491
  _length += _Length_25
1493
- local _array_27 = pair("Snackbar", "closed", {
1494
- open = false,
1492
+ local _array_27 = pair("Snackbar", "open", {
1493
+ open = true,
1495
1494
  text = "Saved",
1496
1495
  })
1497
1496
  local _Length_26 = #_array_27
1498
1497
  table.move(_array_27, 1, _Length_26, _length + 1, _array)
1499
1498
  _length += _Length_26
1500
- local _array_28 = pair("Table", "empty", {
1501
- text = "",
1499
+ local _array_28 = pair("Snackbar", "closed", {
1500
+ open = false,
1501
+ text = "Saved",
1502
1502
  })
1503
1503
  local _Length_27 = #_array_28
1504
1504
  table.move(_array_28, 1, _Length_27, _length + 1, _array)
1505
1505
  _length += _Length_27
1506
- local _array_29 = pair("Table", "default", {
1507
- text = "Name / Role",
1506
+ local _array_29 = pair("Table", "empty", {
1507
+ text = "",
1508
1508
  })
1509
1509
  local _Length_28 = #_array_29
1510
1510
  table.move(_array_29, 1, _Length_28, _length + 1, _array)
1511
1511
  _length += _Length_28
1512
- local _array_30 = pair("Table", "selected", {
1512
+ local _array_30 = pair("Table", "default", {
1513
1513
  text = "Name / Role",
1514
- value = 0,
1515
1514
  })
1516
1515
  local _Length_29 = #_array_30
1517
1516
  table.move(_array_30, 1, _Length_29, _length + 1, _array)
1518
1517
  _length += _Length_29
1519
- local _array_31 = pair("Table", "dense", {
1518
+ local _array_31 = pair("Table", "selected", {
1520
1519
  text = "Name / Role",
1521
- variant = "dense",
1520
+ value = 0,
1522
1521
  })
1523
1522
  local _Length_30 = #_array_31
1524
1523
  table.move(_array_31, 1, _Length_30, _length + 1, _array)
1525
1524
  _length += _Length_30
1526
- local _array_32 = pair("Autocomplete", "default", {
1527
- value = "Continue",
1528
- options = { "Continue", "Other" },
1525
+ local _array_32 = pair("Table", "dense", {
1526
+ text = "Name / Role",
1527
+ variant = "dense",
1529
1528
  })
1530
1529
  local _Length_31 = #_array_32
1531
1530
  table.move(_array_32, 1, _Length_31, _length + 1, _array)
1532
1531
  _length += _Length_31
1533
- local _array_33 = pair("Autocomplete", "open", {
1532
+ local _array_33 = pair("Autocomplete", "default", {
1534
1533
  value = "Continue",
1535
1534
  options = { "Continue", "Other" },
1536
- open = true,
1537
1535
  })
1538
1536
  local _Length_32 = #_array_33
1539
1537
  table.move(_array_33, 1, _Length_32, _length + 1, _array)
1540
1538
  _length += _Length_32
1541
- local _array_34 = pair("Autocomplete", "disabled", {
1539
+ local _array_34 = pair("Autocomplete", "open", {
1542
1540
  value = "Continue",
1543
1541
  options = { "Continue", "Other" },
1544
- disabled = true,
1542
+ open = true,
1545
1543
  })
1546
1544
  local _Length_33 = #_array_34
1547
1545
  table.move(_array_34, 1, _Length_33, _length + 1, _array)
1548
1546
  _length += _Length_33
1549
- local _array_35 = pair("Autocomplete", "empty", {
1550
- value = "",
1551
- options = {},
1552
- open = true,
1547
+ local _array_35 = pair("Autocomplete", "disabled", {
1548
+ value = "Continue",
1549
+ options = { "Continue", "Other" },
1550
+ disabled = true,
1553
1551
  })
1554
1552
  local _Length_34 = #_array_35
1555
1553
  table.move(_array_35, 1, _Length_34, _length + 1, _array)
1556
1554
  _length += _Length_34
1557
- local _array_36 = pair("Autocomplete", "no-results", {
1558
- value = "Continue",
1559
- options = { "Continue", "Other" },
1555
+ local _array_36 = pair("Autocomplete", "empty", {
1556
+ value = "",
1557
+ options = {},
1560
1558
  open = true,
1561
- filter = "zzz",
1562
1559
  })
1563
1560
  local _Length_35 = #_array_36
1564
1561
  table.move(_array_36, 1, _Length_35, _length + 1, _array)
1565
1562
  _length += _Length_35
1566
- local _array_37 = pair("Fab", "default")
1563
+ local _array_37 = pair("Autocomplete", "no-results", {
1564
+ value = "Continue",
1565
+ options = { "Continue", "Other" },
1566
+ open = true,
1567
+ filter = "zzz",
1568
+ })
1567
1569
  local _Length_36 = #_array_37
1568
1570
  table.move(_array_37, 1, _Length_36, _length + 1, _array)
1569
1571
  _length += _Length_36
1570
- local _array_38 = pair("Fab", "extended", {
1571
- text = "Compose",
1572
- })
1572
+ local _array_38 = pair("Fab", "default")
1573
1573
  local _Length_37 = #_array_38
1574
1574
  table.move(_array_38, 1, _Length_37, _length + 1, _array)
1575
1575
  _length += _Length_37
1576
- local _array_39 = pair("Fab", "small", {
1577
- size = "small",
1576
+ local _array_39 = pair("Fab", "extended", {
1577
+ text = "Compose",
1578
1578
  })
1579
1579
  local _Length_38 = #_array_39
1580
1580
  table.move(_array_39, 1, _Length_38, _length + 1, _array)
1581
1581
  _length += _Length_38
1582
- local _array_40 = pair("Fab", "large", {
1583
- size = "large",
1582
+ local _array_40 = pair("Fab", "small", {
1583
+ size = "small",
1584
1584
  })
1585
1585
  local _Length_39 = #_array_40
1586
1586
  table.move(_array_40, 1, _Length_39, _length + 1, _array)
1587
1587
  _length += _Length_39
1588
- local _array_41 = pair("Fab", "disabled", {
1589
- disabled = true,
1588
+ local _array_41 = pair("Fab", "large", {
1589
+ size = "large",
1590
1590
  })
1591
1591
  local _Length_40 = #_array_41
1592
1592
  table.move(_array_41, 1, _Length_40, _length + 1, _array)
1593
1593
  _length += _Length_40
1594
- local _array_42 = pair("Fab", "loading", {
1595
- loading = true,
1594
+ local _array_42 = pair("Fab", "disabled", {
1595
+ disabled = true,
1596
1596
  })
1597
1597
  local _Length_41 = #_array_42
1598
1598
  table.move(_array_42, 1, _Length_41, _length + 1, _array)
1599
1599
  _length += _Length_41
1600
- local _array_43 = pair("AppBar", "default", {
1601
- text = "Storyblox",
1600
+ local _array_43 = pair("Fab", "loading", {
1601
+ loading = true,
1602
1602
  })
1603
1603
  local _Length_42 = #_array_43
1604
1604
  table.move(_array_43, 1, _Length_42, _length + 1, _array)
1605
1605
  _length += _Length_42
1606
- local _array_44 = pair("AppBar", "flat", {
1606
+ local _array_44 = pair("AppBar", "default", {
1607
1607
  text = "Storyblox",
1608
- variant = "flat",
1609
1608
  })
1610
1609
  local _Length_43 = #_array_44
1611
1610
  table.move(_array_44, 1, _Length_43, _length + 1, _array)
1612
1611
  _length += _Length_43
1613
- local _array_45 = pair("AppBar", "raised", {
1612
+ local _array_45 = pair("AppBar", "flat", {
1614
1613
  text = "Storyblox",
1615
- variant = "raised",
1614
+ variant = "flat",
1616
1615
  })
1617
1616
  local _Length_44 = #_array_45
1618
1617
  table.move(_array_45, 1, _Length_44, _length + 1, _array)
1619
1618
  _length += _Length_44
1620
- local _array_46 = pair("AppBar", "primary", {
1619
+ local _array_46 = pair("AppBar", "raised", {
1621
1620
  text = "Storyblox",
1622
- variant = "primary",
1621
+ variant = "raised",
1623
1622
  })
1624
1623
  local _Length_45 = #_array_46
1625
1624
  table.move(_array_46, 1, _Length_45, _length + 1, _array)
1626
1625
  _length += _Length_45
1627
- local _array_47 = pair("BottomNavigation", "default", {
1626
+ local _array_47 = pair("AppBar", "primary", {
1627
+ text = "Storyblox",
1628
+ variant = "primary",
1629
+ })
1630
+ local _Length_46 = #_array_47
1631
+ table.move(_array_47, 1, _Length_46, _length + 1, _array)
1632
+ _length += _Length_46
1633
+ local _array_48 = pair("BottomNavigation", "default", {
1628
1634
  value = "Home",
1629
1635
  options = { "Home", "Search", "Profile" },
1630
1636
  })
1631
- table.move(_array_47, 1, #_array_47, _length + 1, _array)
1637
+ table.move(_array_48, 1, #_array_48, _length + 1, _array)
1632
1638
  return _array
1633
1639
  end
1634
1640
  local function miscRows()
@@ -1879,89 +1885,95 @@ local function miscRows()
1879
1885
  local _Length_38 = #_array_39
1880
1886
  table.move(_array_39, 1, _Length_38, _length + 1, _array)
1881
1887
  _length += _Length_38
1882
- local _array_40 = pair("SpeedDial", "closed", {
1883
- open = false,
1888
+ local _array_40 = pair("ImageList", "titled", {
1889
+ text = "Cove",
1884
1890
  })
1885
1891
  local _Length_39 = #_array_40
1886
1892
  table.move(_array_40, 1, _Length_39, _length + 1, _array)
1887
1893
  _length += _Length_39
1888
- local _array_41 = pair("SpeedDial", "open", {
1889
- open = true,
1894
+ local _array_41 = pair("SpeedDial", "closed", {
1895
+ open = false,
1890
1896
  })
1891
1897
  local _Length_40 = #_array_41
1892
1898
  table.move(_array_41, 1, _Length_40, _length + 1, _array)
1893
1899
  _length += _Length_40
1894
- local _array_42 = pair("SpeedDial", "disabled", {
1895
- open = false,
1896
- disabled = true,
1900
+ local _array_42 = pair("SpeedDial", "open", {
1901
+ open = true,
1897
1902
  })
1898
1903
  local _Length_41 = #_array_42
1899
1904
  table.move(_array_42, 1, _Length_41, _length + 1, _array)
1900
1905
  _length += _Length_41
1901
- local _array_43 = pair("SpeedDial", "down", {
1902
- open = true,
1903
- variant = "down",
1906
+ local _array_43 = pair("SpeedDial", "disabled", {
1907
+ open = false,
1908
+ disabled = true,
1904
1909
  })
1905
1910
  local _Length_42 = #_array_43
1906
1911
  table.move(_array_43, 1, _Length_42, _length + 1, _array)
1907
1912
  _length += _Length_42
1908
- local _array_44 = pair("FormLabel", "default", {
1909
- text = "Email",
1913
+ local _array_44 = pair("SpeedDial", "down", {
1914
+ open = true,
1915
+ variant = "down",
1910
1916
  })
1911
1917
  local _Length_43 = #_array_44
1912
1918
  table.move(_array_44, 1, _Length_43, _length + 1, _array)
1913
1919
  _length += _Length_43
1914
- local _array_45 = pair("FormLabel", "required", {
1920
+ local _array_45 = pair("FormLabel", "default", {
1915
1921
  text = "Email",
1916
- value = true,
1917
1922
  })
1918
1923
  local _Length_44 = #_array_45
1919
1924
  table.move(_array_45, 1, _Length_44, _length + 1, _array)
1920
1925
  _length += _Length_44
1921
- local _array_46 = pair("FormLabel", "error", {
1926
+ local _array_46 = pair("FormLabel", "required", {
1922
1927
  text = "Email",
1923
- hasError = true,
1928
+ value = true,
1924
1929
  })
1925
1930
  local _Length_45 = #_array_46
1926
1931
  table.move(_array_46, 1, _Length_45, _length + 1, _array)
1927
1932
  _length += _Length_45
1928
- local _array_47 = pair("FormHelperText", "default", {
1929
- text = "We never share this",
1933
+ local _array_47 = pair("FormLabel", "error", {
1934
+ text = "Email",
1935
+ hasError = true,
1930
1936
  })
1931
1937
  local _Length_46 = #_array_47
1932
1938
  table.move(_array_47, 1, _Length_46, _length + 1, _array)
1933
1939
  _length += _Length_46
1934
- local _array_48 = pair("FormHelperText", "error", {
1935
- text = "Required",
1936
- hasError = true,
1940
+ local _array_48 = pair("FormHelperText", "default", {
1941
+ text = "We never share this",
1937
1942
  })
1938
1943
  local _Length_47 = #_array_48
1939
1944
  table.move(_array_48, 1, _Length_47, _length + 1, _array)
1940
1945
  _length += _Length_47
1941
- local _array_49 = pair("Menu", "closed", {
1942
- open = false,
1946
+ local _array_49 = pair("FormHelperText", "error", {
1947
+ text = "Required",
1948
+ hasError = true,
1943
1949
  })
1944
1950
  local _Length_48 = #_array_49
1945
1951
  table.move(_array_49, 1, _Length_48, _length + 1, _array)
1946
1952
  _length += _Length_48
1947
- local _array_50 = pair("Menu", "open", {
1948
- open = true,
1953
+ local _array_50 = pair("Menu", "closed", {
1954
+ open = false,
1949
1955
  })
1950
1956
  local _Length_49 = #_array_50
1951
1957
  table.move(_array_50, 1, _Length_49, _length + 1, _array)
1952
1958
  _length += _Length_49
1953
- local _array_51 = pair("Menu", "empty", {
1959
+ local _array_51 = pair("Menu", "open", {
1954
1960
  open = true,
1955
- options = {},
1956
1961
  })
1957
1962
  local _Length_50 = #_array_51
1958
1963
  table.move(_array_51, 1, _Length_50, _length + 1, _array)
1959
1964
  _length += _Length_50
1960
- local _array_52 = pair("Menu", "dense", {
1965
+ local _array_52 = pair("Menu", "empty", {
1966
+ open = true,
1967
+ options = {},
1968
+ })
1969
+ local _Length_51 = #_array_52
1970
+ table.move(_array_52, 1, _Length_51, _length + 1, _array)
1971
+ _length += _Length_51
1972
+ local _array_53 = pair("Menu", "dense", {
1961
1973
  open = true,
1962
1974
  variant = "dense",
1963
1975
  })
1964
- table.move(_array_52, 1, #_array_52, _length + 1, _array)
1976
+ table.move(_array_53, 1, #_array_53, _length + 1, _array)
1965
1977
  return _array
1966
1978
  end
1967
1979
  local function concatRows(...)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/uiblox",
3
- "version": "0.2.0-alpha.14",
3
+ "version": "0.2.0-alpha.15",
4
4
  "description": "UI Library and theming for roblox-ts projects",
5
5
  "main": "out/init.luau",
6
6
  "packageManager": "pnpm@11.3.0",
@@ -8,7 +8,7 @@
8
8
  "build": "rbxtsc",
9
9
  "watch": "rbxtsc -w",
10
10
  "pack:check": "node scripts/pack-check.mjs",
11
- "test": "node scripts/no-internal-refs.check.mjs && node scripts/import-case.check.mjs && node --experimental-strip-types scripts/theme-scope.check.mjs && node --experimental-strip-types scripts/style-types.check.mjs && node --experimental-strip-types scripts/style-cache.check.mjs && node --experimental-strip-types scripts/style-variants.check.mjs && node --experimental-strip-types scripts/component-styles.check.mjs && node --experimental-strip-types scripts/interaction-styles.check.mjs && node --experimental-strip-types scripts/resolve-style.check.mjs && node --experimental-strip-types scripts/density.check.mjs && node --experimental-strip-types scripts/styles.check.mjs && node --experimental-strip-types scripts/contrast.check.mjs && node --experimental-strip-types scripts/primitives.check.mjs && node --experimental-strip-types scripts/paper.check.mjs && node --experimental-strip-types scripts/list-item.check.mjs && node --experimental-strip-types scripts/slider.check.mjs && node --experimental-strip-types scripts/menu.check.mjs && node --experimental-strip-types scripts/guard.check.mjs && node --experimental-strip-types scripts/breakpoints.check.mjs && node --experimental-strip-types scripts/focus-trap.check.mjs && node --experimental-strip-types scripts/select-typeahead.check.mjs && node --experimental-strip-types scripts/select-groups.check.mjs && node --experimental-strip-types scripts/select-multi.check.mjs && node --experimental-strip-types scripts/select-motion.check.mjs && node --experimental-strip-types scripts/select-polish.check.mjs && node --experimental-strip-types scripts/reduced-motion.check.mjs && node --experimental-strip-types scripts/card.check.mjs && node --experimental-strip-types scripts/chip.check.mjs && node --experimental-strip-types scripts/badge.check.mjs && node --experimental-strip-types scripts/avatar.check.mjs && node --experimental-strip-types scripts/drawer.check.mjs && node --experimental-strip-types scripts/breadcrumbs.check.mjs && node --experimental-strip-types scripts/pagination.check.mjs && node --experimental-strip-types scripts/stepper.check.mjs && node --experimental-strip-types scripts/accordion.check.mjs && node --experimental-strip-types scripts/snackbar.check.mjs && node --experimental-strip-types scripts/table.check.mjs && node --experimental-strip-types scripts/autocomplete.check.mjs && node --experimental-strip-types scripts/field-loading.check.mjs && node --experimental-strip-types scripts/fab.check.mjs && node --experimental-strip-types scripts/appbar.check.mjs && node --experimental-strip-types scripts/bottom-navigation.check.mjs && node --experimental-strip-types scripts/alert.check.mjs && node --experimental-strip-types scripts/toggle-button.check.mjs && node --experimental-strip-types scripts/link.check.mjs && node --experimental-strip-types scripts/rating.check.mjs && node --experimental-strip-types scripts/stack.check.mjs && node --experimental-strip-types scripts/speed-dial.check.mjs && node --experimental-strip-types scripts/form-text.check.mjs && node --experimental-strip-types scripts/box.check.mjs && node --experimental-strip-types scripts/image-list.check.mjs && node --experimental-strip-types scripts/radio-group.check.mjs && node --experimental-strip-types scripts/container.check.mjs && node --experimental-strip-types scripts/divider.check.mjs && node --experimental-strip-types scripts/tabs.check.mjs && node --experimental-strip-types scripts/dialog.check.mjs && node --experimental-strip-types scripts/backdrop.check.mjs && node --experimental-strip-types scripts/cframe-editor.check.mjs && node --experimental-strip-types scripts/enum-picker.check.mjs && node --experimental-strip-types scripts/number-range.check.mjs && node --experimental-strip-types scripts/rect-editor.check.mjs && node --experimental-strip-types scripts/asset-field.check.mjs && node --experimental-strip-types scripts/gradient-editor.check.mjs && node --experimental-strip-types scripts/ray-editor.check.mjs && node --experimental-strip-types scripts/physical-properties.check.mjs && node --experimental-strip-types scripts/brickcolor-picker.check.mjs",
11
+ "test": "node scripts/no-internal-refs.check.mjs && node scripts/import-case.check.mjs && node --experimental-strip-types scripts/theme-scope.check.mjs && node --experimental-strip-types scripts/style-types.check.mjs && node --experimental-strip-types scripts/style-cache.check.mjs && node --experimental-strip-types scripts/style-variants.check.mjs && node --experimental-strip-types scripts/component-styles.check.mjs && node --experimental-strip-types scripts/interaction-styles.check.mjs && node --experimental-strip-types scripts/resolve-style.check.mjs && node --experimental-strip-types scripts/density.check.mjs && node --experimental-strip-types scripts/styles.check.mjs && node --experimental-strip-types scripts/contrast.check.mjs && node --experimental-strip-types scripts/primitives.check.mjs && node --experimental-strip-types scripts/paper.check.mjs && node --experimental-strip-types scripts/list-item.check.mjs && node --experimental-strip-types scripts/slider.check.mjs && node --experimental-strip-types scripts/menu.check.mjs && node --experimental-strip-types scripts/guard.check.mjs && node --experimental-strip-types scripts/breakpoints.check.mjs && node --experimental-strip-types scripts/focus-trap.check.mjs && node --experimental-strip-types scripts/select-typeahead.check.mjs && node --experimental-strip-types scripts/select-groups.check.mjs && node --experimental-strip-types scripts/select-multi.check.mjs && node --experimental-strip-types scripts/select-motion.check.mjs && node --experimental-strip-types scripts/select-polish.check.mjs && node --experimental-strip-types scripts/reduced-motion.check.mjs && node --experimental-strip-types scripts/card.check.mjs && node --experimental-strip-types scripts/chip.check.mjs && node --experimental-strip-types scripts/badge.check.mjs && node --experimental-strip-types scripts/avatar.check.mjs && node --experimental-strip-types scripts/imageList.check.mjs && node --experimental-strip-types scripts/drawer.check.mjs && node --experimental-strip-types scripts/breadcrumbs.check.mjs && node --experimental-strip-types scripts/pagination.check.mjs && node --experimental-strip-types scripts/stepper.check.mjs && node --experimental-strip-types scripts/accordion.check.mjs && node --experimental-strip-types scripts/snackbar.check.mjs && node --experimental-strip-types scripts/table.check.mjs && node --experimental-strip-types scripts/autocomplete.check.mjs && node --experimental-strip-types scripts/field-loading.check.mjs && node --experimental-strip-types scripts/fab.check.mjs && node --experimental-strip-types scripts/appbar.check.mjs && node --experimental-strip-types scripts/bottom-navigation.check.mjs && node --experimental-strip-types scripts/alert.check.mjs && node --experimental-strip-types scripts/toggle-button.check.mjs && node --experimental-strip-types scripts/link.check.mjs && node --experimental-strip-types scripts/rating.check.mjs && node --experimental-strip-types scripts/stack.check.mjs && node --experimental-strip-types scripts/speed-dial.check.mjs && node --experimental-strip-types scripts/form-text.check.mjs && node --experimental-strip-types scripts/box.check.mjs && node --experimental-strip-types scripts/image-list.check.mjs && node --experimental-strip-types scripts/radio-group.check.mjs && node --experimental-strip-types scripts/container.check.mjs && node --experimental-strip-types scripts/divider.check.mjs && node --experimental-strip-types scripts/tabs.check.mjs && node --experimental-strip-types scripts/dialog.check.mjs && node --experimental-strip-types scripts/backdrop.check.mjs && node --experimental-strip-types scripts/cframe-editor.check.mjs && node --experimental-strip-types scripts/enum-picker.check.mjs && node --experimental-strip-types scripts/number-range.check.mjs && node --experimental-strip-types scripts/rect-editor.check.mjs && node --experimental-strip-types scripts/asset-field.check.mjs && node --experimental-strip-types scripts/gradient-editor.check.mjs && node --experimental-strip-types scripts/ray-editor.check.mjs && node --experimental-strip-types scripts/physical-properties.check.mjs && node --experimental-strip-types scripts/brickcolor-picker.check.mjs",
12
12
  "prepublishOnly": "pnpm build"
13
13
  },
14
14
  "keywords": [