@rbxts/uiblox 0.2.0-alpha.0 → 0.2.0-alpha.10
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.
- package/README.md +51 -34
- package/out/theme/constants/NumberConstants.d.ts +4 -2
- package/out/theme/constants/NumberConstants.luau +6 -4
- package/out/theme/context/ThemeProvider.d.ts +1 -1
- package/out/theme/hooks/useTheme.d.ts +1 -1
- package/out/theme/interfaces/palette/colorTokens/ColorTokens.d.ts +1 -1
- package/out/theme/interfaces/spacing/Shape.d.ts +3 -0
- package/out/theme/interfaces/typography/FontSizes.d.ts +1 -1
- package/out/theme/interfaces/typography/FontSizes.luau +15 -8
- package/out/theme/interfaces/typography/ThemeTypography.d.ts +3 -0
- package/out/theme/interfaces/typography/Variants.d.ts +14 -15
- package/out/theme/interfaces/typography/Variants.luau +68 -18
- package/out/theme/styles/utilities/index.d.ts +1 -1
- package/out/theme/styles/utilities/init.luau +3 -1
- package/out/theme/styles/utilities/resolveStyle.d.ts +32 -0
- package/out/theme/styles/utilities/resolveStyle.luau +66 -0
- package/out/theme/themes/DarkTheme.luau +4 -0
- package/out/theme/themes/LightTheme.luau +4 -0
- package/out/theme/types/types.d.ts +1 -1
- package/out/ui/packages/accordion/components/Accordion.d.ts +1 -0
- package/out/ui/packages/accordion/components/Accordion.luau +5 -0
- package/out/ui/packages/accordion/components/Accordion.styles.d.ts +1 -0
- package/out/ui/packages/accordion/components/Accordion.styles.luau +4 -2
- package/out/ui/packages/alert/components/Alert.d.ts +10 -0
- package/out/ui/packages/alert/components/Alert.luau +98 -0
- package/out/ui/packages/alert/components/Alert.styles.d.ts +6 -0
- package/out/ui/packages/alert/components/Alert.styles.luau +93 -0
- package/out/ui/packages/alert/components/alertTone.d.ts +2 -0
- package/out/ui/packages/alert/components/alertTone.luau +7 -0
- package/out/ui/packages/alert/index.d.ts +3 -0
- package/out/ui/packages/alert/init.luau +6 -0
- package/out/ui/packages/appBar/components/AppBar.d.ts +10 -0
- package/out/ui/packages/appBar/components/AppBar.luau +77 -0
- package/out/ui/packages/appBar/components/AppBar.styles.d.ts +6 -0
- package/out/ui/packages/appBar/components/AppBar.styles.luau +66 -0
- package/out/ui/packages/appBar/index.d.ts +3 -0
- package/out/ui/packages/appBar/init.luau +5 -0
- package/out/ui/packages/autocomplete/components/Autocomplete.luau +10 -0
- package/out/ui/packages/backdrop/components/Backdrop.d.ts +10 -0
- package/out/ui/packages/backdrop/components/Backdrop.luau +58 -0
- package/out/ui/packages/backdrop/components/Backdrop.styles.d.ts +4 -0
- package/out/ui/packages/backdrop/components/Backdrop.styles.luau +24 -0
- package/out/ui/packages/backdrop/index.d.ts +2 -0
- package/out/ui/packages/backdrop/init.luau +5 -0
- package/out/ui/packages/badge/components/Badge.styles.luau +6 -3
- package/out/ui/packages/bottomNavigation/components/BottomNavigation.d.ts +10 -0
- package/out/ui/packages/bottomNavigation/components/BottomNavigation.luau +86 -0
- package/out/ui/packages/bottomNavigation/components/BottomNavigation.styles.d.ts +2 -0
- package/out/ui/packages/bottomNavigation/components/BottomNavigation.styles.luau +58 -0
- package/out/ui/packages/bottomNavigation/index.d.ts +2 -0
- package/out/ui/packages/bottomNavigation/init.luau +5 -0
- package/out/ui/packages/breadcrumbs/components/Breadcrumbs.d.ts +1 -0
- package/out/ui/packages/breadcrumbs/components/Breadcrumbs.luau +58 -24
- package/out/ui/packages/breadcrumbs/components/breadcrumbItems.d.ts +9 -0
- package/out/ui/packages/breadcrumbs/components/breadcrumbItems.luau +68 -0
- package/out/ui/packages/breadcrumbs/index.d.ts +1 -0
- package/out/ui/packages/breadcrumbs/init.luau +3 -0
- package/out/ui/packages/brickColorPicker/components/brickColorCatalog.luau +1 -1
- package/out/ui/packages/button/components/Button.luau +9 -5
- package/out/ui/packages/button/components/Button.styles.luau +0 -6
- package/out/ui/packages/button/components/buttonLook.d.ts +2 -2
- package/out/ui/packages/checkbox/components/checkboxLook.d.ts +1 -1
- package/out/ui/packages/chip/components/Chip.d.ts +3 -1
- package/out/ui/packages/chip/components/Chip.luau +39 -2
- package/out/ui/packages/chip/components/Chip.styles.d.ts +3 -0
- package/out/ui/packages/chip/components/Chip.styles.luau +40 -6
- package/out/ui/packages/circularProgress/components/CircularProgress.luau +13 -2
- package/out/ui/packages/dialog/components/Dialog.d.ts +1 -1
- package/out/ui/packages/dialog/components/Dialog.luau +27 -18
- package/out/ui/packages/fab/components/Fab.d.ts +14 -0
- package/out/ui/packages/fab/components/Fab.luau +160 -0
- package/out/ui/packages/fab/components/Fab.styles.d.ts +8 -0
- package/out/ui/packages/fab/components/Fab.styles.luau +65 -0
- package/out/ui/packages/fab/components/fabSize.d.ts +4 -0
- package/out/ui/packages/fab/components/fabSize.luau +33 -0
- package/out/ui/packages/fab/index.d.ts +3 -0
- package/out/ui/packages/fab/init.luau +9 -0
- package/out/ui/packages/formText/components/FormHelperText.d.ts +8 -0
- package/out/ui/packages/formText/components/FormHelperText.luau +44 -0
- package/out/ui/packages/formText/components/FormLabel.d.ts +9 -0
- package/out/ui/packages/formText/components/FormLabel.luau +46 -0
- package/out/ui/packages/formText/components/FormText.styles.d.ts +5 -0
- package/out/ui/packages/formText/components/FormText.styles.luau +33 -0
- package/out/ui/packages/formText/index.d.ts +4 -0
- package/out/ui/packages/formText/init.luau +6 -0
- package/out/ui/packages/icon/components/Icon.styles.luau +4 -4
- package/out/ui/packages/iconButton/components/IconButton.luau +7 -2
- package/out/ui/packages/iconButton/components/IconButton.styles.luau +7 -4
- package/out/ui/packages/imageList/components/ImageList.d.ts +14 -0
- package/out/ui/packages/imageList/components/ImageList.luau +84 -0
- package/out/ui/packages/imageList/components/ImageList.styles.d.ts +6 -0
- package/out/ui/packages/imageList/components/ImageList.styles.luau +54 -0
- package/out/ui/packages/imageList/components/imageListLayout.d.ts +3 -0
- package/out/ui/packages/imageList/components/imageListLayout.luau +24 -0
- package/out/ui/packages/imageList/index.d.ts +2 -0
- package/out/ui/packages/imageList/init.luau +5 -0
- package/out/ui/packages/index.d.ts +11 -0
- package/out/ui/packages/init.luau +33 -0
- package/out/ui/packages/input/components/Input.d.ts +2 -0
- package/out/ui/packages/input/components/Input.luau +64 -27
- package/out/ui/packages/input/components/Input.styles.luau +6 -2
- package/out/ui/packages/layout/components/Box.d.ts +11 -0
- package/out/ui/packages/layout/components/Box.luau +49 -0
- package/out/ui/packages/layout/components/Box.styles.d.ts +7 -0
- package/out/ui/packages/layout/components/Box.styles.luau +34 -0
- package/out/ui/packages/layout/components/Container.d.ts +10 -0
- package/out/ui/packages/layout/components/Container.luau +54 -0
- package/out/ui/packages/layout/components/Container.styles.d.ts +6 -0
- package/out/ui/packages/layout/components/Container.styles.luau +41 -0
- package/out/ui/packages/layout/components/Grid.d.ts +1 -1
- package/out/ui/packages/layout/components/Stack.d.ts +12 -0
- package/out/ui/packages/layout/components/Stack.luau +49 -0
- package/out/ui/packages/layout/components/Stack.styles.d.ts +8 -0
- package/out/ui/packages/layout/components/Stack.styles.luau +72 -0
- package/out/ui/packages/layout/components/boxPad.d.ts +14 -0
- package/out/ui/packages/layout/components/boxPad.luau +59 -0
- package/out/ui/packages/layout/components/containerWidth.d.ts +2 -0
- package/out/ui/packages/layout/components/containerWidth.luau +17 -0
- package/out/ui/packages/layout/components/stackAlign.d.ts +8 -0
- package/out/ui/packages/layout/components/stackAlign.luau +29 -0
- package/out/ui/packages/layout/index.d.ts +10 -0
- package/out/ui/packages/layout/init.luau +4 -0
- package/out/ui/packages/link/components/Link.d.ts +11 -0
- package/out/ui/packages/link/components/Link.luau +83 -0
- package/out/ui/packages/link/components/Link.styles.d.ts +8 -0
- package/out/ui/packages/link/components/Link.styles.luau +59 -0
- package/out/ui/packages/link/index.d.ts +3 -0
- package/out/ui/packages/link/init.luau +5 -0
- package/out/ui/packages/listItem/components/ListItem.d.ts +1 -0
- package/out/ui/packages/listItem/components/ListItem.luau +5 -0
- package/out/ui/packages/listItem/components/ListItem.styles.d.ts +1 -0
- package/out/ui/packages/listItem/components/ListItem.styles.luau +10 -5
- package/out/ui/packages/loadingStroke/components/LoadingStroke.d.ts +2 -0
- package/out/ui/packages/loadingStroke/components/LoadingStroke.luau +23 -19
- package/out/ui/packages/menu/components/Menu.d.ts +3 -0
- package/out/ui/packages/menu/components/Menu.luau +48 -23
- package/out/ui/packages/menu/components/Menu.styles.luau +5 -1
- package/out/ui/packages/modal/components/Modal.d.ts +1 -1
- package/out/ui/packages/modal/components/Modal.luau +55 -37
- package/out/ui/packages/motion/index.d.ts +1 -1
- package/out/ui/packages/motion/init.luau +1 -0
- package/out/ui/packages/motion/unit.d.ts +5 -0
- package/out/ui/packages/motion/unit.luau +23 -0
- package/out/ui/packages/numberInput/components/NumberInput.d.ts +2 -0
- package/out/ui/packages/numberInput/components/NumberInput.luau +4 -0
- package/out/ui/packages/pagination/components/Pagination.d.ts +2 -0
- package/out/ui/packages/pagination/components/Pagination.luau +37 -21
- package/out/ui/packages/pagination/components/Pagination.styles.luau +9 -0
- package/out/ui/packages/pagination/components/pageRange.d.ts +2 -1
- package/out/ui/packages/pagination/components/pageRange.luau +91 -8
- package/out/ui/packages/pagination/index.d.ts +1 -0
- package/out/ui/packages/pagination/init.luau +1 -0
- package/out/ui/packages/paper/components/Paper.d.ts +1 -0
- package/out/ui/packages/paper/components/Paper.luau +8 -3
- package/out/ui/packages/popup/index.d.ts +1 -0
- package/out/ui/packages/popup/init.luau +1 -0
- package/out/ui/packages/radioGroup/components/RadioGroup.d.ts +1 -0
- package/out/ui/packages/radioGroup/components/RadioGroup.luau +4 -2
- package/out/ui/packages/radioGroup/components/RadioGroup.styles.d.ts +1 -0
- package/out/ui/packages/radioGroup/components/RadioGroup.styles.luau +4 -1
- package/out/ui/packages/rating/components/Rating.d.ts +9 -0
- package/out/ui/packages/rating/components/Rating.luau +95 -0
- package/out/ui/packages/rating/components/Rating.styles.d.ts +4 -0
- package/out/ui/packages/rating/components/Rating.styles.luau +39 -0
- package/out/ui/packages/rating/index.d.ts +2 -0
- package/out/ui/packages/rating/init.luau +5 -0
- package/out/ui/packages/select/components/Select.d.ts +6 -0
- package/out/ui/packages/select/components/Select.luau +74 -27
- package/out/ui/packages/select/components/Select.styles.luau +3 -3
- package/out/ui/packages/sidebar/components/Sidebar.styles.luau +2 -2
- package/out/ui/packages/skeleton/components/Skeleton.luau +3 -2
- package/out/ui/packages/skeleton/components/Skeleton.styles.luau +7 -2
- package/out/ui/packages/skeleton/components/skeletonMotion.luau +1 -1
- package/out/ui/packages/skeleton/components/skeletonTone.d.ts +20 -0
- package/out/ui/packages/skeleton/components/skeletonTone.luau +14 -0
- package/out/ui/packages/slider/components/Slider.d.ts +1 -0
- package/out/ui/packages/slider/components/Slider.luau +24 -1
- package/out/ui/packages/slider/components/Slider.styles.luau +8 -0
- package/out/ui/packages/slider/components/sliderMarks.d.ts +1 -0
- package/out/ui/packages/slider/components/sliderMarks.luau +37 -0
- package/out/ui/packages/speedDial/components/SpeedDial.d.ts +17 -0
- package/out/ui/packages/speedDial/components/SpeedDial.luau +92 -0
- package/out/ui/packages/speedDial/components/SpeedDial.styles.d.ts +2 -0
- package/out/ui/packages/speedDial/components/SpeedDial.styles.luau +26 -0
- package/out/ui/packages/speedDial/index.d.ts +2 -0
- package/out/ui/packages/speedDial/init.luau +5 -0
- package/out/ui/packages/splitPane/components/splitLook.d.ts +1 -1
- package/out/ui/packages/stateMatrix.d.ts +2 -0
- package/out/ui/packages/stateMatrix.luau +1843 -1335
- package/out/ui/packages/switch/components/Switch.styles.luau +1 -1
- package/out/ui/packages/switch/components/switchLook.d.ts +1 -1
- package/out/ui/packages/tabs/components/Tabs.d.ts +2 -0
- package/out/ui/packages/tabs/components/Tabs.luau +10 -3
- package/out/ui/packages/tabs/components/Tabs.styles.d.ts +4 -1
- package/out/ui/packages/tabs/components/Tabs.styles.luau +24 -10
- package/out/ui/packages/tabs/components/tabsOrientation.d.ts +2 -0
- package/out/ui/packages/tabs/components/tabsOrientation.luau +7 -0
- package/out/ui/packages/tabs/index.d.ts +1 -0
- package/out/ui/packages/tabs/init.luau +1 -0
- package/out/ui/packages/toast/components/Toast.styles.luau +1 -1
- package/out/ui/packages/toggleButton/components/ToggleButton.d.ts +17 -0
- package/out/ui/packages/toggleButton/components/ToggleButton.luau +126 -0
- package/out/ui/packages/toggleButton/components/ToggleButton.styles.d.ts +5 -0
- package/out/ui/packages/toggleButton/components/ToggleButton.styles.luau +58 -0
- package/out/ui/packages/toggleButton/index.d.ts +2 -0
- package/out/ui/packages/toggleButton/init.luau +7 -0
- package/out/ui/packages/treeView/components/TreeView.luau +3 -3
- package/out/ui/packages/treeView/components/TreeView.styles.luau +3 -3
- package/out/ui/packages/typography/components/Typography.styles.luau +4 -5
- package/out/ui/packages/virtualList/components/EmptyListHint.d.ts +6 -0
- package/out/ui/packages/virtualList/components/EmptyListHint.luau +32 -0
- package/out/ui/packages/virtualList/components/EmptyListHint.styles.d.ts +5 -0
- package/out/ui/packages/virtualList/components/EmptyListHint.styles.luau +26 -0
- package/out/ui/packages/virtualList/index.d.ts +2 -0
- package/out/ui/packages/virtualList/init.luau +1 -0
- package/package.json +2 -2
- package/out/theme/styles/utilities/interaction.d.ts +0 -13
- package/out/theme/styles/utilities/interaction.luau +0 -68
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
-- Compiled with roblox-ts v3.0.0
|
|
2
|
+
local TS = _G[script]
|
|
3
|
+
local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
|
|
4
|
+
local componentStyles = _theme.componentStyles
|
|
5
|
+
local createStyles = _theme.createStyles
|
|
6
|
+
local useBottomNavigationStyles = componentStyles("BottomNavigation", function(theme)
|
|
7
|
+
local _object = {
|
|
8
|
+
root = {
|
|
9
|
+
Size = UDim2.new(1, 0, 0, theme.spacing.calc(7)),
|
|
10
|
+
BackgroundColor3 = theme.palette.surface.elevated,
|
|
11
|
+
BorderSizePixel = 0,
|
|
12
|
+
ZIndex = 11000,
|
|
13
|
+
},
|
|
14
|
+
list = {
|
|
15
|
+
FillDirection = Enum.FillDirection.Horizontal,
|
|
16
|
+
HorizontalAlignment = Enum.HorizontalAlignment.Center,
|
|
17
|
+
VerticalAlignment = Enum.VerticalAlignment.Center,
|
|
18
|
+
SortOrder = Enum.SortOrder.LayoutOrder,
|
|
19
|
+
Padding = UDim.new(0, 0),
|
|
20
|
+
},
|
|
21
|
+
}
|
|
22
|
+
local _left = "item"
|
|
23
|
+
local _object_1 = {
|
|
24
|
+
Size = UDim2.new(0, 0, 1, 0),
|
|
25
|
+
BackgroundTransparency = 1,
|
|
26
|
+
BorderSizePixel = 0,
|
|
27
|
+
AutoButtonColor = false,
|
|
28
|
+
Font = theme.typography.fontFamilies.default,
|
|
29
|
+
}
|
|
30
|
+
local _left_1 = "TextSize"
|
|
31
|
+
local _condition = theme.typography.fontSizes.caption
|
|
32
|
+
if _condition == nil then
|
|
33
|
+
_condition = theme.typography.fontSizes.body
|
|
34
|
+
end
|
|
35
|
+
_object_1[_left_1] = _condition
|
|
36
|
+
_object_1.TextColor3 = theme.palette.text.secondary
|
|
37
|
+
_object_1.TextTruncate = Enum.TextTruncate.AtEnd
|
|
38
|
+
_object[_left] = _object_1
|
|
39
|
+
_object.selected = {
|
|
40
|
+
TextColor3 = theme.palette.primary.main,
|
|
41
|
+
BackgroundColor3 = theme.palette.action.selected,
|
|
42
|
+
BackgroundTransparency = 0.85,
|
|
43
|
+
}
|
|
44
|
+
_object.disabledItem = {
|
|
45
|
+
TextTransparency = 0.5,
|
|
46
|
+
}
|
|
47
|
+
_object.indicator = {
|
|
48
|
+
Size = UDim2.new(1, 0, 0, 2),
|
|
49
|
+
Position = UDim2.new(0, 0, 0, 0),
|
|
50
|
+
BackgroundColor3 = theme.palette.primary.main,
|
|
51
|
+
BorderSizePixel = 0,
|
|
52
|
+
}
|
|
53
|
+
return createStyles(_object)
|
|
54
|
+
end)
|
|
55
|
+
local default = useBottomNavigationStyles
|
|
56
|
+
return {
|
|
57
|
+
default = default,
|
|
58
|
+
}
|
|
@@ -6,6 +6,7 @@ export interface BreadcrumbItem {
|
|
|
6
6
|
export interface BreadcrumbsProps {
|
|
7
7
|
items: BreadcrumbItem[];
|
|
8
8
|
separator?: string;
|
|
9
|
+
maxItems?: number;
|
|
9
10
|
}
|
|
10
11
|
declare function Breadcrumbs(props: CustomizedProps<Frame, BreadcrumbsProps>): JSX.Element;
|
|
11
12
|
export default Breadcrumbs;
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
local TS = _G[script]
|
|
3
3
|
local React = TS.import(script, TS.getModule(script, "@rbxts", "react"))
|
|
4
4
|
local cx = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme").cx
|
|
5
|
-
local
|
|
5
|
+
local _breadcrumbItems = TS.import(script, script.Parent, "breadcrumbItems")
|
|
6
|
+
local breadcrumbCurrent = _breadcrumbItems.breadcrumbCurrent
|
|
7
|
+
local breadcrumbVisible = _breadcrumbItems.breadcrumbVisible
|
|
6
8
|
local useBreadcrumbStyles = TS.import(script, script.Parent, "Breadcrumbs.styles").default
|
|
7
9
|
local function Breadcrumbs(props)
|
|
8
10
|
local _binding = props
|
|
@@ -11,11 +13,13 @@ local function Breadcrumbs(props)
|
|
|
11
13
|
if separator == nil then
|
|
12
14
|
separator = "/"
|
|
13
15
|
end
|
|
16
|
+
local maxItems = _binding.maxItems
|
|
14
17
|
local className = _binding.className
|
|
15
18
|
local sx = _binding.sx
|
|
16
19
|
local id = _binding.id
|
|
17
20
|
local ref = _binding.ref
|
|
18
21
|
local styles = useBreadcrumbStyles()
|
|
22
|
+
local visible = breadcrumbVisible(items, maxItems)
|
|
19
23
|
local _attributes = {}
|
|
20
24
|
local _condition = id
|
|
21
25
|
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
@@ -40,38 +44,68 @@ local function Breadcrumbs(props)
|
|
|
40
44
|
setmetatable(_attributes_1, nil)
|
|
41
45
|
local _exp = React.createElement("uilistlayout", _attributes_1)
|
|
42
46
|
-- ▼ ReadonlyArray.map ▼
|
|
43
|
-
local _newValue = table.create(#
|
|
44
|
-
local _callback = function(
|
|
45
|
-
local current = breadcrumbCurrent(index, #items)
|
|
46
|
-
local
|
|
47
|
+
local _newValue = table.create(#visible)
|
|
48
|
+
local _callback = function(entry, order)
|
|
49
|
+
local current = not entry.ellipsis and breadcrumbCurrent(entry.index, #items)
|
|
50
|
+
local item = if entry.ellipsis then nil else items[entry.index + 1]
|
|
51
|
+
local _condition_1 = order > 0
|
|
47
52
|
if _condition_1 then
|
|
48
53
|
local _attributes_2 = table.clone(styles.separator)
|
|
49
54
|
setmetatable(_attributes_2, nil)
|
|
50
55
|
_attributes_2.Text = separator
|
|
51
|
-
_attributes_2.LayoutOrder =
|
|
56
|
+
_attributes_2.LayoutOrder = order * 2
|
|
52
57
|
_condition_1 = React.createElement("textlabel", _attributes_2)
|
|
53
58
|
end
|
|
54
|
-
local
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
59
|
+
local _result
|
|
60
|
+
if entry.ellipsis then
|
|
61
|
+
local _attributes_2 = table.clone(styles.separator)
|
|
62
|
+
setmetatable(_attributes_2, nil)
|
|
63
|
+
_attributes_2.Text = "…"
|
|
64
|
+
_attributes_2.LayoutOrder = order * 2 + 1
|
|
65
|
+
_result = (React.createElement("textlabel", _attributes_2))
|
|
66
|
+
else
|
|
67
|
+
local _attributes_2 = table.clone(cx(styles.item, current and styles.current))
|
|
68
|
+
setmetatable(_attributes_2, nil)
|
|
69
|
+
_attributes_2.Text = entry.label
|
|
70
|
+
_attributes_2.LayoutOrder = order * 2 + 1
|
|
71
|
+
local _condition_2 = not current
|
|
72
|
+
if _condition_2 then
|
|
73
|
+
local _result_1 = item
|
|
74
|
+
if _result_1 ~= nil then
|
|
75
|
+
_result_1 = _result_1.onActivated
|
|
65
76
|
end
|
|
66
|
-
|
|
67
|
-
end
|
|
68
|
-
|
|
77
|
+
_condition_2 = _result_1 ~= nil
|
|
78
|
+
end
|
|
79
|
+
_attributes_2.Active = _condition_2
|
|
80
|
+
local _condition_3 = not current
|
|
81
|
+
if _condition_3 then
|
|
82
|
+
local _result_1 = item
|
|
83
|
+
if _result_1 ~= nil then
|
|
84
|
+
_result_1 = _result_1.onActivated
|
|
85
|
+
end
|
|
86
|
+
_condition_3 = _result_1 ~= nil
|
|
87
|
+
end
|
|
88
|
+
_attributes_2.Selectable = _condition_3
|
|
89
|
+
_attributes_2.Event = {
|
|
90
|
+
Activated = function()
|
|
91
|
+
local _result_1 = item
|
|
92
|
+
if _result_1 ~= nil then
|
|
93
|
+
_result_1 = _result_1.onActivated
|
|
94
|
+
if _result_1 ~= nil then
|
|
95
|
+
_result_1 = _result_1()
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
return _result_1
|
|
99
|
+
end,
|
|
100
|
+
}
|
|
101
|
+
_result = (React.createElement("textbutton", _attributes_2))
|
|
102
|
+
end
|
|
69
103
|
return React.createElement(React.Fragment, {
|
|
70
|
-
key = `{
|
|
71
|
-
}, _condition_1,
|
|
104
|
+
key = `{entry.label}-{order}`,
|
|
105
|
+
}, _condition_1, _result)
|
|
72
106
|
end
|
|
73
|
-
for _k, _v in
|
|
74
|
-
_newValue[_k] = _callback(_v, _k - 1,
|
|
107
|
+
for _k, _v in visible do
|
|
108
|
+
_newValue[_k] = _callback(_v, _k - 1, visible)
|
|
75
109
|
end
|
|
76
110
|
-- ▲ ReadonlyArray.map ▲
|
|
77
111
|
return React.createElement("frame", _attributes, _exp, _newValue)
|
|
@@ -1 +1,10 @@
|
|
|
1
1
|
export declare function breadcrumbCurrent(index: number, count: number): boolean;
|
|
2
|
+
export interface BreadcrumbSlice {
|
|
3
|
+
label: string;
|
|
4
|
+
index: number;
|
|
5
|
+
ellipsis?: boolean;
|
|
6
|
+
}
|
|
7
|
+
/** Collapse middle items when over maxItems (keep ends). */
|
|
8
|
+
export declare function breadcrumbVisible<T extends {
|
|
9
|
+
label: string;
|
|
10
|
+
}>(items: T[], maxItems?: number): BreadcrumbSlice[];
|
|
@@ -2,6 +2,74 @@
|
|
|
2
2
|
local function breadcrumbCurrent(index, count)
|
|
3
3
|
return count > 0 and index == count - 1
|
|
4
4
|
end
|
|
5
|
+
--* Collapse middle items when over maxItems (keep ends).
|
|
6
|
+
local function breadcrumbVisible(items, maxItems)
|
|
7
|
+
local count = #items
|
|
8
|
+
if maxItems == nil or maxItems < 1 or count <= maxItems then
|
|
9
|
+
local out = {}
|
|
10
|
+
do
|
|
11
|
+
local i = 0
|
|
12
|
+
local _shouldIncrement = false
|
|
13
|
+
while true do
|
|
14
|
+
if _shouldIncrement then
|
|
15
|
+
i += 1
|
|
16
|
+
else
|
|
17
|
+
_shouldIncrement = true
|
|
18
|
+
end
|
|
19
|
+
if not (i < count) then
|
|
20
|
+
break
|
|
21
|
+
end
|
|
22
|
+
local _arg0 = {
|
|
23
|
+
label = items[i + 1].label,
|
|
24
|
+
index = i,
|
|
25
|
+
}
|
|
26
|
+
table.insert(out, _arg0)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
return out
|
|
30
|
+
end
|
|
31
|
+
if maxItems == 1 then
|
|
32
|
+
return { {
|
|
33
|
+
label = items[count].label,
|
|
34
|
+
index = count - 1,
|
|
35
|
+
} }
|
|
36
|
+
end
|
|
37
|
+
local keepEnd = 1
|
|
38
|
+
local rawStart = maxItems - keepEnd - 1
|
|
39
|
+
local keepStart = if rawStart < 1 then 1 else rawStart
|
|
40
|
+
local out = {}
|
|
41
|
+
do
|
|
42
|
+
local i = 0
|
|
43
|
+
local _shouldIncrement = false
|
|
44
|
+
while true do
|
|
45
|
+
if _shouldIncrement then
|
|
46
|
+
i += 1
|
|
47
|
+
else
|
|
48
|
+
_shouldIncrement = true
|
|
49
|
+
end
|
|
50
|
+
if not (i < keepStart) then
|
|
51
|
+
break
|
|
52
|
+
end
|
|
53
|
+
local _arg0 = {
|
|
54
|
+
label = items[i + 1].label,
|
|
55
|
+
index = i,
|
|
56
|
+
}
|
|
57
|
+
table.insert(out, _arg0)
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
table.insert(out, {
|
|
61
|
+
label = "…",
|
|
62
|
+
index = -1,
|
|
63
|
+
ellipsis = true,
|
|
64
|
+
})
|
|
65
|
+
local _arg0 = {
|
|
66
|
+
label = items[count].label,
|
|
67
|
+
index = count - 1,
|
|
68
|
+
}
|
|
69
|
+
table.insert(out, _arg0)
|
|
70
|
+
return out
|
|
71
|
+
end
|
|
5
72
|
return {
|
|
6
73
|
breadcrumbCurrent = breadcrumbCurrent,
|
|
74
|
+
breadcrumbVisible = breadcrumbVisible,
|
|
7
75
|
}
|
|
@@ -2,4 +2,7 @@
|
|
|
2
2
|
local TS = _G[script]
|
|
3
3
|
local exports = {}
|
|
4
4
|
exports.Breadcrumbs = TS.import(script, script, "components", "Breadcrumbs").default
|
|
5
|
+
local _breadcrumbItems = TS.import(script, script, "components", "breadcrumbItems")
|
|
6
|
+
exports.breadcrumbCurrent = _breadcrumbItems.breadcrumbCurrent
|
|
7
|
+
exports.breadcrumbVisible = _breadcrumbItems.breadcrumbVisible
|
|
5
8
|
return exports
|
|
@@ -4,6 +4,7 @@ local _react = TS.import(script, TS.getModule(script, "@rbxts", "react"))
|
|
|
4
4
|
local React = _react
|
|
5
5
|
local useEffect = _react.useEffect
|
|
6
6
|
local useState = _react.useState
|
|
7
|
+
local useReducedMotion = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "hooks").useReducedMotion
|
|
7
8
|
local useTheme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme").useTheme
|
|
8
9
|
local CircularProgress = TS.import(script, script.Parent.Parent.Parent, "circularProgress").CircularProgress
|
|
9
10
|
local LoadingStroke = TS.import(script, script.Parent.Parent.Parent, "loadingStroke").LoadingStroke
|
|
@@ -36,10 +37,10 @@ local function Button(props)
|
|
|
36
37
|
if loadingPosition == nil then
|
|
37
38
|
loadingPosition = "center"
|
|
38
39
|
end
|
|
39
|
-
local
|
|
40
|
+
local reducedProp = _binding.reducedMotion
|
|
40
41
|
local rounded = _binding.rounded
|
|
41
42
|
if rounded == nil then
|
|
42
|
-
rounded =
|
|
43
|
+
rounded = true
|
|
43
44
|
end
|
|
44
45
|
local hoveringDisabled = _binding.hoveringDisabled
|
|
45
46
|
if hoveringDisabled == nil then
|
|
@@ -69,12 +70,14 @@ local function Button(props)
|
|
|
69
70
|
local stroke = _binding_1.stroke
|
|
70
71
|
local _binding_2 = useTheme()
|
|
71
72
|
local theme = _binding_2.theme
|
|
73
|
+
local reducedMotion = useReducedMotion(reducedProp)
|
|
72
74
|
local hovering, setHovering = useState(false)
|
|
73
75
|
local focused, setFocused = useState(false)
|
|
74
76
|
local active = canActivate(disabled, loading)
|
|
75
77
|
local pressed = disabled or (not hoveringDisabled and active and (hovering or focused))
|
|
76
78
|
local face = buttonFace(text, loading, loadingLabel)
|
|
77
79
|
local place = spinnerPlace(loadingPosition)
|
|
80
|
+
local busy = loading or animating
|
|
78
81
|
local branded = (props.color or "primary") == "primary"
|
|
79
82
|
local spinnerColor = if variant == "contained" then if branded then theme.palette.primary.on else theme.palette.text.inverse elseif branded then theme.palette.primary.main else theme.palette.text.primary
|
|
80
83
|
useEffect(function()
|
|
@@ -186,14 +189,15 @@ local function Button(props)
|
|
|
186
189
|
end
|
|
187
190
|
end,
|
|
188
191
|
}
|
|
189
|
-
local _condition_1 = variant == "outlined" and not
|
|
192
|
+
local _condition_1 = variant == "outlined" and not busy
|
|
190
193
|
if _condition_1 then
|
|
191
194
|
local _attributes_1 = table.clone(stroke)
|
|
192
195
|
setmetatable(_attributes_1, nil)
|
|
193
196
|
_condition_1 = React.createElement("uistroke", _attributes_1)
|
|
194
197
|
end
|
|
195
|
-
local _exp =
|
|
196
|
-
animating =
|
|
198
|
+
local _exp = busy and React.createElement(LoadingStroke, {
|
|
199
|
+
animating = busy and not reducedMotion,
|
|
200
|
+
color = spinnerColor,
|
|
197
201
|
})
|
|
198
202
|
local _condition_2 = rounded
|
|
199
203
|
if _condition_2 then
|
|
@@ -6,9 +6,6 @@ local createStyles = _theme.createStyles
|
|
|
6
6
|
local componentStyles = _theme.componentStyles
|
|
7
7
|
local makeRootStyles = function(theme, _param)
|
|
8
8
|
local size = _param.size
|
|
9
|
-
if size == nil then
|
|
10
|
-
size = "small"
|
|
11
|
-
end
|
|
12
9
|
local color = _param.color
|
|
13
10
|
local fullWidth = _param.fullWidth
|
|
14
11
|
local variant = _param.variant
|
|
@@ -92,9 +89,6 @@ local makeRootStyles = function(theme, _param)
|
|
|
92
89
|
end
|
|
93
90
|
local useButtonStyles = componentStyles("Button", function(theme, _param)
|
|
94
91
|
local size = _param.size
|
|
95
|
-
if size == nil then
|
|
96
|
-
size = "small"
|
|
97
|
-
end
|
|
98
92
|
local color = _param.color
|
|
99
93
|
if color == nil then
|
|
100
94
|
color = "primary"
|
|
@@ -8,5 +8,5 @@ export declare function spinnerPlace(position?: LoadingPosition): {
|
|
|
8
8
|
xOffset: number;
|
|
9
9
|
anchorX: number;
|
|
10
10
|
};
|
|
11
|
-
export declare function spinnerPixels(size?: "small" | "medium" | "large"): 16 |
|
|
12
|
-
export declare function iconSpinnerPixels(size?: string): 16 |
|
|
11
|
+
export declare function spinnerPixels(size?: "small" | "medium" | "large"): 16 | 14 | 12;
|
|
12
|
+
export declare function iconSpinnerPixels(size?: string): 16 | 12 | 8;
|
|
@@ -2,4 +2,4 @@ export type CheckboxPointer = "rest" | "hover" | "press" | "focus";
|
|
|
2
2
|
export declare function checkboxMark(value: boolean, mixed?: boolean): "" | "–" | "✓";
|
|
3
3
|
export declare function checkboxPointer(hovering: boolean, pressed: boolean, focused: boolean): CheckboxPointer;
|
|
4
4
|
export declare function checkboxBoxTransparency(filled: boolean, disabled: boolean, pointer: CheckboxPointer): 1 | 0 | 0.7 | 0.55 | 0.85;
|
|
5
|
-
export declare function checkboxStrokeTransparency(filled: boolean, disabled: boolean, pointer: CheckboxPointer): 0 | 0.25 | 0.
|
|
5
|
+
export declare function checkboxStrokeTransparency(filled: boolean, disabled: boolean, pointer: CheckboxPointer): 0 | 0.25 | 0.45 | 0.55 | 0.2;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { CustomizedProps } from "../../../../theme/index";
|
|
1
|
+
import { ControlSize, CustomizedProps } from "../../../../theme/index";
|
|
2
2
|
export interface ChipProps {
|
|
3
3
|
label: string;
|
|
4
4
|
selected?: boolean;
|
|
5
5
|
disabled?: boolean;
|
|
6
|
+
size?: ControlSize;
|
|
6
7
|
onActivated?: () => void;
|
|
8
|
+
onDelete?: () => void;
|
|
7
9
|
}
|
|
8
10
|
declare function Chip(props: CustomizedProps<TextButton, ChipProps>): JSX.Element;
|
|
9
11
|
export default Chip;
|
|
@@ -1,20 +1,26 @@
|
|
|
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 Icons = TS.import(script, script.Parent.Parent.Parent.Parent, "enums").Icons
|
|
4
5
|
local useChipStyles = TS.import(script, script.Parent, "Chip.styles").default
|
|
5
6
|
local function Chip(props)
|
|
6
7
|
local _binding = props
|
|
7
8
|
local label = _binding.label
|
|
8
9
|
local selected = _binding.selected
|
|
9
10
|
local disabled = _binding.disabled
|
|
11
|
+
local size = _binding.size
|
|
10
12
|
local onActivated = _binding.onActivated
|
|
13
|
+
local onDelete = _binding.onDelete
|
|
11
14
|
local className = _binding.className
|
|
12
15
|
local sx = _binding.sx
|
|
13
16
|
local id = _binding.id
|
|
14
17
|
local ref = _binding.ref
|
|
18
|
+
local deletable = onDelete ~= nil
|
|
15
19
|
local styles = useChipStyles({
|
|
16
20
|
selected = selected,
|
|
17
21
|
disabled = disabled,
|
|
22
|
+
deletable = deletable,
|
|
23
|
+
size = size,
|
|
18
24
|
})
|
|
19
25
|
local _attributes = {}
|
|
20
26
|
local _condition = id
|
|
@@ -36,7 +42,7 @@ local function Chip(props)
|
|
|
36
42
|
_attributes[_k] = _v
|
|
37
43
|
end
|
|
38
44
|
end
|
|
39
|
-
_attributes.Text = label
|
|
45
|
+
_attributes.Text = if deletable then "" else label
|
|
40
46
|
_attributes.Event = {
|
|
41
47
|
Activated = function()
|
|
42
48
|
if disabled ~= true then
|
|
@@ -55,7 +61,38 @@ local function Chip(props)
|
|
|
55
61
|
local _exp_1 = React.createElement("uicorner", _attributes_2)
|
|
56
62
|
local _attributes_3 = table.clone(styles.stroke)
|
|
57
63
|
setmetatable(_attributes_3, nil)
|
|
58
|
-
|
|
64
|
+
local _exp_2 = React.createElement("uistroke", _attributes_3)
|
|
65
|
+
local _condition_1 = deletable
|
|
66
|
+
if _condition_1 then
|
|
67
|
+
local _attributes_4 = table.clone(styles.row)
|
|
68
|
+
setmetatable(_attributes_4, nil)
|
|
69
|
+
local _exp_3 = React.createElement("uilistlayout", _attributes_4)
|
|
70
|
+
local _attributes_5 = {
|
|
71
|
+
key = "Label",
|
|
72
|
+
}
|
|
73
|
+
for _k, _v in styles.label do
|
|
74
|
+
_attributes_5[_k] = _v
|
|
75
|
+
end
|
|
76
|
+
_attributes_5.Text = label
|
|
77
|
+
local _exp_4 = React.createElement("textlabel", _attributes_5)
|
|
78
|
+
local _attributes_6 = {
|
|
79
|
+
key = "Delete",
|
|
80
|
+
}
|
|
81
|
+
for _k, _v in styles.delete do
|
|
82
|
+
_attributes_6[_k] = _v
|
|
83
|
+
end
|
|
84
|
+
_attributes_6.Image = tostring(Icons.Close)
|
|
85
|
+
_attributes_6.Active = disabled ~= true
|
|
86
|
+
_attributes_6.Event = {
|
|
87
|
+
Activated = function()
|
|
88
|
+
if disabled ~= true then
|
|
89
|
+
onDelete()
|
|
90
|
+
end
|
|
91
|
+
end,
|
|
92
|
+
}
|
|
93
|
+
_condition_1 = (React.createElement(React.Fragment, nil, _exp_3, _exp_4, React.createElement("imagebutton", _attributes_6)))
|
|
94
|
+
end
|
|
95
|
+
return React.createElement("textbutton", _attributes, _exp, _exp_1, _exp_2, _condition_1)
|
|
59
96
|
end
|
|
60
97
|
local default = Chip
|
|
61
98
|
return {
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import { ControlSize } from "../../../../theme/index";
|
|
1
2
|
declare const useChipStyles: (props: {
|
|
2
3
|
selected?: boolean;
|
|
3
4
|
disabled?: boolean;
|
|
5
|
+
deletable?: boolean;
|
|
6
|
+
size?: ControlSize;
|
|
4
7
|
}) => import("../../../../theme/index").ClassNameMap<string>;
|
|
5
8
|
export default useChipStyles;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
local TS = _G[script]
|
|
3
3
|
local _theme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme")
|
|
4
4
|
local componentStyles = _theme.componentStyles
|
|
5
|
+
local controlMetrics = _theme.controlMetrics
|
|
5
6
|
local createStyles = _theme.createStyles
|
|
6
7
|
local useChipStyles = componentStyles("Chip", function(theme, _param)
|
|
7
8
|
local selected = _param.selected
|
|
@@ -12,6 +13,15 @@ local useChipStyles = componentStyles("Chip", function(theme, _param)
|
|
|
12
13
|
if disabled == nil then
|
|
13
14
|
disabled = false
|
|
14
15
|
end
|
|
16
|
+
local deletable = _param.deletable
|
|
17
|
+
if deletable == nil then
|
|
18
|
+
deletable = false
|
|
19
|
+
end
|
|
20
|
+
local size = _param.size
|
|
21
|
+
local metrics = controlMetrics(theme.density, size)
|
|
22
|
+
local padY = if size == "small" then 0.25 elseif size == "large" then 0.75 else 0.5
|
|
23
|
+
local padX = if size == "small" then 1 elseif size == "large" then 2 else 1.5
|
|
24
|
+
local deletePx = metrics.icon
|
|
15
25
|
return createStyles({
|
|
16
26
|
root = {
|
|
17
27
|
AutomaticSize = Enum.AutomaticSize.XY,
|
|
@@ -23,22 +33,46 @@ local useChipStyles = componentStyles("Chip", function(theme, _param)
|
|
|
23
33
|
Selectable = not disabled,
|
|
24
34
|
TextColor3 = if disabled then theme.palette.text.disabled else theme.palette.text.primary,
|
|
25
35
|
Font = theme.typography.fontFamilies.default,
|
|
26
|
-
TextSize =
|
|
36
|
+
TextSize = metrics.font,
|
|
27
37
|
},
|
|
28
38
|
padding = {
|
|
29
|
-
PaddingTop = UDim.new(0, theme.padding.calc(
|
|
30
|
-
PaddingBottom = UDim.new(0, theme.padding.calc(
|
|
31
|
-
PaddingLeft = UDim.new(0, theme.padding.calc(
|
|
32
|
-
PaddingRight = UDim.new(0, theme.padding.calc(
|
|
39
|
+
PaddingTop = UDim.new(0, theme.padding.calc(padY)),
|
|
40
|
+
PaddingBottom = UDim.new(0, theme.padding.calc(padY)),
|
|
41
|
+
PaddingLeft = UDim.new(0, theme.padding.calc(padX)),
|
|
42
|
+
PaddingRight = UDim.new(0, theme.padding.calc(if deletable then 0.5 else padX)),
|
|
33
43
|
},
|
|
34
44
|
corner = {
|
|
35
|
-
CornerRadius = UDim.new(
|
|
45
|
+
CornerRadius = UDim.new(theme.shape.pillScale, 0),
|
|
36
46
|
},
|
|
37
47
|
stroke = {
|
|
38
48
|
Color = theme.palette.border,
|
|
39
49
|
ApplyStrokeMode = Enum.ApplyStrokeMode.Border,
|
|
40
50
|
Transparency = if selected then 1 else 0,
|
|
41
51
|
},
|
|
52
|
+
row = {
|
|
53
|
+
FillDirection = Enum.FillDirection.Horizontal,
|
|
54
|
+
VerticalAlignment = Enum.VerticalAlignment.Center,
|
|
55
|
+
SortOrder = Enum.SortOrder.LayoutOrder,
|
|
56
|
+
Padding = UDim.new(0, theme.padding.calc(0.5)),
|
|
57
|
+
},
|
|
58
|
+
label = {
|
|
59
|
+
AutomaticSize = Enum.AutomaticSize.XY,
|
|
60
|
+
Size = UDim2.fromScale(0, 0),
|
|
61
|
+
BackgroundTransparency = 1,
|
|
62
|
+
BorderSizePixel = 0,
|
|
63
|
+
TextColor3 = if disabled then theme.palette.text.disabled else theme.palette.text.primary,
|
|
64
|
+
Font = theme.typography.fontFamilies.default,
|
|
65
|
+
TextSize = metrics.font,
|
|
66
|
+
LayoutOrder = 1,
|
|
67
|
+
},
|
|
68
|
+
delete = {
|
|
69
|
+
Size = UDim2.fromOffset(deletePx, deletePx),
|
|
70
|
+
BackgroundTransparency = 1,
|
|
71
|
+
BorderSizePixel = 0,
|
|
72
|
+
AutoButtonColor = false,
|
|
73
|
+
ImageColor3 = if disabled then theme.palette.text.disabled else theme.palette.text.secondary,
|
|
74
|
+
LayoutOrder = 2,
|
|
75
|
+
},
|
|
42
76
|
})
|
|
43
77
|
end)
|
|
44
78
|
local default = useChipStyles
|
|
@@ -10,6 +10,7 @@ local _motion = TS.import(script, script.Parent.Parent.Parent, "motion")
|
|
|
10
10
|
local arcKeys = _motion.arcKeys
|
|
11
11
|
local loopProperty = _motion.loopProperty
|
|
12
12
|
local progressSpin = _motion.progressSpin
|
|
13
|
+
local spinArcKeys = _motion.spinArcKeys
|
|
13
14
|
local function CircularProgress(props)
|
|
14
15
|
local _binding = props
|
|
15
16
|
local value = _binding.value
|
|
@@ -38,7 +39,17 @@ local function CircularProgress(props)
|
|
|
38
39
|
local shown = if indeterminate then (if motion == "spin" then nil else 0.25) else value
|
|
39
40
|
local _result
|
|
40
41
|
if shown == nil then
|
|
41
|
-
|
|
42
|
+
local _exp = spinArcKeys()
|
|
43
|
+
-- ▼ ReadonlyArray.map ▼
|
|
44
|
+
local _newValue = table.create(#_exp)
|
|
45
|
+
local _callback = function(key)
|
|
46
|
+
return NumberSequenceKeypoint.new(key.time, key.transparency)
|
|
47
|
+
end
|
|
48
|
+
for _k, _v in _exp do
|
|
49
|
+
_newValue[_k] = _callback(_v, _k - 1, _exp)
|
|
50
|
+
end
|
|
51
|
+
-- ▲ ReadonlyArray.map ▲
|
|
52
|
+
_result = NumberSequence.new(_newValue)
|
|
42
53
|
else
|
|
43
54
|
local _exp = arcKeys(shown)
|
|
44
55
|
-- ▼ ReadonlyArray.map ▼
|
|
@@ -91,7 +102,7 @@ local function CircularProgress(props)
|
|
|
91
102
|
}), React.createElement("uistroke", {
|
|
92
103
|
Color = tint,
|
|
93
104
|
Thickness = thickness,
|
|
94
|
-
Transparency = if disabled then 0.
|
|
105
|
+
Transparency = if disabled then 0.85 else 0.82,
|
|
95
106
|
}), React.createElement("uistroke", {
|
|
96
107
|
Color = tint,
|
|
97
108
|
Thickness = thickness,
|