@rbxts/uiblox 0.2.0-alpha.3 → 0.2.0-alpha.30
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 +27 -109
- package/out/hooks/index.d.ts +1 -0
- package/out/hooks/init.luau +3 -0
- package/out/hooks/useBreakpoints.luau +2 -11
- package/out/hooks/viewportObserver.d.ts +10 -0
- package/out/hooks/viewportObserver.luau +75 -0
- package/out/theme/interfaces/theme/Theme.d.ts +15 -0
- package/out/theme/styles/utilities/componentStyles.luau +45 -3
- package/out/theme/styles/utilities/componentTheme.d.ts +15 -0
- package/out/theme/styles/utilities/index.d.ts +2 -0
- package/out/theme/styles/utilities/init.luau +7 -0
- package/out/theme/styles/utilities/resolveStyle.d.ts +10 -2
- package/out/theme/styles/utilities/resolveStyle.luau +7 -3
- package/out/theme/styles/utilities/resolveSx.d.ts +110 -0
- package/out/theme/styles/utilities/resolveSx.luau +479 -0
- package/out/theme/styles/utilities/styleCache.d.ts +2 -0
- package/out/theme/styles/utilities/styleCache.luau +9 -0
- package/out/ui/packages/accordion/components/Accordion.d.ts +2 -0
- package/out/ui/packages/accordion/components/Accordion.luau +46 -30
- package/out/ui/packages/accordion/components/Accordion.styles.d.ts +1 -0
- package/out/ui/packages/accordion/components/Accordion.styles.luau +16 -4
- package/out/ui/packages/accordion/components/accordionOpen.d.ts +1 -0
- package/out/ui/packages/accordion/components/accordionOpen.luau +4 -0
- package/out/ui/packages/alert/components/Alert.d.ts +2 -0
- package/out/ui/packages/alert/components/Alert.luau +48 -42
- package/out/ui/packages/alert/components/Alert.styles.d.ts +2 -0
- package/out/ui/packages/alert/components/Alert.styles.luau +17 -8
- package/out/ui/packages/appBar/components/AppBar.d.ts +2 -1
- package/out/ui/packages/appBar/components/AppBar.luau +47 -36
- package/out/ui/packages/appBar/components/AppBar.styles.d.ts +2 -0
- package/out/ui/packages/appBar/components/AppBar.styles.luau +16 -5
- package/out/ui/packages/assetField/components/AssetField.luau +12 -16
- package/out/ui/packages/autocomplete/components/Autocomplete.luau +8 -0
- package/out/ui/packages/avatar/components/Avatar.d.ts +2 -0
- package/out/ui/packages/avatar/components/Avatar.luau +27 -26
- package/out/ui/packages/avatar/components/Avatar.styles.d.ts +2 -0
- package/out/ui/packages/avatar/components/Avatar.styles.luau +5 -1
- package/out/ui/packages/backdrop/components/Backdrop.d.ts +10 -0
- package/out/ui/packages/backdrop/components/Backdrop.luau +51 -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.d.ts +3 -0
- package/out/ui/packages/badge/components/Badge.luau +32 -24
- package/out/ui/packages/badge/components/Badge.styles.d.ts +5 -1
- package/out/ui/packages/badge/components/Badge.styles.luau +20 -8
- package/out/ui/packages/bottomNavigation/components/BottomNavigation.d.ts +1 -0
- package/out/ui/packages/bottomNavigation/components/BottomNavigation.luau +20 -18
- package/out/ui/packages/bottomNavigation/components/BottomNavigation.styles.d.ts +3 -1
- package/out/ui/packages/bottomNavigation/components/BottomNavigation.styles.luau +6 -2
- package/out/ui/packages/breadcrumbs/components/Breadcrumbs.d.ts +1 -0
- package/out/ui/packages/breadcrumbs/components/Breadcrumbs.luau +67 -40
- 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/BrickColorPicker.luau +12 -16
- package/out/ui/packages/button/components/Button.luau +28 -22
- package/out/ui/packages/card/components/Card.d.ts +3 -1
- package/out/ui/packages/card/components/Card.luau +10 -0
- package/out/ui/packages/cframeEditor/components/CFrameEditor.luau +75 -53
- package/out/ui/packages/cframeEditor/components/CFrameEditor.styles.luau +26 -9
- package/out/ui/packages/checkbox/components/Checkbox.luau +16 -16
- package/out/ui/packages/checkbox/components/checkboxLook.d.ts +1 -1
- package/out/ui/packages/chip/components/Chip.d.ts +6 -1
- package/out/ui/packages/chip/components/Chip.luau +61 -17
- package/out/ui/packages/chip/components/Chip.styles.d.ts +6 -0
- package/out/ui/packages/chip/components/Chip.styles.luau +54 -9
- package/out/ui/packages/circularProgress/components/CircularProgress.luau +29 -18
- package/out/ui/packages/colorPicker/components/ColorPicker.luau +16 -20
- package/out/ui/packages/colorPicker/components/ColorPicker.styles.luau +34 -20
- package/out/ui/packages/colorPicker/components/ColorSequenceEditor.luau +34 -35
- package/out/ui/packages/colorPicker/components/NumberSequenceEditor.luau +65 -62
- package/out/ui/packages/dialog/components/Dialog.d.ts +3 -2
- package/out/ui/packages/dialog/components/Dialog.luau +41 -21
- package/out/ui/packages/divider/components/Divider.d.ts +1 -0
- package/out/ui/packages/divider/components/Divider.luau +52 -17
- package/out/ui/packages/divider/components/Divider.styles.luau +32 -0
- package/out/ui/packages/divider/components/dividerLabel.d.ts +1 -0
- package/out/ui/packages/divider/components/dividerLabel.luau +10 -0
- package/out/ui/packages/drawer/components/Drawer.d.ts +3 -1
- package/out/ui/packages/drawer/components/Drawer.luau +71 -37
- package/out/ui/packages/drawer/components/Drawer.styles.d.ts +3 -1
- package/out/ui/packages/drawer/components/Drawer.styles.luau +3 -2
- package/out/ui/packages/fab/components/Fab.d.ts +3 -0
- package/out/ui/packages/fab/components/Fab.luau +79 -37
- package/out/ui/packages/fab/components/Fab.styles.d.ts +3 -0
- package/out/ui/packages/fab/components/Fab.styles.luau +39 -3
- package/out/ui/packages/fab/components/fabSize.d.ts +1 -0
- package/out/ui/packages/fab/components/fabSize.luau +4 -0
- package/out/ui/packages/fab/index.d.ts +1 -1
- package/out/ui/packages/fab/init.luau +1 -0
- package/out/ui/packages/fontEditor/components/FontEditor.luau +12 -16
- package/out/ui/packages/formText/components/FormHelperText.d.ts +8 -0
- package/out/ui/packages/formText/components/FormHelperText.luau +40 -0
- package/out/ui/packages/formText/components/FormLabel.d.ts +9 -0
- package/out/ui/packages/formText/components/FormLabel.luau +42 -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/gradientEditor/components/GradientEditor.luau +56 -42
- package/out/ui/packages/gradientEditor/components/GradientEditor.styles.luau +37 -4
- package/out/ui/packages/host/components/SxHost.d.ts +18 -0
- package/out/ui/packages/host/components/SxHost.luau +202 -0
- package/out/ui/packages/host/hostPaint.d.ts +11 -0
- package/out/ui/packages/host/hostPaint.luau +33 -0
- package/out/ui/packages/host/hostRules.d.ts +15 -0
- package/out/ui/packages/host/hostRules.luau +92 -0
- package/out/ui/packages/host/index.d.ts +3 -0
- package/out/ui/packages/host/init.luau +13 -0
- package/out/ui/packages/icon/components/Icon.luau +9 -16
- package/out/ui/packages/iconButton/components/IconButton.luau +22 -17
- package/out/ui/packages/iconButton/components/IconButton.styles.luau +3 -0
- package/out/ui/packages/imageList/components/ImageList.d.ts +14 -0
- package/out/ui/packages/imageList/components/ImageList.luau +93 -0
- package/out/ui/packages/imageList/components/ImageList.styles.d.ts +6 -0
- package/out/ui/packages/imageList/components/ImageList.styles.luau +73 -0
- package/out/ui/packages/imageList/components/imageListLayout.d.ts +4 -0
- package/out/ui/packages/imageList/components/imageListLayout.luau +31 -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 +8 -0
- package/out/ui/packages/init.luau +24 -0
- package/out/ui/packages/input/components/Input.d.ts +1 -0
- package/out/ui/packages/input/components/Input.luau +22 -19
- package/out/ui/packages/layout/components/Box.d.ts +11 -0
- package/out/ui/packages/layout/components/Box.luau +40 -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 +45 -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/FlexItem.d.ts +12 -0
- package/out/ui/packages/layout/components/FlexItem.luau +40 -0
- package/out/ui/packages/layout/components/FlexItem.styles.d.ts +8 -0
- package/out/ui/packages/layout/components/FlexItem.styles.luau +66 -0
- package/out/ui/packages/layout/components/Grid.d.ts +5 -1
- package/out/ui/packages/layout/components/Grid.luau +41 -19
- package/out/ui/packages/layout/components/List.luau +9 -16
- package/out/ui/packages/layout/components/Stack.d.ts +14 -0
- package/out/ui/packages/layout/components/Stack.luau +44 -0
- package/out/ui/packages/layout/components/Stack.styles.d.ts +10 -0
- package/out/ui/packages/layout/components/Stack.styles.luau +101 -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/flexItemMode.d.ts +6 -0
- package/out/ui/packages/layout/components/flexItemMode.luau +36 -0
- package/out/ui/packages/layout/components/gridProps.d.ts +3 -0
- package/out/ui/packages/layout/components/gridProps.luau +20 -0
- package/out/ui/packages/layout/components/stackAlign.d.ts +10 -0
- package/out/ui/packages/layout/components/stackAlign.luau +43 -0
- package/out/ui/packages/layout/index.d.ts +14 -0
- package/out/ui/packages/layout/init.luau +5 -0
- package/out/ui/packages/link/components/Link.d.ts +11 -0
- package/out/ui/packages/link/components/Link.luau +80 -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 +4 -1
- package/out/ui/packages/listItem/components/ListItem.luau +44 -4
- package/out/ui/packages/listItem/components/ListItem.styles.d.ts +1 -0
- package/out/ui/packages/listItem/components/ListItem.styles.luau +16 -5
- package/out/ui/packages/loadingStroke/components/LoadingStroke.d.ts +7 -1
- package/out/ui/packages/loadingStroke/components/LoadingStroke.luau +23 -19
- package/out/ui/packages/loadingStroke/components/loadingStrokeSx.d.ts +11 -0
- package/out/ui/packages/loadingStroke/components/loadingStrokeSx.luau +2 -0
- package/out/ui/packages/markdown/components/Markdown.d.ts +6 -0
- package/out/ui/packages/markdown/components/Markdown.luau +221 -0
- package/out/ui/packages/markdown/components/Markdown.styles.d.ts +2 -0
- package/out/ui/packages/markdown/components/Markdown.styles.luau +101 -0
- package/out/ui/packages/markdown/components/MarkdownEditor.d.ts +16 -0
- package/out/ui/packages/markdown/components/MarkdownEditor.luau +315 -0
- package/out/ui/packages/markdown/components/MarkdownEditor.styles.d.ts +6 -0
- package/out/ui/packages/markdown/components/MarkdownEditor.styles.luau +132 -0
- package/out/ui/packages/markdown/htmlToMarkdown.d.ts +2 -0
- package/out/ui/packages/markdown/htmlToMarkdown.luau +350 -0
- package/out/ui/packages/markdown/index.d.ts +8 -0
- package/out/ui/packages/markdown/init.luau +11 -0
- package/out/ui/packages/markdown/parseMarkdown.d.ts +42 -0
- package/out/ui/packages/markdown/parseMarkdown.luau +459 -0
- package/out/ui/packages/menu/components/Menu.d.ts +7 -1
- package/out/ui/packages/menu/components/Menu.luau +68 -26
- package/out/ui/packages/menu/components/Menu.styles.luau +5 -1
- package/out/ui/packages/modal/components/Modal.d.ts +2 -1
- package/out/ui/packages/modal/components/Modal.luau +79 -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 +16 -3
- package/out/ui/packages/numberInput/components/numberValue.d.ts +1 -0
- package/out/ui/packages/numberInput/components/numberValue.luau +45 -0
- package/out/ui/packages/numberRangeEditor/components/NumberRangeEditor.luau +12 -16
- package/out/ui/packages/pagination/components/Pagination.d.ts +6 -1
- package/out/ui/packages/pagination/components/Pagination.luau +62 -38
- package/out/ui/packages/pagination/components/Pagination.styles.d.ts +6 -1
- package/out/ui/packages/pagination/components/Pagination.styles.luau +36 -4
- 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 +4 -2
- package/out/ui/packages/paper/components/Paper.luau +31 -9
- package/out/ui/packages/paper/components/Paper.styles.d.ts +1 -1
- package/out/ui/packages/paper/components/Paper.styles.luau +6 -0
- package/out/ui/packages/physicalPropertiesEditor/components/PhysicalPropertiesEditor.luau +63 -38
- package/out/ui/packages/physicalPropertiesEditor/components/PhysicalPropertiesEditor.styles.luau +21 -7
- package/out/ui/packages/physicalPropertiesEditor/components/physicalParts.d.ts +2 -0
- package/out/ui/packages/physicalPropertiesEditor/components/physicalParts.luau +14 -0
- package/out/ui/packages/popup/components/Popup.d.ts +2 -1
- package/out/ui/packages/popup/components/Popup.luau +35 -18
- package/out/ui/packages/popup/index.d.ts +1 -0
- package/out/ui/packages/popup/init.luau +1 -0
- package/out/ui/packages/preloader/components/Preloader.luau +9 -16
- package/out/ui/packages/progressBar/components/ProgressBar.luau +12 -16
- package/out/ui/packages/radioGroup/components/RadioGroup.d.ts +1 -0
- package/out/ui/packages/radioGroup/components/RadioGroup.luau +16 -18
- 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 +11 -0
- package/out/ui/packages/rating/components/Rating.luau +97 -0
- package/out/ui/packages/rating/components/Rating.styles.d.ts +6 -0
- package/out/ui/packages/rating/components/Rating.styles.luau +44 -0
- package/out/ui/packages/rating/index.d.ts +2 -0
- package/out/ui/packages/rating/init.luau +5 -0
- package/out/ui/packages/rayEditor/components/RayEditor.luau +12 -16
- package/out/ui/packages/rectEditor/components/RectEditor.luau +86 -43
- package/out/ui/packages/rectEditor/components/RectEditor.styles.luau +30 -7
- package/out/ui/packages/select/components/Select.d.ts +5 -0
- package/out/ui/packages/select/components/Select.luau +61 -77
- package/out/ui/packages/select/components/Select.styles.luau +1 -1
- package/out/ui/packages/shadow/components/Shadow.d.ts +2 -1
- package/out/ui/packages/shadow/components/Shadow.luau +39 -17
- package/out/ui/packages/shadow/components/Shadow.styles.luau +7 -2
- package/out/ui/packages/sidebar/components/Sidebar.luau +9 -16
- package/out/ui/packages/skeleton/components/Skeleton.luau +22 -30
- 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 +3 -0
- package/out/ui/packages/slider/components/Slider.luau +47 -19
- package/out/ui/packages/slider/components/Slider.styles.d.ts +2 -0
- package/out/ui/packages/slider/components/Slider.styles.luau +14 -1
- 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/snackbar/components/Snackbar.d.ts +2 -0
- package/out/ui/packages/snackbar/components/Snackbar.luau +5 -0
- package/out/ui/packages/snackbar/components/snackbarAction.d.ts +1 -0
- package/out/ui/packages/snackbar/components/snackbarAction.luau +10 -0
- package/out/ui/packages/speedDial/components/SpeedDial.d.ts +19 -0
- package/out/ui/packages/speedDial/components/SpeedDial.luau +97 -0
- package/out/ui/packages/speedDial/components/SpeedDial.styles.d.ts +5 -0
- package/out/ui/packages/speedDial/components/SpeedDial.styles.luau +31 -0
- package/out/ui/packages/speedDial/index.d.ts +3 -0
- package/out/ui/packages/speedDial/init.luau +5 -0
- package/out/ui/packages/splitPane/components/SplitPane.luau +13 -17
- 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 +872 -881
- package/out/ui/packages/stepper/components/Stepper.d.ts +1 -0
- package/out/ui/packages/stepper/components/Stepper.luau +16 -17
- package/out/ui/packages/stepper/components/Stepper.styles.d.ts +3 -1
- package/out/ui/packages/stepper/components/Stepper.styles.luau +6 -2
- package/out/ui/packages/switch/components/Switch.d.ts +2 -0
- package/out/ui/packages/switch/components/Switch.luau +21 -16
- package/out/ui/packages/switch/components/Switch.styles.d.ts +2 -0
- package/out/ui/packages/switch/components/Switch.styles.luau +6 -1
- package/out/ui/packages/switch/components/switchLook.d.ts +1 -1
- package/out/ui/packages/table/components/Table.d.ts +1 -0
- package/out/ui/packages/table/components/Table.luau +15 -19
- package/out/ui/packages/table/components/Table.styles.d.ts +3 -1
- package/out/ui/packages/table/components/Table.styles.luau +10 -6
- package/out/ui/packages/tabs/components/Tabs.d.ts +3 -0
- package/out/ui/packages/tabs/components/Tabs.luau +24 -19
- package/out/ui/packages/tabs/components/Tabs.styles.d.ts +5 -1
- package/out/ui/packages/tabs/components/Tabs.styles.luau +26 -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.d.ts +2 -0
- package/out/ui/packages/toast/components/Toast.luau +41 -13
- package/out/ui/packages/toast/components/Toast.styles.luau +23 -5
- package/out/ui/packages/toggleButton/components/ToggleButton.d.ts +21 -0
- package/out/ui/packages/toggleButton/components/ToggleButton.luau +129 -0
- package/out/ui/packages/toggleButton/components/ToggleButton.styles.d.ts +9 -0
- package/out/ui/packages/toggleButton/components/ToggleButton.styles.luau +69 -0
- package/out/ui/packages/toggleButton/index.d.ts +2 -0
- package/out/ui/packages/toggleButton/init.luau +7 -0
- package/out/ui/packages/tooltip/components/Tooltip.luau +9 -16
- package/out/ui/packages/treeView/components/TreeView.luau +9 -16
- package/out/ui/packages/typography/components/Typography.luau +13 -14
- package/out/ui/packages/udimEditor/components/UDimEditor.luau +12 -16
- package/out/ui/packages/vectorEditor/components/VectorEditor.luau +12 -16
- package/out/ui/packages/virtualList/components/EmptyListHint.d.ts +7 -0
- package/out/ui/packages/virtualList/components/EmptyListHint.luau +43 -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/components/VirtualList.luau +9 -16
- 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/ui/packages/select/components/selectMotion.d.ts +0 -2
- package/out/ui/packages/select/components/selectMotion.luau +0 -12
|
@@ -6,8 +6,10 @@ local useRef = _react.useRef
|
|
|
6
6
|
local useState = _react.useState
|
|
7
7
|
local cx = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme").cx
|
|
8
8
|
local canActivate = TS.import(script, script.Parent.Parent.Parent, "button", "components", "activation").canActivate
|
|
9
|
+
local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
|
|
9
10
|
local commitNumber = TS.import(script, script.Parent.Parent.Parent, "numberInput", "components", "numberValue").commitNumber
|
|
10
11
|
local useSliderStyles = TS.import(script, script.Parent, "Slider.styles").default
|
|
12
|
+
local sliderMarkValues = TS.import(script, script.Parent, "sliderMarks").sliderMarkValues
|
|
11
13
|
local _sliderNudge = TS.import(script, script.Parent, "sliderNudge")
|
|
12
14
|
local isSliderDrag = _sliderNudge.isSliderDrag
|
|
13
15
|
local isSliderMove = _sliderNudge.isSliderMove
|
|
@@ -23,12 +25,18 @@ local function Slider(props)
|
|
|
23
25
|
local step = _binding.step
|
|
24
26
|
local disabled = _binding.disabled
|
|
25
27
|
local size = _binding.size
|
|
28
|
+
local marks = _binding.marks
|
|
29
|
+
local color = _binding.color
|
|
30
|
+
if color == nil then
|
|
31
|
+
color = "primary"
|
|
32
|
+
end
|
|
26
33
|
local className = _binding.className
|
|
27
34
|
local sx = _binding.sx
|
|
28
35
|
local id = _binding.id
|
|
29
36
|
local ref = _binding.ref
|
|
30
37
|
local _binding_1 = useSliderStyles({
|
|
31
38
|
size = size,
|
|
39
|
+
color = color,
|
|
32
40
|
})
|
|
33
41
|
local root = _binding_1.root
|
|
34
42
|
local track = _binding_1.track
|
|
@@ -36,6 +44,7 @@ local function Slider(props)
|
|
|
36
44
|
local knob = _binding_1.knob
|
|
37
45
|
local corner = _binding_1.corner
|
|
38
46
|
local stroke = _binding_1.stroke
|
|
47
|
+
local mark = _binding_1.mark
|
|
39
48
|
local active = canActivate(disabled)
|
|
40
49
|
local focused, setFocused = useState(false)
|
|
41
50
|
local hovering, setHovering = useState(false)
|
|
@@ -45,6 +54,8 @@ local function Slider(props)
|
|
|
45
54
|
local ratio = if max > min then (math.clamp(value, min, max) - min) / (max - min) else 0
|
|
46
55
|
local faded = disabled == true
|
|
47
56
|
local showFocus = focused and active
|
|
57
|
+
local markValues = sliderMarkValues(min, max, step, marks)
|
|
58
|
+
local span = max - min
|
|
48
59
|
local update = function(rbx, x)
|
|
49
60
|
local width = rbx.AbsoluteSize.X
|
|
50
61
|
if width <= 0 then
|
|
@@ -81,26 +92,24 @@ local function Slider(props)
|
|
|
81
92
|
onCommit(nudged)
|
|
82
93
|
end
|
|
83
94
|
end
|
|
84
|
-
local _attributes = {
|
|
95
|
+
local _attributes = {
|
|
96
|
+
tag = "frame",
|
|
97
|
+
}
|
|
85
98
|
local _condition = id
|
|
86
99
|
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
87
100
|
_condition = "Slider"
|
|
88
101
|
end
|
|
89
102
|
_attributes.key = _condition
|
|
90
|
-
_attributes.
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
for _k, _v in sx do
|
|
101
|
-
_attributes[_k] = _v
|
|
102
|
-
end
|
|
103
|
-
end
|
|
103
|
+
_attributes.hostRef = ref
|
|
104
|
+
_attributes.base = root
|
|
105
|
+
_attributes.className = className
|
|
106
|
+
_attributes.sx = sx
|
|
107
|
+
_attributes.state = {
|
|
108
|
+
disabled = disabled,
|
|
109
|
+
hover = hovering,
|
|
110
|
+
pressed = pressed,
|
|
111
|
+
focused = focused,
|
|
112
|
+
}
|
|
104
113
|
_attributes.Active = active
|
|
105
114
|
_attributes.Selectable = active
|
|
106
115
|
_attributes.BackgroundTransparency = if showFocus then 0.85 else 1
|
|
@@ -127,7 +136,7 @@ local function Slider(props)
|
|
|
127
136
|
update(rbx, input.Position.X)
|
|
128
137
|
end
|
|
129
138
|
end,
|
|
130
|
-
InputEnded = function(
|
|
139
|
+
InputEnded = function(_rbx, input)
|
|
131
140
|
if isSliderDrag(input.UserInputType.Name) then
|
|
132
141
|
finish()
|
|
133
142
|
end
|
|
@@ -165,6 +174,25 @@ local function Slider(props)
|
|
|
165
174
|
setmetatable(_attributes_3, nil)
|
|
166
175
|
_condition_1 = React.createElement("uistroke", _attributes_3)
|
|
167
176
|
end
|
|
177
|
+
-- ▼ ReadonlyArray.map ▼
|
|
178
|
+
local _newValue = table.create(#markValues)
|
|
179
|
+
local _callback = function(markValue, index)
|
|
180
|
+
local markRatio = if span > 0 then (markValue - min) / span else 0
|
|
181
|
+
local _attributes_3 = {
|
|
182
|
+
key = `Mark-{index}`,
|
|
183
|
+
}
|
|
184
|
+
for _k, _v in mark do
|
|
185
|
+
_attributes_3[_k] = _v
|
|
186
|
+
end
|
|
187
|
+
_attributes_3.Position = UDim2.fromScale(markRatio, 0.5)
|
|
188
|
+
_attributes_3.BackgroundTransparency = if faded then 0.7 else 0.35
|
|
189
|
+
return React.createElement("frame", _attributes_3)
|
|
190
|
+
end
|
|
191
|
+
for _k, _v in markValues do
|
|
192
|
+
_newValue[_k] = _callback(_v, _k - 1, markValues)
|
|
193
|
+
end
|
|
194
|
+
-- ▲ ReadonlyArray.map ▲
|
|
195
|
+
local _exp_1 = React.createElement(React.Fragment, nil, _newValue)
|
|
168
196
|
local _attributes_3 = {
|
|
169
197
|
key = "Fill",
|
|
170
198
|
}
|
|
@@ -176,7 +204,7 @@ local function Slider(props)
|
|
|
176
204
|
_attributes_3.Size = UDim2.fromScale(ratio, 1)
|
|
177
205
|
local _attributes_4 = table.clone(corner)
|
|
178
206
|
setmetatable(_attributes_4, nil)
|
|
179
|
-
local
|
|
207
|
+
local _exp_2 = React.createElement("frame", _attributes_3, React.createElement("uicorner", _attributes_4))
|
|
180
208
|
local _attributes_5 = {
|
|
181
209
|
key = "Knob",
|
|
182
210
|
}
|
|
@@ -188,7 +216,7 @@ local function Slider(props)
|
|
|
188
216
|
_attributes_5.Position = UDim2.fromScale(ratio, 0.5)
|
|
189
217
|
local _attributes_6 = table.clone(corner)
|
|
190
218
|
setmetatable(_attributes_6, nil)
|
|
191
|
-
local
|
|
219
|
+
local _exp_3 = React.createElement("uicorner", _attributes_6)
|
|
192
220
|
local _condition_2 = showFocus
|
|
193
221
|
if _condition_2 then
|
|
194
222
|
local _attributes_7 = table.clone(stroke)
|
|
@@ -196,7 +224,7 @@ local function Slider(props)
|
|
|
196
224
|
_attributes_7.Thickness = 1
|
|
197
225
|
_condition_2 = React.createElement("uistroke", _attributes_7)
|
|
198
226
|
end
|
|
199
|
-
return React.createElement(
|
|
227
|
+
return React.createElement(SxHost, _attributes, React.createElement("frame", _attributes_1, _exp, _condition_1, _exp_1, _exp_2, React.createElement("frame", _attributes_5, _exp_3, _condition_2)))
|
|
200
228
|
end
|
|
201
229
|
local default = Slider
|
|
202
230
|
return {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ControlSize } from "../../../../theme/index";
|
|
2
|
+
export type SliderColor = "primary" | "accent";
|
|
2
3
|
export interface SliderStyleProps {
|
|
3
4
|
size?: ControlSize;
|
|
5
|
+
color?: SliderColor;
|
|
4
6
|
}
|
|
5
7
|
declare const useSliderStyles: (props: SliderStyleProps) => import("../../../../theme/index").ClassNameMap<string>;
|
|
6
8
|
export default useSliderStyles;
|
|
@@ -6,7 +6,12 @@ local createStyles = _theme.createStyles
|
|
|
6
6
|
local componentStyles = _theme.componentStyles
|
|
7
7
|
local useSliderStyles = componentStyles("Slider", function(theme, _param)
|
|
8
8
|
local size = _param.size
|
|
9
|
+
local color = _param.color
|
|
10
|
+
if color == nil then
|
|
11
|
+
color = "primary"
|
|
12
|
+
end
|
|
9
13
|
local metrics = controlMetrics(theme.density, size)
|
|
14
|
+
local tone = if color == "accent" then theme.palette.accent.main else theme.palette.primary.main
|
|
10
15
|
return createStyles({
|
|
11
16
|
root = {
|
|
12
17
|
Size = UDim2.new(1, 0, 0, metrics.sliderHeight),
|
|
@@ -21,7 +26,7 @@ local useSliderStyles = componentStyles("Slider", function(theme, _param)
|
|
|
21
26
|
BorderSizePixel = 0,
|
|
22
27
|
},
|
|
23
28
|
fill = {
|
|
24
|
-
BackgroundColor3 =
|
|
29
|
+
BackgroundColor3 = tone,
|
|
25
30
|
BorderSizePixel = 0,
|
|
26
31
|
},
|
|
27
32
|
knob = {
|
|
@@ -39,6 +44,14 @@ local useSliderStyles = componentStyles("Slider", function(theme, _param)
|
|
|
39
44
|
Thickness = 2,
|
|
40
45
|
ApplyStrokeMode = Enum.ApplyStrokeMode.Border,
|
|
41
46
|
},
|
|
47
|
+
mark = {
|
|
48
|
+
Size = UDim2.new(0, 2, 0, metrics.sliderTrack + 4),
|
|
49
|
+
AnchorPoint = Vector2.new(0.5, 0.5),
|
|
50
|
+
BackgroundColor3 = theme.palette.text.secondary,
|
|
51
|
+
BackgroundTransparency = 0.35,
|
|
52
|
+
BorderSizePixel = 0,
|
|
53
|
+
ZIndex = 1,
|
|
54
|
+
},
|
|
42
55
|
})
|
|
43
56
|
end)
|
|
44
57
|
local default = useSliderStyles
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function sliderMarkValues(min: number, max: number, step: number | undefined, marks: boolean | ReadonlyArray<number> | undefined): number[];
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
-- Compiled with roblox-ts v3.0.0
|
|
2
|
+
local function sliderMarkValues(min, max, step, marks)
|
|
3
|
+
if marks == nil or marks == false then
|
|
4
|
+
return {}
|
|
5
|
+
end
|
|
6
|
+
if marks ~= true then
|
|
7
|
+
local out = {}
|
|
8
|
+
for _, value in marks do
|
|
9
|
+
if value >= min and value <= max then
|
|
10
|
+
table.insert(out, value)
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
return out
|
|
14
|
+
end
|
|
15
|
+
local span = max - min
|
|
16
|
+
if span <= 0 then
|
|
17
|
+
return { min }
|
|
18
|
+
end
|
|
19
|
+
local increment = if step ~= nil and step > 0 then step else span
|
|
20
|
+
local out = {}
|
|
21
|
+
local value = min
|
|
22
|
+
local guard = 0
|
|
23
|
+
while value <= max + increment * 1e-9 and guard < 64 do
|
|
24
|
+
local _arg0 = math.clamp(value, min, max)
|
|
25
|
+
table.insert(out, _arg0)
|
|
26
|
+
value += increment
|
|
27
|
+
guard += 1
|
|
28
|
+
end
|
|
29
|
+
if out[#out] ~= max then
|
|
30
|
+
local _max = max
|
|
31
|
+
table.insert(out, _max)
|
|
32
|
+
end
|
|
33
|
+
return out
|
|
34
|
+
end
|
|
35
|
+
return {
|
|
36
|
+
sliderMarkValues = sliderMarkValues,
|
|
37
|
+
}
|
|
@@ -6,6 +6,8 @@ export interface SnackbarProps {
|
|
|
6
6
|
duration?: number;
|
|
7
7
|
variant?: ToastVariants;
|
|
8
8
|
open?: boolean;
|
|
9
|
+
action?: string;
|
|
10
|
+
onAction?: () => void;
|
|
9
11
|
}
|
|
10
12
|
declare function Snackbar(props: CustomizedProps<Frame, SnackbarProps>): JSX.Element | undefined;
|
|
11
13
|
export default Snackbar;
|
|
@@ -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 Toast = TS.import(script, script.Parent.Parent.Parent, "toast").Toast
|
|
5
|
+
local snackbarActionLabel = TS.import(script, script.Parent, "snackbarAction").snackbarActionLabel
|
|
5
6
|
local function Snackbar(props)
|
|
6
7
|
local _binding = props
|
|
7
8
|
local message = _binding.message
|
|
@@ -12,6 +13,8 @@ local function Snackbar(props)
|
|
|
12
13
|
if open == nil then
|
|
13
14
|
open = true
|
|
14
15
|
end
|
|
16
|
+
local action = _binding.action
|
|
17
|
+
local onAction = _binding.onAction
|
|
15
18
|
local className = _binding.className
|
|
16
19
|
local sx = _binding.sx
|
|
17
20
|
local id = _binding.id
|
|
@@ -24,6 +27,8 @@ local function Snackbar(props)
|
|
|
24
27
|
onDismiss = onDismiss,
|
|
25
28
|
duration = duration,
|
|
26
29
|
variant = variant,
|
|
30
|
+
action = snackbarActionLabel(action),
|
|
31
|
+
onAction = onAction,
|
|
27
32
|
className = className,
|
|
28
33
|
sx = sx,
|
|
29
34
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function snackbarActionLabel(action?: string): string | undefined;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CustomizedProps } from "../../../../theme/index";
|
|
2
|
+
import { Icons } from "../../../enums/index";
|
|
3
|
+
import { SpeedDialDirection } from "./SpeedDial.styles";
|
|
4
|
+
export interface SpeedDialAction {
|
|
5
|
+
icon: Icons;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
onClick?: () => void;
|
|
8
|
+
}
|
|
9
|
+
export interface SpeedDialProps {
|
|
10
|
+
open: boolean;
|
|
11
|
+
onOpenChange: (open: boolean) => void;
|
|
12
|
+
actions: SpeedDialAction[];
|
|
13
|
+
icon?: Icons;
|
|
14
|
+
openIcon?: Icons;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
direction?: SpeedDialDirection;
|
|
17
|
+
}
|
|
18
|
+
declare function SpeedDial(props: CustomizedProps<Frame, SpeedDialProps>): JSX.Element;
|
|
19
|
+
export default SpeedDial;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
-- Compiled with roblox-ts v3.0.0
|
|
2
|
+
local TS = _G[script]
|
|
3
|
+
local React = TS.import(script, TS.getModule(script, "@rbxts", "react"))
|
|
4
|
+
local Icons = TS.import(script, script.Parent.Parent.Parent.Parent, "enums").Icons
|
|
5
|
+
local Fab = TS.import(script, script.Parent.Parent.Parent, "fab").Fab
|
|
6
|
+
local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
|
|
7
|
+
local useSpeedDialStyles = TS.import(script, script.Parent, "SpeedDial.styles").default
|
|
8
|
+
local function SpeedDial(props)
|
|
9
|
+
local _binding = props
|
|
10
|
+
local open = _binding.open
|
|
11
|
+
local onOpenChange = _binding.onOpenChange
|
|
12
|
+
local actions = _binding.actions
|
|
13
|
+
local icon = _binding.icon
|
|
14
|
+
if icon == nil then
|
|
15
|
+
icon = Icons.OpenBox
|
|
16
|
+
end
|
|
17
|
+
local openIcon = _binding.openIcon
|
|
18
|
+
if openIcon == nil then
|
|
19
|
+
openIcon = Icons.Close
|
|
20
|
+
end
|
|
21
|
+
local disabled = _binding.disabled
|
|
22
|
+
local direction = _binding.direction
|
|
23
|
+
if direction == nil then
|
|
24
|
+
direction = "up"
|
|
25
|
+
end
|
|
26
|
+
local className = _binding.className
|
|
27
|
+
local sx = _binding.sx
|
|
28
|
+
local id = _binding.id
|
|
29
|
+
local ref = _binding.ref
|
|
30
|
+
local styles = useSpeedDialStyles({
|
|
31
|
+
direction = direction,
|
|
32
|
+
})
|
|
33
|
+
local mainFirst = direction == "down" or direction == "right"
|
|
34
|
+
local mainOrder = if mainFirst then 0 else 1000
|
|
35
|
+
local actionBase = if mainFirst then 1 else 0
|
|
36
|
+
local _attributes = {
|
|
37
|
+
tag = "frame",
|
|
38
|
+
}
|
|
39
|
+
local _condition = id
|
|
40
|
+
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
41
|
+
_condition = "SpeedDial"
|
|
42
|
+
end
|
|
43
|
+
_attributes.key = _condition
|
|
44
|
+
_attributes.hostRef = ref
|
|
45
|
+
_attributes.base = styles.root
|
|
46
|
+
_attributes.className = className
|
|
47
|
+
_attributes.sx = sx
|
|
48
|
+
_attributes.state = {
|
|
49
|
+
disabled = disabled,
|
|
50
|
+
}
|
|
51
|
+
local _attributes_1 = table.clone(styles.list)
|
|
52
|
+
setmetatable(_attributes_1, nil)
|
|
53
|
+
local _exp = React.createElement("uilistlayout", _attributes_1)
|
|
54
|
+
local _condition_1 = open
|
|
55
|
+
if _condition_1 then
|
|
56
|
+
-- ▼ ReadonlyArray.map ▼
|
|
57
|
+
local _newValue = table.create(#actions)
|
|
58
|
+
local _callback = function(action, index)
|
|
59
|
+
return React.createElement(Fab, {
|
|
60
|
+
key = `Action-{index}`,
|
|
61
|
+
icon = action.icon,
|
|
62
|
+
size = "small",
|
|
63
|
+
disabled = disabled == true or action.disabled == true,
|
|
64
|
+
onClick = function()
|
|
65
|
+
local _result = action.onClick
|
|
66
|
+
if _result ~= nil then
|
|
67
|
+
_result()
|
|
68
|
+
end
|
|
69
|
+
onOpenChange(false)
|
|
70
|
+
end,
|
|
71
|
+
className = {
|
|
72
|
+
LayoutOrder = actionBase + index,
|
|
73
|
+
},
|
|
74
|
+
})
|
|
75
|
+
end
|
|
76
|
+
for _k, _v in actions do
|
|
77
|
+
_newValue[_k] = _callback(_v, _k - 1, actions)
|
|
78
|
+
end
|
|
79
|
+
-- ▲ ReadonlyArray.map ▲
|
|
80
|
+
_condition_1 = (React.createElement(React.Fragment, nil, _newValue))
|
|
81
|
+
end
|
|
82
|
+
return React.createElement(SxHost, _attributes, _exp, _condition_1, React.createElement(Fab, {
|
|
83
|
+
key = "Main",
|
|
84
|
+
icon = if open then openIcon else icon,
|
|
85
|
+
disabled = disabled,
|
|
86
|
+
onClick = function()
|
|
87
|
+
return onOpenChange(not open)
|
|
88
|
+
end,
|
|
89
|
+
className = {
|
|
90
|
+
LayoutOrder = mainOrder,
|
|
91
|
+
},
|
|
92
|
+
}))
|
|
93
|
+
end
|
|
94
|
+
local default = SpeedDial
|
|
95
|
+
return {
|
|
96
|
+
default = default,
|
|
97
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 useSpeedDialStyles = componentStyles("SpeedDial", function(theme, _param)
|
|
7
|
+
local direction = _param.direction
|
|
8
|
+
if direction == nil then
|
|
9
|
+
direction = "up"
|
|
10
|
+
end
|
|
11
|
+
local vertical = direction == "up" or direction == "down"
|
|
12
|
+
return createStyles({
|
|
13
|
+
root = {
|
|
14
|
+
AutomaticSize = Enum.AutomaticSize.XY,
|
|
15
|
+
Size = UDim2.fromScale(0, 0),
|
|
16
|
+
BackgroundTransparency = 1,
|
|
17
|
+
BorderSizePixel = 0,
|
|
18
|
+
},
|
|
19
|
+
list = {
|
|
20
|
+
FillDirection = if vertical then Enum.FillDirection.Vertical else Enum.FillDirection.Horizontal,
|
|
21
|
+
HorizontalAlignment = if direction == "left" then Enum.HorizontalAlignment.Right elseif direction == "right" then Enum.HorizontalAlignment.Left else Enum.HorizontalAlignment.Center,
|
|
22
|
+
VerticalAlignment = if direction == "up" then Enum.VerticalAlignment.Bottom elseif direction == "down" then Enum.VerticalAlignment.Top else Enum.VerticalAlignment.Center,
|
|
23
|
+
SortOrder = Enum.SortOrder.LayoutOrder,
|
|
24
|
+
Padding = UDim.new(0, theme.padding.calc(1)),
|
|
25
|
+
},
|
|
26
|
+
})
|
|
27
|
+
end)
|
|
28
|
+
local default = useSpeedDialStyles
|
|
29
|
+
return {
|
|
30
|
+
default = default,
|
|
31
|
+
}
|
|
@@ -7,6 +7,7 @@ local useRef = _react.useRef
|
|
|
7
7
|
local useState = _react.useState
|
|
8
8
|
local useTheme = TS.import(script, script.Parent.Parent.Parent.Parent.Parent, "theme").useTheme
|
|
9
9
|
local canActivate = TS.import(script, script.Parent.Parent.Parent, "button", "components", "activation").canActivate
|
|
10
|
+
local SxHost = TS.import(script, script.Parent.Parent.Parent, "host").SxHost
|
|
10
11
|
local useSplitPaneStyles = TS.import(script, script.Parent, "SplitPane.styles").default
|
|
11
12
|
local _splitLook = TS.import(script, script.Parent, "splitLook")
|
|
12
13
|
local splitHitTransparency = _splitLook.splitHitTransparency
|
|
@@ -79,26 +80,21 @@ local function SplitPane(props)
|
|
|
79
80
|
return connection:Disconnect()
|
|
80
81
|
end
|
|
81
82
|
end, { body, vertical })
|
|
82
|
-
local _attributes = {
|
|
83
|
+
local _attributes = {
|
|
84
|
+
tag = "frame",
|
|
85
|
+
}
|
|
83
86
|
local _condition = id
|
|
84
87
|
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
85
88
|
_condition = "SplitPane"
|
|
86
89
|
end
|
|
87
90
|
_attributes.key = _condition
|
|
88
|
-
_attributes.
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
end
|
|
96
|
-
end
|
|
97
|
-
if sx then
|
|
98
|
-
for _k, _v in sx do
|
|
99
|
-
_attributes[_k] = _v
|
|
100
|
-
end
|
|
101
|
-
end
|
|
91
|
+
_attributes.hostRef = ref
|
|
92
|
+
_attributes.base = styles.root
|
|
93
|
+
_attributes.className = className
|
|
94
|
+
_attributes.sx = sx
|
|
95
|
+
_attributes.state = {
|
|
96
|
+
disabled = disabled,
|
|
97
|
+
}
|
|
102
98
|
local _attributes_1 = {
|
|
103
99
|
key = "Body",
|
|
104
100
|
ref = setBody,
|
|
@@ -184,7 +180,7 @@ local function SplitPane(props)
|
|
|
184
180
|
_newValue[_k] = _callback(_v, _k - 1, _exp_3)
|
|
185
181
|
end
|
|
186
182
|
-- ▲ ReadonlyArray.map ▲
|
|
187
|
-
local _exp_4 = React.createElement("frame", _attributes_3, _exp_1, React.createElement("frame", _attributes_5, _exp_2, _newValue))
|
|
183
|
+
local _exp_4 = React.createElement("frame", _attributes_3, _exp_1, React.createElement("frame", _attributes_5, _exp_2, React.createElement(React.Fragment, nil, _newValue)))
|
|
188
184
|
local _attributes_6 = {
|
|
189
185
|
key = "Second",
|
|
190
186
|
}
|
|
@@ -233,7 +229,7 @@ local function SplitPane(props)
|
|
|
233
229
|
}
|
|
234
230
|
_condition_1 = (React.createElement("frame", _attributes_7))
|
|
235
231
|
end
|
|
236
|
-
return React.createElement(
|
|
232
|
+
return React.createElement(SxHost, _attributes, React.createElement("frame", _attributes_1, _exp, _exp_4, _exp_5, _condition_1))
|
|
237
233
|
end
|
|
238
234
|
local default = SplitPane
|
|
239
235
|
return {
|
|
@@ -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.
|
|
3
|
+
export declare function splitRuleTransparency(pointer: SplitPointer, disabled?: boolean): 0.25 | 0.7 | 0.55 | 0.35;
|
|
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;
|