@rbxts/uiblox 0.1.53 → 0.2.0-alpha.1
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 +107 -28
- package/out/foundation/guard.d.ts +3 -0
- package/out/foundation/guard.luau +23 -0
- package/out/foundation/index.d.ts +1 -0
- package/out/foundation/init.luau +8 -0
- package/out/hooks/breakpoints.d.ts +10 -0
- package/out/hooks/breakpoints.luau +60 -0
- package/out/hooks/index.d.ts +4 -0
- package/out/hooks/init.luau +10 -0
- package/out/hooks/useBreakpoints.d.ts +6 -0
- package/out/hooks/useBreakpoints.luau +39 -0
- package/out/hooks/useReducedMotion.d.ts +1 -0
- package/out/hooks/useReducedMotion.luau +12 -0
- package/out/index.d.ts +3 -0
- package/out/init.luau +9 -0
- package/out/interaction/index.d.ts +4 -0
- package/out/interaction/init.luau +9 -0
- package/out/interaction/pointerRoute.d.ts +6 -0
- package/out/interaction/pointerRoute.luau +35 -0
- package/out/interaction/usePointer.d.ts +11 -0
- package/out/interaction/usePointer.luau +99 -0
- package/out/theme/constants/ColorConstants.d.ts +0 -3
- package/out/theme/constants/ColorConstants.luau +0 -96
- package/out/theme/constants/NumberConstants.d.ts +1 -1
- package/out/theme/constants/NumberConstants.luau +3 -4
- package/out/theme/context/ThemeProvider.d.ts +3 -0
- package/out/theme/context/ThemeProvider.luau +15 -8
- package/out/theme/context/themeScope.d.ts +5 -0
- package/out/theme/context/themeScope.luau +7 -0
- package/out/theme/hooks/useTheme.luau +15 -14
- package/out/theme/interfaces/density/controlMetrics.d.ts +21 -0
- package/out/theme/interfaces/density/controlMetrics.luau +67 -0
- package/out/theme/interfaces/density/index.d.ts +1 -0
- package/out/theme/interfaces/density/init.luau +7 -0
- package/out/theme/interfaces/index.d.ts +1 -0
- package/out/theme/interfaces/init.luau +3 -0
- package/out/theme/interfaces/palette/Palette.d.ts +39 -18
- package/out/theme/interfaces/palette/colors/index.d.ts +0 -1
- package/out/theme/interfaces/palette/index.d.ts +1 -0
- package/out/theme/interfaces/theme/Theme.d.ts +13 -0
- package/out/theme/interfaces/theme/ThemeConstants.d.ts +0 -18
- package/out/theme/interfaces/typography/FontSizes.d.ts +1 -1
- package/out/theme/interfaces/typography/FontSizes.luau +7 -7
- package/out/theme/styles/index.d.ts +1 -2
- package/out/theme/styles/init.luau +3 -1
- package/out/theme/styles/types/index.d.ts +0 -1
- package/out/theme/styles/utilities/classNames.d.ts +3 -2
- package/out/theme/styles/utilities/classNames.luau +7 -173
- package/out/theme/styles/utilities/componentStyles.d.ts +7 -0
- package/out/theme/styles/utilities/componentStyles.luau +31 -0
- package/out/theme/styles/utilities/componentTheme.d.ts +20 -0
- package/out/theme/styles/utilities/componentTheme.luau +53 -0
- package/out/theme/styles/utilities/createStyles.d.ts +1 -2
- package/out/theme/styles/utilities/index.d.ts +5 -1
- package/out/theme/styles/utilities/init.luau +9 -1
- package/out/theme/styles/utilities/makeStyles.luau +14 -15
- package/out/theme/styles/utilities/resolveStyle.d.ts +32 -0
- package/out/theme/styles/utilities/resolveStyle.luau +66 -0
- package/out/theme/styles/utilities/styleCache.d.ts +2 -0
- package/out/theme/styles/utilities/styleCache.luau +68 -0
- package/out/theme/styles/utilities/variants.d.ts +19 -0
- package/out/theme/styles/utilities/variants.luau +59 -0
- package/out/theme/themes/DarkTheme.luau +4 -57
- package/out/theme/themes/LightTheme.luau +4 -57
- package/out/theme/themes/createPalette.d.ts +3 -0
- package/out/theme/themes/createPalette.luau +111 -0
- package/out/theme/themes/index.d.ts +1 -0
- package/out/theme/themes/init.luau +3 -0
- package/out/theme/types/types.d.ts +1 -0
- package/out/theme/utilites/colorMath.d.ts +8 -0
- package/out/theme/utilites/colorMath.luau +35 -0
- package/out/theme/utilites/index.d.ts +1 -0
- package/out/theme/utilites/init.luau +6 -0
- package/out/ui/enums/Icons.d.ts +5 -1
- package/out/ui/enums/Icons.luau +4 -0
- package/out/ui/index.d.ts +12 -0
- package/out/ui/init.luau +5 -0
- package/out/ui/packages/accordion/components/Accordion.d.ts +11 -0
- package/out/ui/packages/accordion/components/Accordion.luau +93 -0
- package/out/ui/packages/accordion/components/Accordion.styles.d.ts +4 -0
- package/out/ui/packages/accordion/components/Accordion.styles.luau +65 -0
- package/out/ui/packages/accordion/components/accordionOpen.d.ts +1 -0
- package/out/ui/packages/accordion/components/accordionOpen.luau +10 -0
- package/out/ui/packages/accordion/index.d.ts +2 -0
- package/out/ui/packages/accordion/init.luau +5 -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/assetField/components/AssetField.d.ts +10 -0
- package/out/ui/packages/assetField/components/AssetField.luau +75 -0
- package/out/ui/packages/assetField/components/AssetField.styles.d.ts +2 -0
- package/out/ui/packages/assetField/components/AssetField.styles.luau +33 -0
- package/out/ui/packages/assetField/components/assetPreviewUri.d.ts +1 -0
- package/out/ui/packages/assetField/components/assetPreviewUri.luau +25 -0
- package/out/ui/packages/assetField/index.d.ts +2 -0
- package/out/ui/packages/assetField/init.luau +5 -0
- package/out/ui/packages/autocomplete/components/Autocomplete.d.ts +5 -0
- package/out/ui/packages/autocomplete/components/Autocomplete.luau +47 -0
- package/out/ui/packages/autocomplete/components/autocompleteSearchable.d.ts +1 -0
- package/out/ui/packages/autocomplete/components/autocompleteSearchable.luau +7 -0
- package/out/ui/packages/autocomplete/index.d.ts +2 -0
- package/out/ui/packages/autocomplete/init.luau +5 -0
- package/out/ui/packages/avatar/components/Avatar.d.ts +8 -0
- package/out/ui/packages/avatar/components/Avatar.luau +69 -0
- package/out/ui/packages/avatar/components/Avatar.styles.d.ts +4 -0
- package/out/ui/packages/avatar/components/Avatar.styles.luau +39 -0
- package/out/ui/packages/avatar/components/avatarText.d.ts +1 -0
- package/out/ui/packages/avatar/components/avatarText.luau +17 -0
- package/out/ui/packages/avatar/index.d.ts +3 -0
- package/out/ui/packages/avatar/init.luau +6 -0
- package/out/ui/packages/badge/components/Badge.d.ts +10 -0
- package/out/ui/packages/badge/components/Badge.luau +69 -0
- package/out/ui/packages/badge/components/Badge.styles.d.ts +2 -0
- package/out/ui/packages/badge/components/Badge.styles.luau +38 -0
- package/out/ui/packages/badge/components/badgeValue.d.ts +1 -0
- package/out/ui/packages/badge/components/badgeValue.luau +7 -0
- package/out/ui/packages/badge/index.d.ts +3 -0
- package/out/ui/packages/badge/init.luau +6 -0
- 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 +11 -0
- package/out/ui/packages/breadcrumbs/components/Breadcrumbs.luau +82 -0
- package/out/ui/packages/breadcrumbs/components/Breadcrumbs.styles.d.ts +2 -0
- package/out/ui/packages/breadcrumbs/components/Breadcrumbs.styles.luau +47 -0
- package/out/ui/packages/breadcrumbs/components/breadcrumbItems.d.ts +1 -0
- package/out/ui/packages/breadcrumbs/components/breadcrumbItems.luau +7 -0
- package/out/ui/packages/breadcrumbs/index.d.ts +2 -0
- package/out/ui/packages/breadcrumbs/init.luau +5 -0
- package/out/ui/packages/brickColorPicker/components/BrickColorPicker.d.ts +9 -0
- package/out/ui/packages/brickColorPicker/components/BrickColorPicker.luau +234 -0
- package/out/ui/packages/brickColorPicker/components/BrickColorPicker.styles.d.ts +2 -0
- package/out/ui/packages/brickColorPicker/components/BrickColorPicker.styles.luau +98 -0
- package/out/ui/packages/brickColorPicker/components/brickColorCatalog.d.ts +1 -0
- package/out/ui/packages/brickColorPicker/components/brickColorCatalog.luau +26 -0
- package/out/ui/packages/brickColorPicker/components/brickColorFilter.d.ts +2 -0
- package/out/ui/packages/brickColorPicker/components/brickColorFilter.luau +26 -0
- package/out/ui/packages/brickColorPicker/index.d.ts +3 -0
- package/out/ui/packages/brickColorPicker/init.luau +8 -0
- package/out/ui/packages/button/components/Button.d.ts +4 -0
- package/out/ui/packages/button/components/Button.luau +86 -34
- package/out/ui/packages/button/components/Button.styles.luau +15 -35
- package/out/ui/packages/button/components/activation.d.ts +1 -0
- package/out/ui/packages/button/components/activation.luau +7 -0
- package/out/ui/packages/button/components/buttonLook.d.ts +12 -0
- package/out/ui/packages/button/components/buttonLook.luau +55 -0
- package/out/ui/packages/button/types/ButtonSize.d.ts +1 -1
- package/out/ui/packages/card/components/Card.d.ts +11 -0
- package/out/ui/packages/card/components/Card.luau +74 -0
- package/out/ui/packages/card/components/Card.styles.d.ts +2 -0
- package/out/ui/packages/card/components/Card.styles.luau +66 -0
- package/out/ui/packages/card/index.d.ts +2 -0
- package/out/ui/packages/card/init.luau +5 -0
- package/out/ui/packages/cframeEditor/components/CFrameEditor.d.ts +8 -0
- package/out/ui/packages/cframeEditor/components/CFrameEditor.luau +89 -0
- package/out/ui/packages/cframeEditor/components/CFrameEditor.styles.d.ts +2 -0
- package/out/ui/packages/cframeEditor/components/CFrameEditor.styles.luau +46 -0
- package/out/ui/packages/cframeEditor/components/cframeValue.d.ts +3 -0
- package/out/ui/packages/cframeEditor/components/cframeValue.luau +15 -0
- package/out/ui/packages/cframeEditor/index.d.ts +2 -0
- package/out/ui/packages/cframeEditor/init.luau +5 -0
- package/out/ui/packages/checkbox/components/Checkbox.d.ts +11 -0
- package/out/ui/packages/checkbox/components/Checkbox.luau +136 -0
- package/out/ui/packages/checkbox/components/Checkbox.styles.d.ts +6 -0
- package/out/ui/packages/checkbox/components/Checkbox.styles.luau +69 -0
- package/out/ui/packages/checkbox/components/checkboxLook.d.ts +5 -0
- package/out/ui/packages/checkbox/components/checkboxLook.luau +52 -0
- package/out/ui/packages/checkbox/components/nextChecked.d.ts +1 -0
- package/out/ui/packages/checkbox/components/nextChecked.luau +7 -0
- package/out/ui/packages/checkbox/index.d.ts +2 -0
- package/out/ui/packages/checkbox/init.luau +5 -0
- package/out/ui/packages/chip/components/Chip.d.ts +9 -0
- package/out/ui/packages/chip/components/Chip.luau +63 -0
- package/out/ui/packages/chip/components/Chip.styles.d.ts +5 -0
- package/out/ui/packages/chip/components/Chip.styles.luau +47 -0
- package/out/ui/packages/chip/index.d.ts +2 -0
- package/out/ui/packages/chip/init.luau +5 -0
- package/out/ui/packages/circularProgress/components/CircularProgress.d.ts +11 -0
- package/out/ui/packages/circularProgress/components/CircularProgress.luau +109 -0
- package/out/ui/packages/circularProgress/index.d.ts +2 -0
- package/out/ui/packages/circularProgress/init.luau +5 -0
- package/out/ui/packages/colorPicker/components/ColorPicker.d.ts +8 -0
- package/out/ui/packages/colorPicker/components/ColorPicker.luau +512 -0
- package/out/ui/packages/colorPicker/components/ColorPicker.styles.d.ts +2 -0
- package/out/ui/packages/colorPicker/components/ColorPicker.styles.luau +145 -0
- package/out/ui/packages/colorPicker/components/ColorSequenceEditor.d.ts +8 -0
- package/out/ui/packages/colorPicker/components/ColorSequenceEditor.luau +190 -0
- package/out/ui/packages/colorPicker/components/NumberSequenceEditor.d.ts +8 -0
- package/out/ui/packages/colorPicker/components/NumberSequenceEditor.luau +240 -0
- package/out/ui/packages/colorPicker/components/colorValue.d.ts +22 -0
- package/out/ui/packages/colorPicker/components/colorValue.luau +157 -0
- package/out/ui/packages/colorPicker/components/sequenceValue.d.ts +26 -0
- package/out/ui/packages/colorPicker/components/sequenceValue.luau +307 -0
- package/out/ui/packages/colorPicker/index.d.ts +11 -0
- package/out/ui/packages/colorPicker/init.luau +37 -0
- package/out/ui/packages/dialog/components/Dialog.d.ts +11 -0
- package/out/ui/packages/dialog/components/Dialog.luau +56 -0
- package/out/ui/packages/dialog/components/Dialog.styles.d.ts +2 -0
- package/out/ui/packages/dialog/components/Dialog.styles.luau +55 -0
- package/out/ui/packages/dialog/index.d.ts +2 -0
- package/out/ui/packages/dialog/init.luau +5 -0
- package/out/ui/packages/divider/components/Divider.luau +6 -0
- package/out/ui/packages/divider/components/Divider.styles.luau +4 -4
- package/out/ui/packages/drawer/components/Drawer.d.ts +11 -0
- package/out/ui/packages/drawer/components/Drawer.luau +77 -0
- package/out/ui/packages/drawer/components/Drawer.styles.d.ts +2 -0
- package/out/ui/packages/drawer/components/Drawer.styles.luau +40 -0
- package/out/ui/packages/drawer/components/drawerPlacement.d.ts +2 -0
- package/out/ui/packages/drawer/components/drawerPlacement.luau +7 -0
- package/out/ui/packages/drawer/index.d.ts +3 -0
- package/out/ui/packages/drawer/init.luau +5 -0
- package/out/ui/packages/enumPicker/components/EnumPicker.d.ts +11 -0
- package/out/ui/packages/enumPicker/components/EnumPicker.luau +42 -0
- package/out/ui/packages/enumPicker/components/enumOptions.d.ts +5 -0
- package/out/ui/packages/enumPicker/components/enumOptions.luau +28 -0
- package/out/ui/packages/enumPicker/index.d.ts +2 -0
- package/out/ui/packages/enumPicker/init.luau +5 -0
- package/out/ui/packages/fab/components/Fab.d.ts +13 -0
- package/out/ui/packages/fab/components/Fab.luau +128 -0
- package/out/ui/packages/fab/components/Fab.styles.d.ts +7 -0
- package/out/ui/packages/fab/components/Fab.styles.luau +40 -0
- package/out/ui/packages/fab/components/fabSize.d.ts +3 -0
- package/out/ui/packages/fab/components/fabSize.luau +29 -0
- package/out/ui/packages/fab/index.d.ts +3 -0
- package/out/ui/packages/fab/init.luau +8 -0
- package/out/ui/packages/fontEditor/components/FontEditor.d.ts +8 -0
- package/out/ui/packages/fontEditor/components/FontEditor.luau +223 -0
- package/out/ui/packages/fontEditor/components/FontEditor.styles.d.ts +2 -0
- package/out/ui/packages/fontEditor/components/FontEditor.styles.luau +56 -0
- package/out/ui/packages/fontEditor/components/fontValue.d.ts +10 -0
- package/out/ui/packages/fontEditor/components/fontValue.luau +81 -0
- package/out/ui/packages/fontEditor/index.d.ts +4 -0
- package/out/ui/packages/fontEditor/init.luau +10 -0
- package/out/ui/packages/gradientEditor/components/GradientEditor.d.ts +10 -0
- package/out/ui/packages/gradientEditor/components/GradientEditor.luau +156 -0
- package/out/ui/packages/gradientEditor/components/GradientEditor.styles.d.ts +2 -0
- package/out/ui/packages/gradientEditor/components/GradientEditor.styles.luau +37 -0
- package/out/ui/packages/gradientEditor/components/gradientPatch.d.ts +8 -0
- package/out/ui/packages/gradientEditor/components/gradientPatch.luau +17 -0
- package/out/ui/packages/gradientEditor/components/gradientValue.d.ts +9 -0
- package/out/ui/packages/gradientEditor/components/gradientValue.luau +23 -0
- package/out/ui/packages/gradientEditor/index.d.ts +2 -0
- package/out/ui/packages/gradientEditor/init.luau +5 -0
- package/out/ui/packages/icon/components/Icon.luau +6 -0
- package/out/ui/packages/icon/components/Icon.styles.luau +7 -7
- package/out/ui/packages/iconButton/components/IconButton.d.ts +3 -0
- package/out/ui/packages/iconButton/components/IconButton.luau +53 -5
- package/out/ui/packages/iconButton/components/IconButton.styles.luau +7 -7
- package/out/ui/packages/index.d.ts +49 -0
- package/out/ui/packages/init.luau +147 -0
- package/out/ui/packages/input/components/Input.d.ts +8 -1
- package/out/ui/packages/input/components/Input.luau +180 -60
- package/out/ui/packages/input/components/Input.styles.d.ts +3 -1
- package/out/ui/packages/input/components/Input.styles.luau +79 -53
- package/out/ui/packages/input/components/inputDraft.d.ts +1 -0
- package/out/ui/packages/input/components/inputDraft.luau +17 -0
- package/out/ui/packages/input/components/inputInsets.d.ts +4 -0
- package/out/ui/packages/input/components/inputInsets.luau +10 -0
- package/out/ui/packages/layout/components/Grid.luau +8 -2
- package/out/ui/packages/layout/components/List.luau +8 -2
- package/out/ui/packages/listItem/components/ListItem.d.ts +9 -0
- package/out/ui/packages/listItem/components/ListItem.luau +67 -0
- package/out/ui/packages/listItem/components/ListItem.styles.d.ts +5 -0
- package/out/ui/packages/listItem/components/ListItem.styles.luau +64 -0
- package/out/ui/packages/listItem/index.d.ts +2 -0
- package/out/ui/packages/listItem/init.luau +5 -0
- package/out/ui/packages/loadingStroke/components/LoadingStroke.luau +11 -2
- package/out/ui/packages/menu/components/Menu.d.ts +14 -0
- package/out/ui/packages/menu/components/Menu.luau +60 -0
- package/out/ui/packages/menu/components/Menu.styles.d.ts +2 -0
- package/out/ui/packages/menu/components/Menu.styles.luau +26 -0
- package/out/ui/packages/menu/index.d.ts +2 -0
- package/out/ui/packages/menu/init.luau +5 -0
- package/out/ui/packages/modal/components/Modal.d.ts +9 -0
- package/out/ui/packages/modal/components/Modal.luau +97 -0
- package/out/ui/packages/modal/components/Modal.styles.d.ts +2 -0
- package/out/ui/packages/modal/components/Modal.styles.luau +47 -0
- package/out/ui/packages/modal/components/dismissInput.d.ts +1 -0
- package/out/ui/packages/modal/components/dismissInput.luau +8 -0
- package/out/ui/packages/modal/components/focusTrap.d.ts +2 -0
- package/out/ui/packages/modal/components/focusTrap.luau +22 -0
- package/out/ui/packages/modal/index.d.ts +2 -0
- package/out/ui/packages/modal/init.luau +5 -0
- package/out/ui/packages/motion/duration.d.ts +2 -0
- package/out/ui/packages/motion/duration.luau +17 -0
- package/out/ui/packages/motion/index.d.ts +5 -0
- package/out/ui/packages/motion/init.luau +16 -0
- package/out/ui/packages/motion/loop.d.ts +1 -0
- package/out/ui/packages/motion/loop.luau +18 -0
- package/out/ui/packages/motion/play.d.ts +1 -0
- package/out/ui/packages/motion/play.luau +23 -0
- package/out/ui/packages/motion/resolveReduced.d.ts +1 -0
- package/out/ui/packages/motion/resolveReduced.luau +10 -0
- package/out/ui/packages/motion/unit.d.ts +8 -0
- package/out/ui/packages/motion/unit.luau +80 -0
- package/out/ui/packages/numberInput/components/NumberInput.d.ts +16 -0
- package/out/ui/packages/numberInput/components/NumberInput.luau +48 -0
- package/out/ui/packages/numberInput/components/numberValue.d.ts +2 -0
- package/out/ui/packages/numberInput/components/numberValue.luau +29 -0
- package/out/ui/packages/numberInput/index.d.ts +2 -0
- package/out/ui/packages/numberInput/init.luau +5 -0
- package/out/ui/packages/numberRangeEditor/components/NumberRangeEditor.d.ts +8 -0
- package/out/ui/packages/numberRangeEditor/components/NumberRangeEditor.luau +96 -0
- package/out/ui/packages/numberRangeEditor/components/NumberRangeEditor.styles.d.ts +2 -0
- package/out/ui/packages/numberRangeEditor/components/NumberRangeEditor.styles.luau +41 -0
- package/out/ui/packages/numberRangeEditor/components/numberRangeValue.d.ts +4 -0
- package/out/ui/packages/numberRangeEditor/components/numberRangeValue.luau +16 -0
- package/out/ui/packages/numberRangeEditor/index.d.ts +2 -0
- package/out/ui/packages/numberRangeEditor/init.luau +5 -0
- package/out/ui/packages/pagination/components/Pagination.d.ts +9 -0
- package/out/ui/packages/pagination/components/Pagination.luau +72 -0
- package/out/ui/packages/pagination/components/Pagination.styles.d.ts +2 -0
- package/out/ui/packages/pagination/components/Pagination.styles.luau +39 -0
- package/out/ui/packages/pagination/components/pageRange.d.ts +1 -0
- package/out/ui/packages/pagination/components/pageRange.luau +24 -0
- package/out/ui/packages/pagination/index.d.ts +2 -0
- package/out/ui/packages/pagination/init.luau +5 -0
- package/out/ui/packages/paper/components/Paper.d.ts +8 -0
- package/out/ui/packages/paper/components/Paper.luau +31 -0
- package/out/ui/packages/paper/components/Paper.styles.d.ts +4 -0
- package/out/ui/packages/paper/components/Paper.styles.luau +32 -0
- package/out/ui/packages/paper/index.d.ts +2 -0
- package/out/ui/packages/paper/init.luau +5 -0
- package/out/ui/packages/physicalPropertiesEditor/components/PhysicalPropertiesEditor.d.ts +8 -0
- package/out/ui/packages/physicalPropertiesEditor/components/PhysicalPropertiesEditor.luau +85 -0
- package/out/ui/packages/physicalPropertiesEditor/components/PhysicalPropertiesEditor.styles.d.ts +2 -0
- package/out/ui/packages/physicalPropertiesEditor/components/PhysicalPropertiesEditor.styles.luau +46 -0
- package/out/ui/packages/physicalPropertiesEditor/components/physicalParts.d.ts +3 -0
- package/out/ui/packages/physicalPropertiesEditor/components/physicalParts.luau +14 -0
- package/out/ui/packages/physicalPropertiesEditor/index.d.ts +2 -0
- package/out/ui/packages/physicalPropertiesEditor/init.luau +5 -0
- package/out/ui/packages/popup/components/Popup.d.ts +13 -0
- package/out/ui/packages/popup/components/Popup.luau +131 -0
- package/out/ui/packages/popup/components/Portal.d.ts +7 -0
- package/out/ui/packages/popup/components/Portal.luau +15 -0
- package/out/ui/packages/popup/components/placement.d.ts +9 -0
- package/out/ui/packages/popup/components/placement.luau +41 -0
- package/out/ui/packages/popup/components/portalTarget.d.ts +1 -0
- package/out/ui/packages/popup/components/portalTarget.luau +13 -0
- package/out/ui/packages/popup/index.d.ts +4 -0
- package/out/ui/packages/popup/init.luau +6 -0
- package/out/ui/packages/preloader/components/Preloader.luau +6 -0
- package/out/ui/packages/preloader/components/Preloader.styles.luau +3 -3
- package/out/ui/packages/progressBar/components/ProgressBar.d.ts +8 -1
- package/out/ui/packages/progressBar/components/ProgressBar.luau +61 -11
- package/out/ui/packages/progressBar/components/ProgressBar.styles.luau +2 -2
- package/out/ui/packages/progressBar/index.d.ts +2 -3
- package/out/ui/packages/progressBar/init.luau +3 -4
- package/out/ui/packages/radioGroup/components/RadioGroup.d.ts +16 -0
- package/out/ui/packages/radioGroup/components/RadioGroup.luau +112 -0
- package/out/ui/packages/radioGroup/components/RadioGroup.styles.d.ts +6 -0
- package/out/ui/packages/radioGroup/components/RadioGroup.styles.luau +66 -0
- package/out/ui/packages/radioGroup/index.d.ts +2 -0
- package/out/ui/packages/radioGroup/init.luau +5 -0
- package/out/ui/packages/rayEditor/components/RayEditor.d.ts +8 -0
- package/out/ui/packages/rayEditor/components/RayEditor.luau +83 -0
- package/out/ui/packages/rayEditor/components/RayEditor.styles.d.ts +2 -0
- package/out/ui/packages/rayEditor/components/RayEditor.styles.luau +37 -0
- package/out/ui/packages/rayEditor/components/rayParts.d.ts +1 -0
- package/out/ui/packages/rayEditor/components/rayParts.luau +10 -0
- package/out/ui/packages/rayEditor/index.d.ts +2 -0
- package/out/ui/packages/rayEditor/init.luau +5 -0
- package/out/ui/packages/rectEditor/components/RectEditor.d.ts +8 -0
- package/out/ui/packages/rectEditor/components/RectEditor.luau +85 -0
- package/out/ui/packages/rectEditor/components/RectEditor.styles.d.ts +2 -0
- package/out/ui/packages/rectEditor/components/RectEditor.styles.luau +46 -0
- package/out/ui/packages/rectEditor/components/rectValue.d.ts +3 -0
- package/out/ui/packages/rectEditor/components/rectValue.luau +14 -0
- package/out/ui/packages/rectEditor/index.d.ts +2 -0
- package/out/ui/packages/rectEditor/init.luau +5 -0
- package/out/ui/packages/scroll/dragScroll.d.ts +8 -0
- package/out/ui/packages/scroll/dragScroll.luau +51 -0
- package/out/ui/packages/scroll/index.d.ts +2 -0
- package/out/ui/packages/scroll/init.luau +5 -0
- package/out/ui/packages/scroll/useDragScroll.d.ts +5 -0
- package/out/ui/packages/scroll/useDragScroll.luau +127 -0
- package/out/ui/packages/select/components/Select.d.ts +16 -0
- package/out/ui/packages/select/components/Select.luau +455 -0
- package/out/ui/packages/select/components/Select.styles.d.ts +6 -0
- package/out/ui/packages/select/components/Select.styles.luau +104 -0
- package/out/ui/packages/select/components/optionLabel.d.ts +1 -0
- package/out/ui/packages/select/components/optionLabel.luau +7 -0
- package/out/ui/packages/select/components/selectFilter.d.ts +4 -0
- package/out/ui/packages/select/components/selectFilter.luau +27 -0
- package/out/ui/packages/select/components/selectFocus.d.ts +4 -0
- package/out/ui/packages/select/components/selectFocus.luau +16 -0
- package/out/ui/packages/select/components/selectGroups.d.ts +18 -0
- package/out/ui/packages/select/components/selectGroups.luau +38 -0
- package/out/ui/packages/select/components/selectKey.d.ts +4 -0
- package/out/ui/packages/select/components/selectKey.luau +14 -0
- package/out/ui/packages/select/components/selectMotion.d.ts +2 -0
- package/out/ui/packages/select/components/selectMotion.luau +12 -0
- package/out/ui/packages/select/components/selectMulti.d.ts +5 -0
- package/out/ui/packages/select/components/selectMulti.luau +26 -0
- package/out/ui/packages/select/components/selectTypeahead.d.ts +4 -0
- package/out/ui/packages/select/components/selectTypeahead.luau +58 -0
- package/out/ui/packages/select/components/stepChoice.d.ts +3 -0
- package/out/ui/packages/select/components/stepChoice.luau +24 -0
- package/out/ui/packages/select/index.d.ts +3 -0
- package/out/ui/packages/select/init.luau +8 -0
- package/out/ui/packages/shadow/components/Shadow.styles.luau +3 -3
- package/out/ui/packages/sidebar/components/Sidebar.luau +6 -0
- package/out/ui/packages/sidebar/components/Sidebar.styles.luau +5 -5
- package/out/ui/packages/skeleton/components/Skeleton.d.ts +15 -0
- package/out/ui/packages/skeleton/components/Skeleton.luau +224 -0
- package/out/ui/packages/skeleton/components/Skeleton.styles.d.ts +2 -0
- package/out/ui/packages/skeleton/components/Skeleton.styles.luau +27 -0
- package/out/ui/packages/skeleton/components/skeletonMotion.d.ts +3 -0
- package/out/ui/packages/skeleton/components/skeletonMotion.luau +17 -0
- package/out/ui/packages/skeleton/index.d.ts +3 -0
- package/out/ui/packages/skeleton/init.luau +7 -0
- package/out/ui/packages/slider/components/Slider.d.ts +13 -0
- package/out/ui/packages/slider/components/Slider.luau +204 -0
- package/out/ui/packages/slider/components/Slider.styles.d.ts +6 -0
- package/out/ui/packages/slider/components/Slider.styles.luau +47 -0
- package/out/ui/packages/slider/components/sliderNudge.d.ts +4 -0
- package/out/ui/packages/slider/components/sliderNudge.luau +39 -0
- package/out/ui/packages/slider/index.d.ts +2 -0
- package/out/ui/packages/slider/init.luau +5 -0
- package/out/ui/packages/snackbar/components/Snackbar.d.ts +11 -0
- package/out/ui/packages/snackbar/components/Snackbar.luau +41 -0
- package/out/ui/packages/snackbar/index.d.ts +2 -0
- package/out/ui/packages/snackbar/init.luau +5 -0
- package/out/ui/packages/splitPane/components/SplitPane.d.ts +14 -0
- package/out/ui/packages/splitPane/components/SplitPane.luau +241 -0
- package/out/ui/packages/splitPane/components/SplitPane.styles.d.ts +2 -0
- package/out/ui/packages/splitPane/components/SplitPane.styles.luau +59 -0
- package/out/ui/packages/splitPane/components/splitLook.d.ts +5 -0
- package/out/ui/packages/splitPane/components/splitLook.luau +49 -0
- package/out/ui/packages/splitPane/components/splitSize.d.ts +10 -0
- package/out/ui/packages/splitPane/components/splitSize.luau +46 -0
- package/out/ui/packages/splitPane/index.d.ts +2 -0
- package/out/ui/packages/splitPane/init.luau +5 -0
- package/out/ui/packages/stateMatrix.d.ts +30 -0
- package/out/ui/packages/stateMatrix.luau +1471 -0
- package/out/ui/packages/stepper/components/Stepper.d.ts +7 -0
- package/out/ui/packages/stepper/components/Stepper.luau +62 -0
- package/out/ui/packages/stepper/components/Stepper.styles.d.ts +2 -0
- package/out/ui/packages/stepper/components/Stepper.styles.luau +39 -0
- package/out/ui/packages/stepper/components/stepState.d.ts +2 -0
- package/out/ui/packages/stepper/components/stepState.luau +13 -0
- package/out/ui/packages/stepper/index.d.ts +3 -0
- package/out/ui/packages/stepper/init.luau +6 -0
- package/out/ui/packages/switch/components/Switch.d.ts +11 -0
- package/out/ui/packages/switch/components/Switch.luau +170 -0
- package/out/ui/packages/switch/components/Switch.styles.d.ts +6 -0
- package/out/ui/packages/switch/components/Switch.styles.luau +62 -0
- package/out/ui/packages/switch/components/switchLook.d.ts +10 -0
- package/out/ui/packages/switch/components/switchLook.luau +63 -0
- package/out/ui/packages/switch/index.d.ts +2 -0
- package/out/ui/packages/switch/init.luau +5 -0
- package/out/ui/packages/table/components/Table.d.ts +9 -0
- package/out/ui/packages/table/components/Table.luau +135 -0
- package/out/ui/packages/table/components/Table.styles.d.ts +2 -0
- package/out/ui/packages/table/components/Table.styles.luau +70 -0
- package/out/ui/packages/table/components/rowSelected.d.ts +1 -0
- package/out/ui/packages/table/components/rowSelected.luau +7 -0
- package/out/ui/packages/table/index.d.ts +2 -0
- package/out/ui/packages/table/init.luau +5 -0
- package/out/ui/packages/tabs/components/Tabs.d.ts +10 -0
- package/out/ui/packages/tabs/components/Tabs.luau +113 -0
- package/out/ui/packages/tabs/components/Tabs.styles.d.ts +2 -0
- package/out/ui/packages/tabs/components/Tabs.styles.luau +55 -0
- package/out/ui/packages/tabs/index.d.ts +2 -0
- package/out/ui/packages/tabs/init.luau +5 -0
- package/out/ui/packages/toast/components/Toast.luau +6 -0
- package/out/ui/packages/toast/components/Toast.styles.luau +23 -10
- package/out/ui/packages/tooltip/components/Tooltip.d.ts +7 -0
- package/out/ui/packages/tooltip/components/Tooltip.luau +119 -0
- package/out/ui/packages/tooltip/components/Tooltip.styles.d.ts +2 -0
- package/out/ui/packages/tooltip/components/Tooltip.styles.luau +43 -0
- package/out/ui/packages/tooltip/index.d.ts +2 -0
- package/out/ui/packages/tooltip/init.luau +5 -0
- package/out/ui/packages/treeView/components/TreeView.d.ts +1 -0
- package/out/ui/packages/treeView/components/TreeView.luau +201 -225
- package/out/ui/packages/treeView/components/TreeView.styles.luau +9 -37
- package/out/ui/packages/treeView/components/treeRows.d.ts +23 -0
- package/out/ui/packages/treeView/components/treeRows.luau +147 -0
- package/out/ui/packages/treeView/interfaces/Branch.d.ts +3 -0
- package/out/ui/packages/treeView/interfaces/Leaf.d.ts +2 -0
- package/out/ui/packages/typography/components/Typography.luau +6 -0
- package/out/ui/packages/typography/components/Typography.styles.luau +8 -11
- package/out/ui/packages/udimEditor/components/UDimEditor.d.ts +8 -0
- package/out/ui/packages/udimEditor/components/UDimEditor.luau +127 -0
- package/out/ui/packages/udimEditor/components/UDimEditor.styles.d.ts +2 -0
- package/out/ui/packages/udimEditor/components/UDimEditor.styles.luau +50 -0
- package/out/ui/packages/udimEditor/index.d.ts +2 -0
- package/out/ui/packages/udimEditor/init.luau +5 -0
- package/out/ui/packages/vectorEditor/components/VectorEditor.d.ts +10 -0
- package/out/ui/packages/vectorEditor/components/VectorEditor.luau +87 -0
- package/out/ui/packages/vectorEditor/components/VectorEditor.styles.d.ts +2 -0
- package/out/ui/packages/vectorEditor/components/VectorEditor.styles.luau +41 -0
- package/out/ui/packages/vectorEditor/components/vectorValue.d.ts +10 -0
- package/out/ui/packages/vectorEditor/components/vectorValue.luau +49 -0
- package/out/ui/packages/vectorEditor/index.d.ts +4 -0
- package/out/ui/packages/vectorEditor/init.luau +11 -0
- package/out/ui/packages/virtualList/components/VirtualList.d.ts +23 -0
- package/out/ui/packages/virtualList/components/VirtualList.luau +178 -0
- package/out/ui/packages/virtualList/components/VirtualList.styles.d.ts +2 -0
- package/out/ui/packages/virtualList/components/VirtualList.styles.luau +29 -0
- package/out/ui/packages/virtualList/components/virtualWindow.d.ts +10 -0
- package/out/ui/packages/virtualList/components/virtualWindow.luau +66 -0
- package/out/ui/packages/virtualList/index.d.ts +2 -0
- package/out/ui/packages/virtualList/init.luau +5 -0
- package/package.json +7 -3
- package/out/theme/interfaces/palette/colors/Colors.d.ts +0 -42
- package/out/theme/interfaces/palette/colors/Colors.luau +0 -2
- package/out/theme/styles/types/ConditionalStylesMap.d.ts +0 -2
- package/out/theme/styles/types/ConditionalStylesMap.luau +0 -2
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
-- Compiled with roblox-ts v3.0.0
|
|
2
|
+
local TS = _G[script]
|
|
3
|
+
local _colors = TS.import(script, script.Parent.Parent, "interfaces", "palette", "colors")
|
|
4
|
+
local Blue = _colors.Blue
|
|
5
|
+
local Common = _colors.Common
|
|
6
|
+
local Gray = _colors.Gray
|
|
7
|
+
local Green = _colors.Green
|
|
8
|
+
local Purple = _colors.Purple
|
|
9
|
+
local Red = _colors.Red
|
|
10
|
+
local Yellow = _colors.Yellow
|
|
11
|
+
local _colorMath = TS.import(script, script.Parent.Parent, "utilites", "colorMath")
|
|
12
|
+
local lighten = _colorMath.lighten
|
|
13
|
+
local mix = _colorMath.mix
|
|
14
|
+
local brand = function(main, on, hover, pressed)
|
|
15
|
+
return {
|
|
16
|
+
main = main,
|
|
17
|
+
on = on,
|
|
18
|
+
hover = hover,
|
|
19
|
+
pressed = pressed,
|
|
20
|
+
}
|
|
21
|
+
end
|
|
22
|
+
local status = function(main, on, surface, border)
|
|
23
|
+
return {
|
|
24
|
+
main = main,
|
|
25
|
+
on = on,
|
|
26
|
+
surface = surface,
|
|
27
|
+
border = border,
|
|
28
|
+
}
|
|
29
|
+
end
|
|
30
|
+
local createLightPalette = function()
|
|
31
|
+
local primaryMain = Blue[80]
|
|
32
|
+
local accentMain = Purple[70]
|
|
33
|
+
return {
|
|
34
|
+
surface = {
|
|
35
|
+
canvas = Common.White,
|
|
36
|
+
paper = Gray[20],
|
|
37
|
+
elevated = Common.White,
|
|
38
|
+
overlay = Common.White,
|
|
39
|
+
input = Common.White,
|
|
40
|
+
},
|
|
41
|
+
primary = brand(primaryMain, Common.White, Blue[70], Blue[90]),
|
|
42
|
+
accent = brand(accentMain, Common.White, Purple[60], Purple[80]),
|
|
43
|
+
text = {
|
|
44
|
+
primary = Common.Black,
|
|
45
|
+
secondary = Gray[70],
|
|
46
|
+
disabled = Gray[60],
|
|
47
|
+
inverse = Common.White,
|
|
48
|
+
link = Blue[80],
|
|
49
|
+
},
|
|
50
|
+
border = Gray[70],
|
|
51
|
+
divider = Gray[50],
|
|
52
|
+
focus = Blue[80],
|
|
53
|
+
action = {
|
|
54
|
+
hover = mix(Gray[40], Common.White, 0.35),
|
|
55
|
+
pressed = Gray[40],
|
|
56
|
+
selected = Blue[10],
|
|
57
|
+
disabled = Gray[60],
|
|
58
|
+
},
|
|
59
|
+
status = {
|
|
60
|
+
success = status(Green[90], Common.White, Green[10], Green[80]),
|
|
61
|
+
warning = status(Yellow[100], Common.White, Yellow[10], Yellow[90]),
|
|
62
|
+
error = status(Red[80], Common.White, Red[10], Red[70]),
|
|
63
|
+
info = status(Blue[90], Common.White, Blue[10], Blue[80]),
|
|
64
|
+
},
|
|
65
|
+
backdrop = Common.Black,
|
|
66
|
+
shadow = Common.Black,
|
|
67
|
+
}
|
|
68
|
+
end
|
|
69
|
+
local createDarkPalette = function()
|
|
70
|
+
local primaryMain = Blue[50]
|
|
71
|
+
local accentMain = Purple[40]
|
|
72
|
+
return {
|
|
73
|
+
surface = {
|
|
74
|
+
canvas = Common.Black,
|
|
75
|
+
paper = Gray[100],
|
|
76
|
+
elevated = Gray[90],
|
|
77
|
+
overlay = Gray[80],
|
|
78
|
+
input = Gray[100],
|
|
79
|
+
},
|
|
80
|
+
primary = brand(primaryMain, Common.Black, Blue[40], Blue[60]),
|
|
81
|
+
accent = brand(accentMain, Common.Black, Purple[30], Purple[50]),
|
|
82
|
+
text = {
|
|
83
|
+
primary = Common.White,
|
|
84
|
+
secondary = Gray[50],
|
|
85
|
+
disabled = Gray[70],
|
|
86
|
+
inverse = Common.Black,
|
|
87
|
+
link = Blue[40],
|
|
88
|
+
},
|
|
89
|
+
border = Gray[60],
|
|
90
|
+
divider = Gray[70],
|
|
91
|
+
focus = Blue[50],
|
|
92
|
+
action = {
|
|
93
|
+
hover = lighten(Gray[90], 0.08),
|
|
94
|
+
pressed = Gray[80],
|
|
95
|
+
selected = mix(Blue[110], Gray[90], 0.45),
|
|
96
|
+
disabled = Gray[70],
|
|
97
|
+
},
|
|
98
|
+
status = {
|
|
99
|
+
success = status(Green[50], Common.Black, Green[110], Green[60]),
|
|
100
|
+
warning = status(Yellow[60], Common.Black, Yellow[110], Yellow[70]),
|
|
101
|
+
error = status(Red[50], Common.Black, Red[110], Red[60]),
|
|
102
|
+
info = status(Blue[50], Common.Black, Blue[110], Blue[60]),
|
|
103
|
+
},
|
|
104
|
+
backdrop = Common.Black,
|
|
105
|
+
shadow = Common.Black,
|
|
106
|
+
}
|
|
107
|
+
end
|
|
108
|
+
return {
|
|
109
|
+
createLightPalette = createLightPalette,
|
|
110
|
+
createDarkPalette = createDarkPalette,
|
|
111
|
+
}
|
|
@@ -4,4 +4,7 @@ local exports = {}
|
|
|
4
4
|
exports.default = TS.import(script, script, "DarkTheme").default
|
|
5
5
|
exports.DarkTheme = TS.import(script, script, "DarkTheme").default
|
|
6
6
|
exports.LightTheme = TS.import(script, script, "LightTheme").default
|
|
7
|
+
local _createPalette = TS.import(script, script, "createPalette")
|
|
8
|
+
exports.createDarkPalette = _createPalette.createDarkPalette
|
|
9
|
+
exports.createLightPalette = _createPalette.createLightPalette
|
|
7
10
|
return exports
|
|
@@ -2,6 +2,7 @@ import React, { PropsWithChildren } from "@rbxts/react";
|
|
|
2
2
|
import { WriteableStyle } from "../interfaces/index";
|
|
3
3
|
export interface CommonProps<T extends Instance> extends PropsWithChildren {
|
|
4
4
|
className?: WriteableStyle<T>;
|
|
5
|
+
sx?: WriteableStyle<T>;
|
|
5
6
|
component?: T;
|
|
6
7
|
id?: React.Key;
|
|
7
8
|
ref?: React.Ref<T>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** WCAG relative luminance for a Color3 (sRGB, 0–1 channels). */
|
|
2
|
+
export declare const relativeLuminance: (color: Color3) => number;
|
|
3
|
+
/** WCAG contrast ratio between two colors (≥1). */
|
|
4
|
+
export declare const contrastRatio: (a: Color3, b: Color3) => number;
|
|
5
|
+
/** Deterministic channel mix. `t` is 0→a … 1→b. */
|
|
6
|
+
export declare const mix: (a: Color3, b: Color3, t: number) => Color3;
|
|
7
|
+
export declare const lighten: (color: Color3, amount: number) => Color3;
|
|
8
|
+
export declare const darken: (color: Color3, amount: number) => Color3;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
-- Compiled with roblox-ts v3.0.0
|
|
2
|
+
local channel = function(value)
|
|
3
|
+
local c = if value <= 0.03928 then value / 12.92 else math.pow((value + 0.055) / 1.055, 2.4)
|
|
4
|
+
return c
|
|
5
|
+
end
|
|
6
|
+
--* WCAG relative luminance for a Color3 (sRGB, 0–1 channels).
|
|
7
|
+
local relativeLuminance = function(color)
|
|
8
|
+
return 0.2126 * channel(color.R) + 0.7152 * channel(color.G) + 0.0722 * channel(color.B)
|
|
9
|
+
end
|
|
10
|
+
--* WCAG contrast ratio between two colors (≥1).
|
|
11
|
+
local contrastRatio = function(a, b)
|
|
12
|
+
local l1 = relativeLuminance(a)
|
|
13
|
+
local l2 = relativeLuminance(b)
|
|
14
|
+
local lighter = math.max(l1, l2)
|
|
15
|
+
local darker = math.min(l1, l2)
|
|
16
|
+
return (lighter + 0.05) / (darker + 0.05)
|
|
17
|
+
end
|
|
18
|
+
--* Deterministic channel mix. `t` is 0→a … 1→b.
|
|
19
|
+
local mix = function(a, b, t)
|
|
20
|
+
local u = math.max(0, math.min(1, t))
|
|
21
|
+
return Color3.new(a.R + (b.R - a.R) * u, a.G + (b.G - a.G) * u, a.B + (b.B - a.B) * u)
|
|
22
|
+
end
|
|
23
|
+
local lighten = function(color, amount)
|
|
24
|
+
return mix(color, Color3.new(1, 1, 1), amount)
|
|
25
|
+
end
|
|
26
|
+
local darken = function(color, amount)
|
|
27
|
+
return mix(color, Color3.new(0, 0, 0), amount)
|
|
28
|
+
end
|
|
29
|
+
return {
|
|
30
|
+
relativeLuminance = relativeLuminance,
|
|
31
|
+
contrastRatio = contrastRatio,
|
|
32
|
+
mix = mix,
|
|
33
|
+
lighten = lighten,
|
|
34
|
+
darken = darken,
|
|
35
|
+
}
|
|
@@ -2,4 +2,10 @@
|
|
|
2
2
|
local TS = _G[script]
|
|
3
3
|
local exports = {}
|
|
4
4
|
exports.Color3FromHex = TS.import(script, script, "Color3FromHex").default
|
|
5
|
+
local _colorMath = TS.import(script, script, "colorMath")
|
|
6
|
+
exports.contrastRatio = _colorMath.contrastRatio
|
|
7
|
+
exports.darken = _colorMath.darken
|
|
8
|
+
exports.lighten = _colorMath.lighten
|
|
9
|
+
exports.mix = _colorMath.mix
|
|
10
|
+
exports.relativeLuminance = _colorMath.relativeLuminance
|
|
5
11
|
return exports
|
package/out/ui/enums/Icons.d.ts
CHANGED
|
@@ -28,13 +28,17 @@ export declare enum Icons {
|
|
|
28
28
|
NewspaperVariant1 = "rbxassetid://9056545367",
|
|
29
29
|
NewspaperVariant2 = "rbxassetid://9056545251",
|
|
30
30
|
NewspaperVariant3 = "rbxassetid://9056545032",
|
|
31
|
+
PageLayoutSidebarRight = "rbxassetid://94615499225611",
|
|
31
32
|
Close = "rbxassetid://9070598165",
|
|
32
33
|
CloseCircle = "rbxassetid://9070597768",
|
|
34
|
+
Search = "rbxasset://textures/ui/SearchIcon.png",
|
|
33
35
|
Collapsed = "rbxassetid://9306279342",
|
|
34
36
|
Expanded = "rbxassetid://9306279848",
|
|
35
37
|
Book = "rbxassetid://9311703342",
|
|
36
38
|
BookStack = "rbxassetid://9311703545",
|
|
37
39
|
ListPrimary = "rbxassetid://9306610505",
|
|
38
40
|
LightTheme = "rbxassetid://9377269022",
|
|
39
|
-
DarkTheme = "rbxassetid://9377269322"
|
|
41
|
+
DarkTheme = "rbxassetid://9377269322",
|
|
42
|
+
Star = "rbxassetid://7072723006",
|
|
43
|
+
StarFilled = "rbxassetid://14717297422"
|
|
40
44
|
}
|
package/out/ui/enums/Icons.luau
CHANGED
|
@@ -29,8 +29,10 @@ local Icons = {
|
|
|
29
29
|
NewspaperVariant1 = "rbxassetid://9056545367",
|
|
30
30
|
NewspaperVariant2 = "rbxassetid://9056545251",
|
|
31
31
|
NewspaperVariant3 = "rbxassetid://9056545032",
|
|
32
|
+
PageLayoutSidebarRight = "rbxassetid://94615499225611",
|
|
32
33
|
Close = "rbxassetid://9070598165",
|
|
33
34
|
CloseCircle = "rbxassetid://9070597768",
|
|
35
|
+
Search = "rbxasset://textures/ui/SearchIcon.png",
|
|
34
36
|
Collapsed = "rbxassetid://9306279342",
|
|
35
37
|
Expanded = "rbxassetid://9306279848",
|
|
36
38
|
Book = "rbxassetid://9311703342",
|
|
@@ -38,6 +40,8 @@ local Icons = {
|
|
|
38
40
|
ListPrimary = "rbxassetid://9306610505",
|
|
39
41
|
LightTheme = "rbxassetid://9377269022",
|
|
40
42
|
DarkTheme = "rbxassetid://9377269322",
|
|
43
|
+
Star = "rbxassetid://7072723006",
|
|
44
|
+
StarFilled = "rbxassetid://14717297422",
|
|
41
45
|
}
|
|
42
46
|
return {
|
|
43
47
|
Icons = Icons,
|
package/out/ui/index.d.ts
CHANGED
|
@@ -18,11 +18,23 @@ export { Grid } from "./packages/index";
|
|
|
18
18
|
export { GridProps } from "./packages/index";
|
|
19
19
|
export { List } from "./packages/index";
|
|
20
20
|
export { ListProps } from "./packages/index";
|
|
21
|
+
export { VirtualList } from "./packages/index";
|
|
22
|
+
export { VirtualListProps } from "./packages/index";
|
|
23
|
+
export { VirtualListHandle } from "./packages/index";
|
|
24
|
+
export { VirtualListItemState } from "./packages/index";
|
|
25
|
+
export { VirtualListAlign } from "./packages/index";
|
|
21
26
|
export { Preloader } from "./packages/index";
|
|
22
27
|
export { PreloaderProps } from "./packages/index";
|
|
23
28
|
export { PreloaderAssets as Assets } from "./packages/index";
|
|
24
29
|
export { ProgressBar } from "./packages/index";
|
|
25
30
|
export { ProgressBarProps } from "./packages/index";
|
|
31
|
+
export { LinearProgress } from "./packages/index";
|
|
32
|
+
export { LinearProgressProps } from "./packages/index";
|
|
33
|
+
export { CircularProgress } from "./packages/index";
|
|
34
|
+
export { CircularProgressProps } from "./packages/index";
|
|
35
|
+
export { Skeleton } from "./packages/index";
|
|
36
|
+
export { SkeletonProps } from "./packages/index";
|
|
37
|
+
export { SkeletonText } from "./packages/index";
|
|
26
38
|
export { Shadow } from "./packages/index";
|
|
27
39
|
export { Sidebar } from "./packages/index";
|
|
28
40
|
export { SidebarProps } from "./packages/index";
|
package/out/ui/init.luau
CHANGED
|
@@ -14,8 +14,13 @@ exports.IconButton = TS.import(script, script, "packages").IconButton
|
|
|
14
14
|
exports.Input = TS.import(script, script, "packages").Input
|
|
15
15
|
exports.Grid = TS.import(script, script, "packages").Grid
|
|
16
16
|
exports.List = TS.import(script, script, "packages").List
|
|
17
|
+
exports.VirtualList = TS.import(script, script, "packages").VirtualList
|
|
17
18
|
exports.Preloader = TS.import(script, script, "packages").Preloader
|
|
18
19
|
exports.ProgressBar = TS.import(script, script, "packages").ProgressBar
|
|
20
|
+
exports.LinearProgress = TS.import(script, script, "packages").LinearProgress
|
|
21
|
+
exports.CircularProgress = TS.import(script, script, "packages").CircularProgress
|
|
22
|
+
exports.Skeleton = TS.import(script, script, "packages").Skeleton
|
|
23
|
+
exports.SkeletonText = TS.import(script, script, "packages").SkeletonText
|
|
19
24
|
exports.Shadow = TS.import(script, script, "packages").Shadow
|
|
20
25
|
exports.Sidebar = TS.import(script, script, "packages").Sidebar
|
|
21
26
|
exports.Toast = TS.import(script, script, "packages").Toast
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "@rbxts/react";
|
|
2
|
+
import { CustomizedProps } from "../../../../theme/index";
|
|
3
|
+
export interface AccordionProps {
|
|
4
|
+
title: string;
|
|
5
|
+
open?: boolean;
|
|
6
|
+
defaultOpen?: boolean;
|
|
7
|
+
onChange?: (open: boolean) => void;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
declare function Accordion(props: CustomizedProps<Frame, AccordionProps>): JSX.Element;
|
|
11
|
+
export default Accordion;
|
|
@@ -0,0 +1,93 @@
|
|
|
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 React = _react
|
|
5
|
+
local useState = _react.useState
|
|
6
|
+
local accordionOpen = TS.import(script, script.Parent, "accordionOpen").accordionOpen
|
|
7
|
+
local useAccordionStyles = TS.import(script, script.Parent, "Accordion.styles").default
|
|
8
|
+
local function Accordion(props)
|
|
9
|
+
local _binding = props
|
|
10
|
+
local title = _binding.title
|
|
11
|
+
local controlled = _binding.open
|
|
12
|
+
local defaultOpen = _binding.defaultOpen
|
|
13
|
+
local onChange = _binding.onChange
|
|
14
|
+
local children = _binding.children
|
|
15
|
+
local className = _binding.className
|
|
16
|
+
local sx = _binding.sx
|
|
17
|
+
local id = _binding.id
|
|
18
|
+
local ref = _binding.ref
|
|
19
|
+
local localOpen, setLocalOpen = useState(defaultOpen == true)
|
|
20
|
+
local open = accordionOpen(localOpen, controlled)
|
|
21
|
+
local styles = useAccordionStyles({
|
|
22
|
+
open = open,
|
|
23
|
+
})
|
|
24
|
+
local toggle = function()
|
|
25
|
+
local nextOpen = not open
|
|
26
|
+
if controlled == nil then
|
|
27
|
+
setLocalOpen(nextOpen)
|
|
28
|
+
end
|
|
29
|
+
local _result = onChange
|
|
30
|
+
if _result ~= nil then
|
|
31
|
+
_result(nextOpen)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
local _attributes = {}
|
|
35
|
+
local _condition = id
|
|
36
|
+
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
37
|
+
_condition = "Accordion"
|
|
38
|
+
end
|
|
39
|
+
_attributes.key = _condition
|
|
40
|
+
_attributes.ref = ref
|
|
41
|
+
for _k, _v in styles.root do
|
|
42
|
+
_attributes[_k] = _v
|
|
43
|
+
end
|
|
44
|
+
if className then
|
|
45
|
+
for _k, _v in className do
|
|
46
|
+
_attributes[_k] = _v
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
if sx then
|
|
50
|
+
for _k, _v in sx do
|
|
51
|
+
_attributes[_k] = _v
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
local _attributes_1 = table.clone(styles.corner)
|
|
55
|
+
setmetatable(_attributes_1, nil)
|
|
56
|
+
local _exp = React.createElement("uicorner", _attributes_1)
|
|
57
|
+
local _attributes_2 = table.clone(styles.list)
|
|
58
|
+
setmetatable(_attributes_2, nil)
|
|
59
|
+
local _exp_1 = React.createElement("uilistlayout", _attributes_2)
|
|
60
|
+
local _attributes_3 = {
|
|
61
|
+
key = "Header",
|
|
62
|
+
}
|
|
63
|
+
for _k, _v in styles.header do
|
|
64
|
+
_attributes_3[_k] = _v
|
|
65
|
+
end
|
|
66
|
+
_attributes_3.Event = {
|
|
67
|
+
Activated = toggle,
|
|
68
|
+
}
|
|
69
|
+
local _attributes_4 = table.clone(styles.padding)
|
|
70
|
+
setmetatable(_attributes_4, nil)
|
|
71
|
+
local _exp_2 = React.createElement("uipadding", _attributes_4)
|
|
72
|
+
local _attributes_5 = {
|
|
73
|
+
key = "Title",
|
|
74
|
+
}
|
|
75
|
+
for _k, _v in styles.title do
|
|
76
|
+
_attributes_5[_k] = _v
|
|
77
|
+
end
|
|
78
|
+
_attributes_5.Text = title
|
|
79
|
+
local _exp_3 = React.createElement("textbutton", _attributes_3, _exp_2, React.createElement("textlabel", _attributes_5))
|
|
80
|
+
local _attributes_6 = {
|
|
81
|
+
key = "Body",
|
|
82
|
+
}
|
|
83
|
+
for _k, _v in styles.body do
|
|
84
|
+
_attributes_6[_k] = _v
|
|
85
|
+
end
|
|
86
|
+
local _attributes_7 = table.clone(styles.padding)
|
|
87
|
+
setmetatable(_attributes_7, nil)
|
|
88
|
+
return React.createElement("frame", _attributes, _exp, _exp_1, _exp_3, React.createElement("frame", _attributes_6, React.createElement("uipadding", _attributes_7), children))
|
|
89
|
+
end
|
|
90
|
+
local default = Accordion
|
|
91
|
+
return {
|
|
92
|
+
default = default,
|
|
93
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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 useAccordionStyles = componentStyles("Accordion", function(theme, _param)
|
|
7
|
+
local open = _param.open
|
|
8
|
+
if open == nil then
|
|
9
|
+
open = false
|
|
10
|
+
end
|
|
11
|
+
return createStyles({
|
|
12
|
+
root = {
|
|
13
|
+
AutomaticSize = Enum.AutomaticSize.Y,
|
|
14
|
+
Size = UDim2.new(1, 0, 0, 0),
|
|
15
|
+
BackgroundColor3 = theme.palette.surface.paper,
|
|
16
|
+
BorderSizePixel = 0,
|
|
17
|
+
},
|
|
18
|
+
list = {
|
|
19
|
+
FillDirection = Enum.FillDirection.Vertical,
|
|
20
|
+
SortOrder = Enum.SortOrder.LayoutOrder,
|
|
21
|
+
},
|
|
22
|
+
header = {
|
|
23
|
+
LayoutOrder = 1,
|
|
24
|
+
AutomaticSize = Enum.AutomaticSize.Y,
|
|
25
|
+
Size = UDim2.new(1, 0, 0, 0),
|
|
26
|
+
BackgroundTransparency = 1,
|
|
27
|
+
BorderSizePixel = 0,
|
|
28
|
+
AutoButtonColor = false,
|
|
29
|
+
Text = "",
|
|
30
|
+
Active = true,
|
|
31
|
+
Selectable = true,
|
|
32
|
+
},
|
|
33
|
+
title = {
|
|
34
|
+
AutomaticSize = Enum.AutomaticSize.XY,
|
|
35
|
+
Size = UDim2.fromScale(0, 0),
|
|
36
|
+
BackgroundTransparency = 1,
|
|
37
|
+
BorderSizePixel = 0,
|
|
38
|
+
Font = theme.typography.fontFamilies.default,
|
|
39
|
+
TextSize = theme.typography.fontSizes.body,
|
|
40
|
+
TextColor3 = theme.palette.text.primary,
|
|
41
|
+
TextXAlignment = Enum.TextXAlignment.Left,
|
|
42
|
+
},
|
|
43
|
+
padding = {
|
|
44
|
+
PaddingTop = UDim.new(0, theme.padding.calc(1)),
|
|
45
|
+
PaddingBottom = UDim.new(0, theme.padding.calc(1)),
|
|
46
|
+
PaddingLeft = UDim.new(0, theme.padding.calc(1.5)),
|
|
47
|
+
PaddingRight = UDim.new(0, theme.padding.calc(1.5)),
|
|
48
|
+
},
|
|
49
|
+
body = {
|
|
50
|
+
LayoutOrder = 2,
|
|
51
|
+
AutomaticSize = Enum.AutomaticSize.Y,
|
|
52
|
+
Size = UDim2.new(1, 0, 0, 0),
|
|
53
|
+
BackgroundTransparency = 1,
|
|
54
|
+
BorderSizePixel = 0,
|
|
55
|
+
Visible = open,
|
|
56
|
+
},
|
|
57
|
+
corner = {
|
|
58
|
+
CornerRadius = UDim.new(0, theme.shape.borderRadius),
|
|
59
|
+
},
|
|
60
|
+
})
|
|
61
|
+
end)
|
|
62
|
+
local default = useAccordionStyles
|
|
63
|
+
return {
|
|
64
|
+
default = default,
|
|
65
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function accordionOpen(expanded: boolean | undefined, controlled: boolean | undefined): boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "@rbxts/react";
|
|
2
|
+
import { CustomizedProps } from "../../../../theme/index";
|
|
3
|
+
import { AppBarElevation } from "./AppBar.styles";
|
|
4
|
+
export interface AppBarProps {
|
|
5
|
+
title?: string;
|
|
6
|
+
elevation?: AppBarElevation;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
declare function AppBar(props: CustomizedProps<Frame, AppBarProps>): JSX.Element;
|
|
10
|
+
export default AppBar;
|
|
@@ -0,0 +1,77 @@
|
|
|
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 Shadow = TS.import(script, script.Parent.Parent.Parent, "shadow").Shadow
|
|
5
|
+
local useAppBarStyles = TS.import(script, script.Parent, "AppBar.styles").default
|
|
6
|
+
local function AppBar(props)
|
|
7
|
+
local _binding = props
|
|
8
|
+
local title = _binding.title
|
|
9
|
+
if title == nil then
|
|
10
|
+
title = ""
|
|
11
|
+
end
|
|
12
|
+
local elevation = _binding.elevation
|
|
13
|
+
if elevation == nil then
|
|
14
|
+
elevation = "raised"
|
|
15
|
+
end
|
|
16
|
+
local children = _binding.children
|
|
17
|
+
local className = _binding.className
|
|
18
|
+
local sx = _binding.sx
|
|
19
|
+
local id = _binding.id
|
|
20
|
+
local ref = _binding.ref
|
|
21
|
+
local styles = useAppBarStyles({
|
|
22
|
+
elevation = elevation,
|
|
23
|
+
hasActions = children ~= nil,
|
|
24
|
+
})
|
|
25
|
+
local _attributes = {}
|
|
26
|
+
local _condition = id
|
|
27
|
+
if not (_condition ~= 0 and _condition == _condition and _condition ~= "" and _condition) then
|
|
28
|
+
_condition = "AppBar"
|
|
29
|
+
end
|
|
30
|
+
_attributes.key = _condition
|
|
31
|
+
_attributes.ref = ref
|
|
32
|
+
for _k, _v in styles.root do
|
|
33
|
+
_attributes[_k] = _v
|
|
34
|
+
end
|
|
35
|
+
if className then
|
|
36
|
+
for _k, _v in className do
|
|
37
|
+
_attributes[_k] = _v
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
if sx then
|
|
41
|
+
for _k, _v in sx do
|
|
42
|
+
_attributes[_k] = _v
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
local _attributes_1 = table.clone(styles.padding)
|
|
46
|
+
setmetatable(_attributes_1, nil)
|
|
47
|
+
local _exp = React.createElement("uipadding", _attributes_1)
|
|
48
|
+
local _exp_1 = elevation == "raised" and React.createElement(Shadow)
|
|
49
|
+
local _condition_1 = title ~= ""
|
|
50
|
+
if _condition_1 then
|
|
51
|
+
local _attributes_2 = {
|
|
52
|
+
key = "Title",
|
|
53
|
+
}
|
|
54
|
+
for _k, _v in styles.title do
|
|
55
|
+
_attributes_2[_k] = _v
|
|
56
|
+
end
|
|
57
|
+
_attributes_2.Text = title
|
|
58
|
+
_condition_1 = React.createElement("textlabel", _attributes_2)
|
|
59
|
+
end
|
|
60
|
+
local _condition_2 = children ~= nil
|
|
61
|
+
if _condition_2 then
|
|
62
|
+
local _attributes_2 = {
|
|
63
|
+
key = "Actions",
|
|
64
|
+
}
|
|
65
|
+
for _k, _v in styles.actions do
|
|
66
|
+
_attributes_2[_k] = _v
|
|
67
|
+
end
|
|
68
|
+
local _attributes_3 = table.clone(styles.actionsLayout)
|
|
69
|
+
setmetatable(_attributes_3, nil)
|
|
70
|
+
_condition_2 = (React.createElement("frame", _attributes_2, React.createElement("uilistlayout", _attributes_3), children))
|
|
71
|
+
end
|
|
72
|
+
return React.createElement("frame", _attributes, _exp, _exp_1, _condition_1, _condition_2)
|
|
73
|
+
end
|
|
74
|
+
local default = AppBar
|
|
75
|
+
return {
|
|
76
|
+
default = default,
|
|
77
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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 useAppBarStyles = componentStyles("AppBar", function(theme, _param)
|
|
7
|
+
local elevation = _param.elevation
|
|
8
|
+
if elevation == nil then
|
|
9
|
+
elevation = "raised"
|
|
10
|
+
end
|
|
11
|
+
local hasActions = _param.hasActions
|
|
12
|
+
if hasActions == nil then
|
|
13
|
+
hasActions = false
|
|
14
|
+
end
|
|
15
|
+
local _object = {
|
|
16
|
+
root = {
|
|
17
|
+
Size = UDim2.new(1, 0, 0, theme.spacing.calc(7)),
|
|
18
|
+
BackgroundColor3 = if elevation == "raised" then theme.palette.surface.elevated else theme.palette.surface.paper,
|
|
19
|
+
BorderSizePixel = 0,
|
|
20
|
+
ZIndex = 11000,
|
|
21
|
+
},
|
|
22
|
+
padding = {
|
|
23
|
+
PaddingLeft = UDim.new(0, theme.padding.calc(2)),
|
|
24
|
+
PaddingRight = UDim.new(0, theme.padding.calc(2)),
|
|
25
|
+
},
|
|
26
|
+
}
|
|
27
|
+
local _left = "title"
|
|
28
|
+
local _object_1 = {
|
|
29
|
+
Size = UDim2.new(1, if hasActions then -theme.spacing.calc(8) else 0, 1, 0),
|
|
30
|
+
BackgroundTransparency = 1,
|
|
31
|
+
BorderSizePixel = 0,
|
|
32
|
+
Font = theme.typography.fontFamilies.default,
|
|
33
|
+
}
|
|
34
|
+
local _left_1 = "TextSize"
|
|
35
|
+
local _condition = theme.typography.fontSizes.h3
|
|
36
|
+
if _condition == nil then
|
|
37
|
+
_condition = theme.typography.fontSizes.body
|
|
38
|
+
end
|
|
39
|
+
_object_1[_left_1] = _condition
|
|
40
|
+
_object_1.TextColor3 = theme.palette.text.primary
|
|
41
|
+
_object_1.TextXAlignment = Enum.TextXAlignment.Left
|
|
42
|
+
_object_1.TextYAlignment = Enum.TextYAlignment.Center
|
|
43
|
+
_object_1.TextTruncate = Enum.TextTruncate.AtEnd
|
|
44
|
+
_object[_left] = _object_1
|
|
45
|
+
_object.actions = {
|
|
46
|
+
AutomaticSize = Enum.AutomaticSize.X,
|
|
47
|
+
Size = UDim2.new(0, 0, 1, 0),
|
|
48
|
+
Position = UDim2.new(1, 0, 0, 0),
|
|
49
|
+
AnchorPoint = Vector2.new(1, 0),
|
|
50
|
+
BackgroundTransparency = 1,
|
|
51
|
+
BorderSizePixel = 0,
|
|
52
|
+
ZIndex = 2,
|
|
53
|
+
}
|
|
54
|
+
_object.actionsLayout = {
|
|
55
|
+
FillDirection = Enum.FillDirection.Horizontal,
|
|
56
|
+
HorizontalAlignment = Enum.HorizontalAlignment.Right,
|
|
57
|
+
VerticalAlignment = Enum.VerticalAlignment.Center,
|
|
58
|
+
SortOrder = Enum.SortOrder.LayoutOrder,
|
|
59
|
+
Padding = UDim.new(0, theme.padding.calc(1)),
|
|
60
|
+
}
|
|
61
|
+
return createStyles(_object)
|
|
62
|
+
end)
|
|
63
|
+
local default = useAppBarStyles
|
|
64
|
+
return {
|
|
65
|
+
default = default,
|
|
66
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CustomizedProps } from "../../../../theme/index";
|
|
2
|
+
export interface AssetFieldProps {
|
|
3
|
+
value: string;
|
|
4
|
+
onChange: (value: string) => void;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
preview?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare function AssetField(props: CustomizedProps<Frame, AssetFieldProps>): JSX.Element;
|
|
10
|
+
export default AssetField;
|