@oxyhq/bloom 0.6.24 → 0.7.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/lib/commonjs/alert-dialog/AlertDialog.js +109 -0
- package/lib/commonjs/alert-dialog/AlertDialog.js.map +1 -0
- package/lib/commonjs/alert-dialog/AlertDialogHost.js +50 -0
- package/lib/commonjs/alert-dialog/AlertDialogHost.js.map +1 -0
- package/lib/commonjs/alert-dialog/confirm-store.js +80 -0
- package/lib/commonjs/alert-dialog/confirm-store.js.map +1 -0
- package/lib/commonjs/alert-dialog/index.js +19 -0
- package/lib/commonjs/alert-dialog/index.js.map +1 -0
- package/lib/commonjs/alert-dialog/index.web.js +19 -0
- package/lib/commonjs/alert-dialog/index.web.js.map +1 -0
- package/lib/commonjs/alert-dialog/types.js +6 -0
- package/lib/commonjs/alert-dialog/types.js.map +1 -0
- package/lib/commonjs/combobox/Combobox.js +227 -0
- package/lib/commonjs/combobox/Combobox.js.map +1 -0
- package/lib/commonjs/combobox/index.js +11 -0
- package/lib/commonjs/combobox/index.js.map +1 -0
- package/lib/commonjs/combobox/index.web.js +11 -0
- package/lib/commonjs/combobox/index.web.js.map +1 -0
- package/lib/commonjs/combobox/types.js +6 -0
- package/lib/commonjs/combobox/types.js.map +1 -0
- package/lib/commonjs/command/Command.js +256 -0
- package/lib/commonjs/command/Command.js.map +1 -0
- package/lib/commonjs/command/index.js +10 -0
- package/lib/commonjs/command/index.js.map +1 -0
- package/lib/commonjs/command/index.web.js +10 -0
- package/lib/commonjs/command/index.web.js.map +1 -0
- package/lib/commonjs/command/types.js +6 -0
- package/lib/commonjs/command/types.js.map +1 -0
- package/lib/commonjs/field/Field.js +68 -0
- package/lib/commonjs/field/Field.js.map +1 -0
- package/lib/commonjs/field/index.js +13 -0
- package/lib/commonjs/field/index.js.map +1 -0
- package/lib/commonjs/field/types.js +6 -0
- package/lib/commonjs/field/types.js.map +1 -0
- package/lib/commonjs/index.js +117 -25
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/index.web.js +117 -25
- package/lib/commonjs/index.web.js.map +1 -1
- package/lib/commonjs/input-group/InputGroup.js +172 -0
- package/lib/commonjs/input-group/InputGroup.js.map +1 -0
- package/lib/commonjs/input-group/index.js +19 -0
- package/lib/commonjs/input-group/index.js.map +1 -0
- package/lib/commonjs/input-group/types.js +6 -0
- package/lib/commonjs/input-group/types.js.map +1 -0
- package/lib/commonjs/item/Item.js +172 -0
- package/lib/commonjs/item/Item.js.map +1 -0
- package/lib/commonjs/item/index.js +13 -0
- package/lib/commonjs/item/index.js.map +1 -0
- package/lib/commonjs/item/types.js +6 -0
- package/lib/commonjs/item/types.js.map +1 -0
- package/lib/commonjs/kbd/Kbd.js +79 -0
- package/lib/commonjs/kbd/Kbd.js.map +1 -0
- package/lib/commonjs/kbd/index.js +13 -0
- package/lib/commonjs/kbd/index.js.map +1 -0
- package/lib/commonjs/kbd/types.js +6 -0
- package/lib/commonjs/kbd/types.js.map +1 -0
- package/lib/commonjs/label/Label.js +60 -0
- package/lib/commonjs/label/Label.js.map +1 -0
- package/lib/commonjs/label/index.js +13 -0
- package/lib/commonjs/label/index.js.map +1 -0
- package/lib/commonjs/label/types.js +6 -0
- package/lib/commonjs/label/types.js.map +1 -0
- package/lib/commonjs/popover/context.js +18 -0
- package/lib/commonjs/popover/context.js.map +1 -0
- package/lib/commonjs/popover/index.js +111 -0
- package/lib/commonjs/popover/index.js.map +1 -0
- package/lib/commonjs/popover/index.web.js +286 -0
- package/lib/commonjs/popover/index.web.js.map +1 -0
- package/lib/commonjs/popover/types.js +6 -0
- package/lib/commonjs/popover/types.js.map +1 -0
- package/lib/commonjs/react-native-css.d.js +2 -0
- package/lib/commonjs/react-native-css.d.js.map +1 -0
- package/lib/commonjs/slider/Slider.js +255 -0
- package/lib/commonjs/slider/Slider.js.map +1 -0
- package/lib/commonjs/slider/index.js +13 -0
- package/lib/commonjs/slider/index.js.map +1 -0
- package/lib/commonjs/slider/types.js +6 -0
- package/lib/commonjs/slider/types.js.map +1 -0
- package/lib/commonjs/theme/BloomThemeProvider.js +39 -7
- package/lib/commonjs/theme/BloomThemeProvider.js.map +1 -1
- package/lib/commonjs/theme/color-presets.js +118 -118
- package/lib/commonjs/theme/color-presets.js.map +1 -1
- package/lib/commonjs/theme/color-scope/index.js +28 -6
- package/lib/commonjs/theme/color-scope/index.js.map +1 -1
- package/lib/commonjs/theme/color-scope/style-builder.js +35 -0
- package/lib/commonjs/theme/color-scope/style-builder.js.map +1 -1
- package/lib/commonjs/theme/native-root-vars.js +105 -0
- package/lib/commonjs/theme/native-root-vars.js.map +1 -0
- package/lib/commonjs/theme/native-root-vars.web.js +27 -0
- package/lib/commonjs/theme/native-root-vars.web.js.map +1 -0
- package/lib/commonjs/theme/preset-vars.js +4 -1
- package/lib/commonjs/theme/preset-vars.js.map +1 -1
- package/lib/module/alert-dialog/AlertDialog.js +104 -0
- package/lib/module/alert-dialog/AlertDialog.js.map +1 -0
- package/lib/module/alert-dialog/AlertDialogHost.js +45 -0
- package/lib/module/alert-dialog/AlertDialogHost.js.map +1 -0
- package/lib/module/alert-dialog/confirm-store.js +73 -0
- package/lib/module/alert-dialog/confirm-store.js.map +1 -0
- package/lib/module/alert-dialog/index.js +9 -0
- package/lib/module/alert-dialog/index.js.map +1 -0
- package/lib/module/alert-dialog/index.web.js +9 -0
- package/lib/module/alert-dialog/index.web.js.map +1 -0
- package/lib/module/alert-dialog/types.js +4 -0
- package/lib/module/alert-dialog/types.js.map +1 -0
- package/lib/module/combobox/Combobox.js +222 -0
- package/lib/module/combobox/Combobox.js.map +1 -0
- package/lib/module/combobox/index.js +6 -0
- package/lib/module/combobox/index.js.map +1 -0
- package/lib/module/combobox/index.web.js +6 -0
- package/lib/module/combobox/index.web.js.map +1 -0
- package/lib/module/combobox/types.js +4 -0
- package/lib/module/combobox/types.js.map +1 -0
- package/lib/module/command/Command.js +251 -0
- package/lib/module/command/Command.js.map +1 -0
- package/lib/module/command/index.js +6 -0
- package/lib/module/command/index.js.map +1 -0
- package/lib/module/command/index.web.js +6 -0
- package/lib/module/command/index.web.js.map +1 -0
- package/lib/module/command/types.js +4 -0
- package/lib/module/command/types.js.map +1 -0
- package/lib/module/field/Field.js +63 -0
- package/lib/module/field/Field.js.map +1 -0
- package/lib/module/field/index.js +4 -0
- package/lib/module/field/index.js.map +1 -0
- package/lib/module/field/types.js +4 -0
- package/lib/module/field/types.js.map +1 -0
- package/lib/module/index.js +10 -3
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.web.js +10 -3
- package/lib/module/index.web.js.map +1 -1
- package/lib/module/input-group/InputGroup.js +167 -0
- package/lib/module/input-group/InputGroup.js.map +1 -0
- package/lib/module/input-group/index.js +4 -0
- package/lib/module/input-group/index.js.map +1 -0
- package/lib/module/input-group/types.js +4 -0
- package/lib/module/input-group/types.js.map +1 -0
- package/lib/module/item/Item.js +167 -0
- package/lib/module/item/Item.js.map +1 -0
- package/lib/module/item/index.js +4 -0
- package/lib/module/item/index.js.map +1 -0
- package/lib/module/item/types.js +4 -0
- package/lib/module/item/types.js.map +1 -0
- package/lib/module/kbd/Kbd.js +74 -0
- package/lib/module/kbd/Kbd.js.map +1 -0
- package/lib/module/kbd/index.js +4 -0
- package/lib/module/kbd/index.js.map +1 -0
- package/lib/module/kbd/types.js +4 -0
- package/lib/module/kbd/types.js.map +1 -0
- package/lib/module/label/Label.js +55 -0
- package/lib/module/label/Label.js.map +1 -0
- package/lib/module/label/index.js +4 -0
- package/lib/module/label/index.js.map +1 -0
- package/lib/module/label/types.js +4 -0
- package/lib/module/label/types.js.map +1 -0
- package/lib/module/popover/context.js +13 -0
- package/lib/module/popover/context.js.map +1 -0
- package/lib/module/popover/index.js +95 -0
- package/lib/module/popover/index.js.map +1 -0
- package/lib/module/popover/index.web.js +274 -0
- package/lib/module/popover/index.web.js.map +1 -0
- package/lib/module/popover/types.js +4 -0
- package/lib/module/popover/types.js.map +1 -0
- package/lib/module/react-native-css.d.js +2 -0
- package/lib/module/react-native-css.d.js.map +1 -0
- package/lib/module/slider/Slider.js +250 -0
- package/lib/module/slider/Slider.js.map +1 -0
- package/lib/module/slider/index.js +4 -0
- package/lib/module/slider/index.js.map +1 -0
- package/lib/module/slider/types.js +4 -0
- package/lib/module/slider/types.js.map +1 -0
- package/lib/module/theme/BloomThemeProvider.js +40 -8
- package/lib/module/theme/BloomThemeProvider.js.map +1 -1
- package/lib/module/theme/color-presets.js +118 -118
- package/lib/module/theme/color-presets.js.map +1 -1
- package/lib/module/theme/color-scope/index.js +29 -7
- package/lib/module/theme/color-scope/index.js.map +1 -1
- package/lib/module/theme/color-scope/style-builder.js +35 -0
- package/lib/module/theme/color-scope/style-builder.js.map +1 -1
- package/lib/module/theme/native-root-vars.js +101 -0
- package/lib/module/theme/native-root-vars.js.map +1 -0
- package/lib/module/theme/native-root-vars.web.js +23 -0
- package/lib/module/theme/native-root-vars.web.js.map +1 -0
- package/lib/module/theme/preset-vars.js +4 -1
- package/lib/module/theme/preset-vars.js.map +1 -1
- package/lib/typescript/commonjs/alert-dialog/AlertDialog.d.ts +21 -0
- package/lib/typescript/commonjs/alert-dialog/AlertDialog.d.ts.map +1 -0
- package/lib/typescript/commonjs/alert-dialog/AlertDialogHost.d.ts +15 -0
- package/lib/typescript/commonjs/alert-dialog/AlertDialogHost.d.ts.map +1 -0
- package/lib/typescript/commonjs/alert-dialog/confirm-store.d.ts +31 -0
- package/lib/typescript/commonjs/alert-dialog/confirm-store.d.ts.map +1 -0
- package/lib/typescript/commonjs/alert-dialog/index.d.ts +8 -0
- package/lib/typescript/commonjs/alert-dialog/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/alert-dialog/index.web.d.ts +8 -0
- package/lib/typescript/commonjs/alert-dialog/index.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/alert-dialog/types.d.ts +44 -0
- package/lib/typescript/commonjs/alert-dialog/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/combobox/Combobox.d.ts +33 -0
- package/lib/typescript/commonjs/combobox/Combobox.d.ts.map +1 -0
- package/lib/typescript/commonjs/combobox/index.d.ts +6 -0
- package/lib/typescript/commonjs/combobox/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/combobox/index.web.d.ts +6 -0
- package/lib/typescript/commonjs/combobox/index.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/combobox/types.d.ts +40 -0
- package/lib/typescript/commonjs/combobox/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/command/Command.d.ts +22 -0
- package/lib/typescript/commonjs/command/Command.d.ts.map +1 -0
- package/lib/typescript/commonjs/command/index.d.ts +6 -0
- package/lib/typescript/commonjs/command/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/command/index.web.d.ts +6 -0
- package/lib/typescript/commonjs/command/index.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/command/types.d.ts +46 -0
- package/lib/typescript/commonjs/command/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/field/Field.d.ts +4 -0
- package/lib/typescript/commonjs/field/Field.d.ts.map +1 -0
- package/lib/typescript/commonjs/field/index.d.ts +3 -0
- package/lib/typescript/commonjs/field/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/field/types.d.ts +26 -0
- package/lib/typescript/commonjs/field/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/common.d.ts +8 -8
- package/lib/typescript/commonjs/index.d.ts +19 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.web.d.ts +19 -0
- package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/input-group/InputGroup.d.ts +9 -0
- package/lib/typescript/commonjs/input-group/InputGroup.d.ts.map +1 -0
- package/lib/typescript/commonjs/input-group/index.d.ts +3 -0
- package/lib/typescript/commonjs/input-group/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/input-group/types.d.ts +35 -0
- package/lib/typescript/commonjs/input-group/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/item/Item.d.ts +4 -0
- package/lib/typescript/commonjs/item/Item.d.ts.map +1 -0
- package/lib/typescript/commonjs/item/index.d.ts +3 -0
- package/lib/typescript/commonjs/item/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/item/types.d.ts +45 -0
- package/lib/typescript/commonjs/item/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/kbd/Kbd.d.ts +4 -0
- package/lib/typescript/commonjs/kbd/Kbd.d.ts.map +1 -0
- package/lib/typescript/commonjs/kbd/index.d.ts +3 -0
- package/lib/typescript/commonjs/kbd/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/kbd/types.d.ts +13 -0
- package/lib/typescript/commonjs/kbd/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/label/Label.d.ts +4 -0
- package/lib/typescript/commonjs/label/Label.d.ts.map +1 -0
- package/lib/typescript/commonjs/label/index.d.ts +3 -0
- package/lib/typescript/commonjs/label/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/label/types.d.ts +27 -0
- package/lib/typescript/commonjs/label/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/popover/context.d.ts +15 -0
- package/lib/typescript/commonjs/popover/context.d.ts.map +1 -0
- package/lib/typescript/commonjs/popover/index.d.ts +14 -0
- package/lib/typescript/commonjs/popover/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/popover/index.web.d.ts +14 -0
- package/lib/typescript/commonjs/popover/index.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/popover/types.d.ts +54 -0
- package/lib/typescript/commonjs/popover/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/slider/Slider.d.ts +4 -0
- package/lib/typescript/commonjs/slider/Slider.d.ts.map +1 -0
- package/lib/typescript/commonjs/slider/index.d.ts +3 -0
- package/lib/typescript/commonjs/slider/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/slider/types.d.ts +30 -0
- package/lib/typescript/commonjs/slider/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/theme/BloomThemeProvider.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/color-scope/index.d.ts +9 -2
- package/lib/typescript/commonjs/theme/color-scope/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/color-scope/style-builder.d.ts +32 -0
- package/lib/typescript/commonjs/theme/color-scope/style-builder.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/native-root-vars.d.ts +89 -0
- package/lib/typescript/commonjs/theme/native-root-vars.d.ts.map +1 -0
- package/lib/typescript/commonjs/theme/native-root-vars.web.d.ts +20 -0
- package/lib/typescript/commonjs/theme/native-root-vars.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/theme/preset-vars.d.ts.map +1 -1
- package/lib/typescript/module/alert-dialog/AlertDialog.d.ts +21 -0
- package/lib/typescript/module/alert-dialog/AlertDialog.d.ts.map +1 -0
- package/lib/typescript/module/alert-dialog/AlertDialogHost.d.ts +15 -0
- package/lib/typescript/module/alert-dialog/AlertDialogHost.d.ts.map +1 -0
- package/lib/typescript/module/alert-dialog/confirm-store.d.ts +31 -0
- package/lib/typescript/module/alert-dialog/confirm-store.d.ts.map +1 -0
- package/lib/typescript/module/alert-dialog/index.d.ts +8 -0
- package/lib/typescript/module/alert-dialog/index.d.ts.map +1 -0
- package/lib/typescript/module/alert-dialog/index.web.d.ts +8 -0
- package/lib/typescript/module/alert-dialog/index.web.d.ts.map +1 -0
- package/lib/typescript/module/alert-dialog/types.d.ts +44 -0
- package/lib/typescript/module/alert-dialog/types.d.ts.map +1 -0
- package/lib/typescript/module/combobox/Combobox.d.ts +33 -0
- package/lib/typescript/module/combobox/Combobox.d.ts.map +1 -0
- package/lib/typescript/module/combobox/index.d.ts +6 -0
- package/lib/typescript/module/combobox/index.d.ts.map +1 -0
- package/lib/typescript/module/combobox/index.web.d.ts +6 -0
- package/lib/typescript/module/combobox/index.web.d.ts.map +1 -0
- package/lib/typescript/module/combobox/types.d.ts +40 -0
- package/lib/typescript/module/combobox/types.d.ts.map +1 -0
- package/lib/typescript/module/command/Command.d.ts +22 -0
- package/lib/typescript/module/command/Command.d.ts.map +1 -0
- package/lib/typescript/module/command/index.d.ts +6 -0
- package/lib/typescript/module/command/index.d.ts.map +1 -0
- package/lib/typescript/module/command/index.web.d.ts +6 -0
- package/lib/typescript/module/command/index.web.d.ts.map +1 -0
- package/lib/typescript/module/command/types.d.ts +46 -0
- package/lib/typescript/module/command/types.d.ts.map +1 -0
- package/lib/typescript/module/field/Field.d.ts +4 -0
- package/lib/typescript/module/field/Field.d.ts.map +1 -0
- package/lib/typescript/module/field/index.d.ts +3 -0
- package/lib/typescript/module/field/index.d.ts.map +1 -0
- package/lib/typescript/module/field/types.d.ts +26 -0
- package/lib/typescript/module/field/types.d.ts.map +1 -0
- package/lib/typescript/module/icons/common.d.ts +8 -8
- package/lib/typescript/module/index.d.ts +19 -0
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/index.web.d.ts +19 -0
- package/lib/typescript/module/index.web.d.ts.map +1 -1
- package/lib/typescript/module/input-group/InputGroup.d.ts +9 -0
- package/lib/typescript/module/input-group/InputGroup.d.ts.map +1 -0
- package/lib/typescript/module/input-group/index.d.ts +3 -0
- package/lib/typescript/module/input-group/index.d.ts.map +1 -0
- package/lib/typescript/module/input-group/types.d.ts +35 -0
- package/lib/typescript/module/input-group/types.d.ts.map +1 -0
- package/lib/typescript/module/item/Item.d.ts +4 -0
- package/lib/typescript/module/item/Item.d.ts.map +1 -0
- package/lib/typescript/module/item/index.d.ts +3 -0
- package/lib/typescript/module/item/index.d.ts.map +1 -0
- package/lib/typescript/module/item/types.d.ts +45 -0
- package/lib/typescript/module/item/types.d.ts.map +1 -0
- package/lib/typescript/module/kbd/Kbd.d.ts +4 -0
- package/lib/typescript/module/kbd/Kbd.d.ts.map +1 -0
- package/lib/typescript/module/kbd/index.d.ts +3 -0
- package/lib/typescript/module/kbd/index.d.ts.map +1 -0
- package/lib/typescript/module/kbd/types.d.ts +13 -0
- package/lib/typescript/module/kbd/types.d.ts.map +1 -0
- package/lib/typescript/module/label/Label.d.ts +4 -0
- package/lib/typescript/module/label/Label.d.ts.map +1 -0
- package/lib/typescript/module/label/index.d.ts +3 -0
- package/lib/typescript/module/label/index.d.ts.map +1 -0
- package/lib/typescript/module/label/types.d.ts +27 -0
- package/lib/typescript/module/label/types.d.ts.map +1 -0
- package/lib/typescript/module/popover/context.d.ts +15 -0
- package/lib/typescript/module/popover/context.d.ts.map +1 -0
- package/lib/typescript/module/popover/index.d.ts +14 -0
- package/lib/typescript/module/popover/index.d.ts.map +1 -0
- package/lib/typescript/module/popover/index.web.d.ts +14 -0
- package/lib/typescript/module/popover/index.web.d.ts.map +1 -0
- package/lib/typescript/module/popover/types.d.ts +54 -0
- package/lib/typescript/module/popover/types.d.ts.map +1 -0
- package/lib/typescript/module/slider/Slider.d.ts +4 -0
- package/lib/typescript/module/slider/Slider.d.ts.map +1 -0
- package/lib/typescript/module/slider/index.d.ts +3 -0
- package/lib/typescript/module/slider/index.d.ts.map +1 -0
- package/lib/typescript/module/slider/types.d.ts +30 -0
- package/lib/typescript/module/slider/types.d.ts.map +1 -0
- package/lib/typescript/module/theme/BloomThemeProvider.d.ts.map +1 -1
- package/lib/typescript/module/theme/color-scope/index.d.ts +9 -2
- package/lib/typescript/module/theme/color-scope/index.d.ts.map +1 -1
- package/lib/typescript/module/theme/color-scope/style-builder.d.ts +32 -0
- package/lib/typescript/module/theme/color-scope/style-builder.d.ts.map +1 -1
- package/lib/typescript/module/theme/native-root-vars.d.ts +89 -0
- package/lib/typescript/module/theme/native-root-vars.d.ts.map +1 -0
- package/lib/typescript/module/theme/native-root-vars.web.d.ts +20 -0
- package/lib/typescript/module/theme/native-root-vars.web.d.ts.map +1 -0
- package/lib/typescript/module/theme/preset-vars.d.ts.map +1 -1
- package/package.json +141 -1
- package/src/__tests__/Field.test.tsx +55 -0
- package/src/__tests__/InputGroup.test.tsx +44 -0
- package/src/__tests__/Item.test.tsx +73 -0
- package/src/__tests__/Kbd.test.tsx +27 -0
- package/src/__tests__/Label.test.tsx +30 -0
- package/src/__tests__/Slider.test.tsx +38 -0
- package/src/__tests__/confirm-store.test.ts +58 -0
- package/src/__tests__/native-root-vars.test.ts +125 -0
- package/src/alert-dialog/AlertDialog.stories.tsx +61 -0
- package/src/alert-dialog/AlertDialog.tsx +120 -0
- package/src/alert-dialog/AlertDialogHost.tsx +51 -0
- package/src/alert-dialog/confirm-store.ts +77 -0
- package/src/alert-dialog/index.ts +13 -0
- package/src/alert-dialog/index.web.ts +13 -0
- package/src/alert-dialog/types.ts +46 -0
- package/src/combobox/Combobox.stories.tsx +40 -0
- package/src/combobox/Combobox.tsx +274 -0
- package/src/combobox/index.ts +6 -0
- package/src/combobox/index.web.ts +6 -0
- package/src/combobox/types.ts +41 -0
- package/src/command/Command.stories.tsx +60 -0
- package/src/command/Command.tsx +276 -0
- package/src/command/index.ts +6 -0
- package/src/command/index.web.ts +6 -0
- package/src/command/types.ts +47 -0
- package/src/field/Field.stories.tsx +54 -0
- package/src/field/Field.tsx +77 -0
- package/src/field/index.ts +2 -0
- package/src/field/types.ts +26 -0
- package/src/index.ts +23 -0
- package/src/index.web.ts +23 -0
- package/src/input-group/InputGroup.stories.tsx +65 -0
- package/src/input-group/InputGroup.tsx +184 -0
- package/src/input-group/index.ts +2 -0
- package/src/input-group/types.ts +36 -0
- package/src/item/Item.stories.tsx +43 -0
- package/src/item/Item.tsx +180 -0
- package/src/item/index.ts +2 -0
- package/src/item/types.ts +45 -0
- package/src/kbd/Kbd.stories.tsx +36 -0
- package/src/kbd/Kbd.tsx +76 -0
- package/src/kbd/index.ts +2 -0
- package/src/kbd/types.ts +13 -0
- package/src/label/Label.stories.tsx +32 -0
- package/src/label/Label.tsx +64 -0
- package/src/label/index.ts +2 -0
- package/src/label/types.ts +27 -0
- package/src/popover/Popover.stories.tsx +61 -0
- package/src/popover/context.ts +26 -0
- package/src/popover/index.tsx +104 -0
- package/src/popover/index.web.tsx +325 -0
- package/src/popover/types.ts +60 -0
- package/src/react-native-css.d.ts +69 -0
- package/src/slider/Slider.stories.tsx +46 -0
- package/src/slider/Slider.tsx +275 -0
- package/src/slider/index.ts +2 -0
- package/src/slider/types.ts +30 -0
- package/src/theme/BloomThemeProvider.tsx +32 -6
- package/src/theme/color-presets.ts +118 -118
- package/src/theme/color-scope/index.tsx +30 -8
- package/src/theme/color-scope/style-builder.ts +40 -0
- package/src/theme/native-root-vars.ts +102 -0
- package/src/theme/native-root-vars.web.ts +22 -0
- package/src/theme/preset-vars.ts +4 -1
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.InputGroup = exports.Addon = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _useTheme = require("../theme/use-theme.js");
|
|
10
|
+
var _useInteractionState = require("../hooks/useInteractionState.js");
|
|
11
|
+
var _index = require("../typography/index.js");
|
|
12
|
+
var _tokens = require("../styles/tokens.js");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
15
|
+
const SIZE_CONFIG = {
|
|
16
|
+
sm: {
|
|
17
|
+
minHeight: 36,
|
|
18
|
+
paddingHorizontal: _tokens.space.sm
|
|
19
|
+
},
|
|
20
|
+
md: {
|
|
21
|
+
minHeight: 44,
|
|
22
|
+
paddingHorizontal: _tokens.space.md
|
|
23
|
+
},
|
|
24
|
+
lg: {
|
|
25
|
+
minHeight: 52,
|
|
26
|
+
paddingHorizontal: _tokens.space.lg
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
const InputGroupContext = /*#__PURE__*/(0, _react.createContext)({
|
|
30
|
+
size: 'md'
|
|
31
|
+
});
|
|
32
|
+
InputGroupContext.displayName = 'InputGroupContext';
|
|
33
|
+
const AddonComponent = function InputGroupAddon({
|
|
34
|
+
children,
|
|
35
|
+
divider = false,
|
|
36
|
+
noPadding = false,
|
|
37
|
+
style,
|
|
38
|
+
testID
|
|
39
|
+
}) {
|
|
40
|
+
const theme = (0, _useTheme.useTheme)();
|
|
41
|
+
const {
|
|
42
|
+
size
|
|
43
|
+
} = (0, _react.useContext)(InputGroupContext);
|
|
44
|
+
const cfg = SIZE_CONFIG[size];
|
|
45
|
+
|
|
46
|
+
// Plain string/number content is wrapped in a themed Text so it reads as a
|
|
47
|
+
// subdued addon label (and never trips RN's "raw text outside <Text>" rule).
|
|
48
|
+
const content = typeof children === 'string' || typeof children === 'number' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Text, {
|
|
49
|
+
numberOfLines: 1,
|
|
50
|
+
style: {
|
|
51
|
+
color: theme.colors.textSecondary,
|
|
52
|
+
fontSize: _tokens.fontSize.md
|
|
53
|
+
},
|
|
54
|
+
children: children
|
|
55
|
+
}) : children;
|
|
56
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
57
|
+
testID: testID,
|
|
58
|
+
style: [styles.addon, !noPadding && {
|
|
59
|
+
paddingHorizontal: cfg.paddingHorizontal
|
|
60
|
+
}, style],
|
|
61
|
+
children: [divider ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
62
|
+
style: [styles.divider, {
|
|
63
|
+
backgroundColor: theme.colors.borderLight
|
|
64
|
+
}]
|
|
65
|
+
}) : null, content]
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
const Addon = exports.Addon = /*#__PURE__*/(0, _react.memo)(AddonComponent);
|
|
69
|
+
Addon.displayName = 'InputGroup.Addon';
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Horizontal group that wraps an input with leading/trailing addons (icons,
|
|
73
|
+
* text, buttons, `Kbd`). Renders a single bordered chrome — radii, border,
|
|
74
|
+
* focus/error colors match Bloom's `TextField` so a group reads as one field.
|
|
75
|
+
* The input child stretches to fill the middle.
|
|
76
|
+
*
|
|
77
|
+
* ```tsx
|
|
78
|
+
* <InputGroup>
|
|
79
|
+
* <InputGroup.Addon>https://</InputGroup.Addon>
|
|
80
|
+
* <TextField.Input label="Domain" value={v} onChangeText={setV} />
|
|
81
|
+
* <InputGroup.Addon divider>
|
|
82
|
+
* <Button size="small" variant="ghost" onPress={go}>Go</Button>
|
|
83
|
+
* </InputGroup.Addon>
|
|
84
|
+
* </InputGroup>
|
|
85
|
+
* ```
|
|
86
|
+
*/
|
|
87
|
+
const InputGroupComponent = function InputGroup({
|
|
88
|
+
children,
|
|
89
|
+
isInvalid = false,
|
|
90
|
+
disabled = false,
|
|
91
|
+
size = 'md',
|
|
92
|
+
style,
|
|
93
|
+
testID
|
|
94
|
+
}) {
|
|
95
|
+
const theme = (0, _useTheme.useTheme)();
|
|
96
|
+
const cfg = SIZE_CONFIG[size];
|
|
97
|
+
const {
|
|
98
|
+
state: focused,
|
|
99
|
+
onIn: onFocus,
|
|
100
|
+
onOut: onBlur
|
|
101
|
+
} = (0, _useInteractionState.useInteractionState)();
|
|
102
|
+
const {
|
|
103
|
+
state: hovered,
|
|
104
|
+
onIn: onHoverIn,
|
|
105
|
+
onOut: onHoverOut
|
|
106
|
+
} = (0, _useInteractionState.useInteractionState)();
|
|
107
|
+
const borderColor = isInvalid ? theme.colors.negative : focused ? theme.colors.primary : hovered ? theme.colors.borderLight : 'transparent';
|
|
108
|
+
const backgroundColor = isInvalid ? theme.colors.negativeSubtle : theme.colors.contrast50;
|
|
109
|
+
const ctx = (0, _react.useMemo)(() => ({
|
|
110
|
+
size
|
|
111
|
+
}), [size]);
|
|
112
|
+
const webHandlers = _reactNative.Platform.OS === 'web' ? {
|
|
113
|
+
onMouseOver: onHoverIn,
|
|
114
|
+
onMouseOut: onHoverOut
|
|
115
|
+
} : {};
|
|
116
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(InputGroupContext.Provider, {
|
|
117
|
+
value: ctx,
|
|
118
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
119
|
+
testID: testID,
|
|
120
|
+
accessibilityState: disabled ? {
|
|
121
|
+
disabled: true
|
|
122
|
+
} : undefined
|
|
123
|
+
// Capture focus bubbling from a nested input so the whole chrome
|
|
124
|
+
// reflects focus — RN-web bubbles focus/blur, native does not but a
|
|
125
|
+
// nested TextInput's own focus ring is sufficient there.
|
|
126
|
+
,
|
|
127
|
+
onFocus: onFocus,
|
|
128
|
+
onBlur: onBlur,
|
|
129
|
+
...webHandlers,
|
|
130
|
+
style: [styles.container, {
|
|
131
|
+
minHeight: cfg.minHeight,
|
|
132
|
+
backgroundColor,
|
|
133
|
+
borderColor
|
|
134
|
+
}, disabled && styles.disabled, style],
|
|
135
|
+
children: children
|
|
136
|
+
})
|
|
137
|
+
});
|
|
138
|
+
};
|
|
139
|
+
const styles = _reactNative.StyleSheet.create({
|
|
140
|
+
container: {
|
|
141
|
+
flexDirection: 'row',
|
|
142
|
+
alignItems: 'stretch',
|
|
143
|
+
width: '100%',
|
|
144
|
+
borderRadius: _tokens.borderRadius.sm,
|
|
145
|
+
borderWidth: 2,
|
|
146
|
+
overflow: 'hidden'
|
|
147
|
+
},
|
|
148
|
+
addon: {
|
|
149
|
+
flexDirection: 'row',
|
|
150
|
+
alignItems: 'center',
|
|
151
|
+
justifyContent: 'center',
|
|
152
|
+
gap: _tokens.space.xs,
|
|
153
|
+
flexShrink: 0,
|
|
154
|
+
position: 'relative'
|
|
155
|
+
},
|
|
156
|
+
divider: {
|
|
157
|
+
position: 'absolute',
|
|
158
|
+
left: 0,
|
|
159
|
+
top: _tokens.space.sm,
|
|
160
|
+
bottom: _tokens.space.sm,
|
|
161
|
+
width: _reactNative.StyleSheet.hairlineWidth
|
|
162
|
+
},
|
|
163
|
+
disabled: {
|
|
164
|
+
opacity: 0.5
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
const InputGroupBase = /*#__PURE__*/(0, _react.memo)(InputGroupComponent);
|
|
168
|
+
InputGroupBase.displayName = 'InputGroup';
|
|
169
|
+
const InputGroup = exports.InputGroup = Object.assign(InputGroupBase, {
|
|
170
|
+
Addon
|
|
171
|
+
});
|
|
172
|
+
//# sourceMappingURL=InputGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_useTheme","_useInteractionState","_index","_tokens","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","SIZE_CONFIG","sm","minHeight","paddingHorizontal","space","md","lg","InputGroupContext","createContext","size","displayName","AddonComponent","InputGroupAddon","children","divider","noPadding","style","testID","theme","useTheme","useContext","cfg","content","jsx","Text","numberOfLines","color","colors","textSecondary","fontSize","jsxs","View","styles","addon","backgroundColor","borderLight","Addon","exports","memo","InputGroupComponent","InputGroup","isInvalid","disabled","state","focused","onIn","onFocus","onOut","onBlur","useInteractionState","hovered","onHoverIn","onHoverOut","borderColor","negative","primary","negativeSubtle","contrast50","ctx","useMemo","webHandlers","Platform","OS","onMouseOver","onMouseOut","Provider","value","accessibilityState","undefined","container","StyleSheet","create","flexDirection","alignItems","width","borderRadius","borderWidth","overflow","justifyContent","gap","xs","flexShrink","position","left","top","bottom","hairlineWidth","opacity","InputGroupBase","assign"],"sourceRoot":"../../../src","sources":["input-group/InputGroup.tsx"],"mappings":";;;;;;AAAA,I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C1E,EAAE;IAC7B2E,WAAW,EAAE,CAAC;IACdC,QAAQ,EAAE;EACZ,CAAC;EACD5C,KAAK,EAAE;IACLuC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBK,cAAc,EAAE,QAAQ;IACxBC,GAAG,EAAE3E,aAAK,CAAC4E,EAAE;IACbC,UAAU,EAAE,CAAC;IACbC,QAAQ,EAAE;EACZ,CAAC;EACDpE,OAAO,EAAE;IACPoE,QAAQ,EAAE,UAAU;IACpBC,IAAI,EAAE,CAAC;IACPC,GAAG,EAAEhF,aAAK,CAACH,EAAE;IACboF,MAAM,EAAEjF,aAAK,CAACH,EAAE;IAChByE,KAAK,EAAEJ,uBAAU,CAACgB;EACpB,CAAC;EACD5C,QAAQ,EAAE;IACR6C,OAAO,EAAE;EACX;AACF,CAAC,CAAC;AAEF,MAAMC,cAAc,gBAAG,IAAAlD,WAAI,EAACC,mBAAmB,CAAC;AAChDiD,cAAc,CAAC9E,WAAW,GAAG,YAAY;AAElC,MAAM8B,UAAU,GAAAH,OAAA,CAAAG,UAAA,GAAG3C,MAAM,CAAC4F,MAAM,CAACD,cAAc,EAAE;EAAEpD;AAAM,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "Addon", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _InputGroup.Addon;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "InputGroup", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _InputGroup.InputGroup;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
var _InputGroup = require("./InputGroup.js");
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_InputGroup","require"],"sourceRoot":"../../../src","sources":["input-group/index.ts"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["input-group/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Item = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _useTheme = require("../theme/use-theme.js");
|
|
10
|
+
var _useInteractionState = require("../hooks/useInteractionState.js");
|
|
11
|
+
var _index = require("../typography/index.js");
|
|
12
|
+
var _tokens = require("../styles/tokens.js");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
15
|
+
const DENSITY = {
|
|
16
|
+
comfortable: {
|
|
17
|
+
paddingVertical: 10,
|
|
18
|
+
minHeight: 44
|
|
19
|
+
},
|
|
20
|
+
compact: {
|
|
21
|
+
paddingVertical: 6,
|
|
22
|
+
minHeight: 36
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* A generic list row — the building block shared by settings lists, menus,
|
|
28
|
+
* combobox/command option lists, etc. Leading + trailing slots flank a
|
|
29
|
+
* title/subtitle text column (or arbitrary `children`). Pressable when an
|
|
30
|
+
* `onPress` is supplied; otherwise a static container.
|
|
31
|
+
*/
|
|
32
|
+
const ItemComponent = function Item({
|
|
33
|
+
title,
|
|
34
|
+
subtitle,
|
|
35
|
+
children,
|
|
36
|
+
leading,
|
|
37
|
+
trailing,
|
|
38
|
+
onPress,
|
|
39
|
+
onLongPress,
|
|
40
|
+
disabled = false,
|
|
41
|
+
destructive = false,
|
|
42
|
+
selected = false,
|
|
43
|
+
active = false,
|
|
44
|
+
density = 'comfortable',
|
|
45
|
+
style,
|
|
46
|
+
titleStyle,
|
|
47
|
+
subtitleStyle,
|
|
48
|
+
accessibilityLabel,
|
|
49
|
+
accessibilityHint,
|
|
50
|
+
accessibilityRole,
|
|
51
|
+
role,
|
|
52
|
+
testID
|
|
53
|
+
}) {
|
|
54
|
+
const theme = (0, _useTheme.useTheme)();
|
|
55
|
+
const {
|
|
56
|
+
state: pressed,
|
|
57
|
+
onIn: onPressIn,
|
|
58
|
+
onOut: onPressOut
|
|
59
|
+
} = (0, _useInteractionState.useInteractionState)();
|
|
60
|
+
const titleColor = destructive ? theme.colors.error : theme.colors.text;
|
|
61
|
+
const cfg = DENSITY[density];
|
|
62
|
+
const containerStyle = (0, _react.useMemo)(() => {
|
|
63
|
+
const base = {
|
|
64
|
+
flexDirection: 'row',
|
|
65
|
+
alignItems: 'center',
|
|
66
|
+
gap: _tokens.space.md,
|
|
67
|
+
paddingHorizontal: _tokens.space.lg,
|
|
68
|
+
paddingVertical: cfg.paddingVertical,
|
|
69
|
+
minHeight: cfg.minHeight,
|
|
70
|
+
borderRadius: _tokens.borderRadius.sm
|
|
71
|
+
};
|
|
72
|
+
if (selected || active) {
|
|
73
|
+
base.backgroundColor = active ? theme.colors.primaryLight : theme.colors.backgroundSecondary;
|
|
74
|
+
}
|
|
75
|
+
return base;
|
|
76
|
+
}, [cfg, selected, active, theme]);
|
|
77
|
+
const body = children != null ? children : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
78
|
+
style: styles.textColumn,
|
|
79
|
+
children: [title != null ? typeof title === 'string' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Text, {
|
|
80
|
+
numberOfLines: 1,
|
|
81
|
+
style: [styles.title, {
|
|
82
|
+
color: titleColor
|
|
83
|
+
}, titleStyle],
|
|
84
|
+
children: title
|
|
85
|
+
}) : title : null, subtitle != null ? typeof subtitle === 'string' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Text, {
|
|
86
|
+
numberOfLines: 2,
|
|
87
|
+
style: [styles.subtitle, {
|
|
88
|
+
color: theme.colors.textSecondary
|
|
89
|
+
}, subtitleStyle],
|
|
90
|
+
children: subtitle
|
|
91
|
+
}) : subtitle : null]
|
|
92
|
+
});
|
|
93
|
+
const content = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
94
|
+
style: [containerStyle, style],
|
|
95
|
+
testID: testID,
|
|
96
|
+
children: [leading != null ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
97
|
+
style: styles.slot,
|
|
98
|
+
children: leading
|
|
99
|
+
}) : null, body, trailing != null ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
100
|
+
style: styles.slot,
|
|
101
|
+
children: trailing
|
|
102
|
+
}) : null]
|
|
103
|
+
});
|
|
104
|
+
if (onPress || onLongPress) {
|
|
105
|
+
const resolvedRole = accessibilityRole ?? 'button';
|
|
106
|
+
const handlePress = disabled || !onPress ? undefined : onPress;
|
|
107
|
+
const handleLongPress = disabled || !onLongPress ? undefined : onLongPress;
|
|
108
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
109
|
+
onPress: handlePress,
|
|
110
|
+
onLongPress: handleLongPress,
|
|
111
|
+
onPressIn: disabled ? undefined : onPressIn,
|
|
112
|
+
onPressOut: disabled ? undefined : onPressOut,
|
|
113
|
+
disabled: disabled,
|
|
114
|
+
android_ripple: {
|
|
115
|
+
color: theme.colors.border
|
|
116
|
+
},
|
|
117
|
+
accessibilityRole: resolvedRole,
|
|
118
|
+
...(role ? {
|
|
119
|
+
role
|
|
120
|
+
} : {}),
|
|
121
|
+
accessibilityLabel: accessibilityLabel ?? (typeof title === 'string' ? title : undefined),
|
|
122
|
+
accessibilityHint: accessibilityHint,
|
|
123
|
+
accessibilityState: {
|
|
124
|
+
disabled,
|
|
125
|
+
selected
|
|
126
|
+
},
|
|
127
|
+
style: [disabled && styles.disabled, pressed && !disabled && styles.pressed],
|
|
128
|
+
children: content
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
132
|
+
accessibilityRole: accessibilityRole ?? 'none',
|
|
133
|
+
...(role ? {
|
|
134
|
+
role
|
|
135
|
+
} : {}),
|
|
136
|
+
accessibilityLabel: accessibilityLabel ?? (typeof title === 'string' ? title : undefined),
|
|
137
|
+
accessibilityHint: accessibilityHint,
|
|
138
|
+
accessibilityState: disabled ? {
|
|
139
|
+
disabled: true
|
|
140
|
+
} : undefined,
|
|
141
|
+
style: disabled ? styles.disabled : undefined,
|
|
142
|
+
children: content
|
|
143
|
+
});
|
|
144
|
+
};
|
|
145
|
+
const styles = _reactNative.StyleSheet.create({
|
|
146
|
+
slot: {
|
|
147
|
+
alignItems: 'center',
|
|
148
|
+
justifyContent: 'center'
|
|
149
|
+
},
|
|
150
|
+
textColumn: {
|
|
151
|
+
flex: 1,
|
|
152
|
+
minWidth: 0
|
|
153
|
+
},
|
|
154
|
+
title: {
|
|
155
|
+
fontSize: _tokens.fontSize.md,
|
|
156
|
+
fontWeight: '500',
|
|
157
|
+
lineHeight: _tokens.fontSize.md * 1.3
|
|
158
|
+
},
|
|
159
|
+
subtitle: {
|
|
160
|
+
fontSize: _tokens.fontSize.sm,
|
|
161
|
+
lineHeight: _tokens.fontSize.sm * 1.3
|
|
162
|
+
},
|
|
163
|
+
disabled: {
|
|
164
|
+
opacity: 0.5
|
|
165
|
+
},
|
|
166
|
+
pressed: {
|
|
167
|
+
opacity: 0.6
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
const Item = exports.Item = /*#__PURE__*/(0, _react.memo)(ItemComponent);
|
|
171
|
+
Item.displayName = 'Item';
|
|
172
|
+
//# sourceMappingURL=Item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_useTheme","_useInteractionState","_index","_tokens","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","DENSITY","comfortable","paddingVertical","minHeight","compact","ItemComponent","Item","title","subtitle","children","leading","trailing","onPress","onLongPress","disabled","destructive","selected","active","density","style","titleStyle","subtitleStyle","accessibilityLabel","accessibilityHint","accessibilityRole","role","testID","theme","useTheme","state","pressed","onIn","onPressIn","onOut","onPressOut","useInteractionState","titleColor","colors","error","text","cfg","containerStyle","useMemo","base","flexDirection","alignItems","gap","space","md","paddingHorizontal","lg","borderRadius","sm","backgroundColor","primaryLight","backgroundSecondary","body","jsxs","View","styles","textColumn","jsx","Text","numberOfLines","color","textSecondary","content","slot","resolvedRole","handlePress","undefined","handleLongPress","Pressable","android_ripple","border","accessibilityState","StyleSheet","create","justifyContent","flex","minWidth","fontSize","fontWeight","lineHeight","opacity","exports","memo","displayName"],"sourceRoot":"../../../src","sources":["item/Item.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,oBAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAA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O,EAAE;EACX;AACF,CAAC,CAAC;AAEK,MAAM9E,IAAI,GAAA+E,OAAA,CAAA/E,IAAA,gBAAG,IAAAgF,WAAI,EAACjF,aAAa,CAAC;AACvCC,IAAI,CAACiF,WAAW,GAAG,MAAM","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "Item", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _Item.Item;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _Item = require("./Item.js");
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_Item","require"],"sourceRoot":"../../../src","sources":["item/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["item/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Kbd = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _useTheme = require("../theme/use-theme.js");
|
|
10
|
+
var _index = require("../typography/index.js");
|
|
11
|
+
var _tokens = require("../styles/tokens.js");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
14
|
+
const SIZE_CONFIG = {
|
|
15
|
+
sm: {
|
|
16
|
+
minWidth: 18,
|
|
17
|
+
height: 18,
|
|
18
|
+
fontSize: 11,
|
|
19
|
+
paddingHorizontal: 4
|
|
20
|
+
},
|
|
21
|
+
md: {
|
|
22
|
+
minWidth: 22,
|
|
23
|
+
height: 22,
|
|
24
|
+
fontSize: 12,
|
|
25
|
+
paddingHorizontal: 6
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* A small keyboard-key chip. Bordered, monospace via the Bloom mono font
|
|
31
|
+
* token, themed for light/dark. Used to surface shortcuts (e.g. `⌘K`,
|
|
32
|
+
* `Esc`) inside menus, command palettes and tooltips.
|
|
33
|
+
*/
|
|
34
|
+
const KbdComponent = function Kbd({
|
|
35
|
+
children,
|
|
36
|
+
size = 'md',
|
|
37
|
+
style,
|
|
38
|
+
textStyle,
|
|
39
|
+
testID
|
|
40
|
+
}) {
|
|
41
|
+
const theme = (0, _useTheme.useTheme)();
|
|
42
|
+
const cfg = SIZE_CONFIG[size];
|
|
43
|
+
const monoFamily = _reactNative.Platform.OS === 'web' ? {
|
|
44
|
+
fontFamily: 'var(--bloom-font-mono)'
|
|
45
|
+
} : {
|
|
46
|
+
fontFamily: 'Geist Mono'
|
|
47
|
+
};
|
|
48
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
49
|
+
testID: testID,
|
|
50
|
+
style: [styles.container, {
|
|
51
|
+
minWidth: cfg.minWidth,
|
|
52
|
+
height: cfg.height,
|
|
53
|
+
paddingHorizontal: cfg.paddingHorizontal,
|
|
54
|
+
backgroundColor: theme.colors.backgroundSecondary,
|
|
55
|
+
borderColor: theme.colors.border
|
|
56
|
+
}, style],
|
|
57
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Text, {
|
|
58
|
+
numberOfLines: 1,
|
|
59
|
+
style: [monoFamily, {
|
|
60
|
+
fontSize: cfg.fontSize,
|
|
61
|
+
lineHeight: cfg.height,
|
|
62
|
+
color: theme.colors.textSecondary,
|
|
63
|
+
textAlign: 'center'
|
|
64
|
+
}, textStyle],
|
|
65
|
+
children: children
|
|
66
|
+
})
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
const styles = _reactNative.StyleSheet.create({
|
|
70
|
+
container: {
|
|
71
|
+
borderWidth: 1,
|
|
72
|
+
borderRadius: _tokens.borderRadius.xs,
|
|
73
|
+
alignItems: 'center',
|
|
74
|
+
justifyContent: 'center'
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
const Kbd = exports.Kbd = /*#__PURE__*/(0, _react.memo)(KbdComponent);
|
|
78
|
+
Kbd.displayName = 'Kbd';
|
|
79
|
+
//# sourceMappingURL=Kbd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_useTheme","_index","_tokens","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","SIZE_CONFIG","sm","minWidth","height","fontSize","paddingHorizontal","md","KbdComponent","Kbd","children","size","style","textStyle","testID","theme","useTheme","cfg","monoFamily","Platform","OS","fontFamily","jsx","View","styles","container","backgroundColor","colors","backgroundSecondary","borderColor","border","Text","numberOfLines","lineHeight","color","textSecondary","textAlign","StyleSheet","create","borderWidth","borderRadius","xs","alignItems","justifyContent","exports","memo","displayName"],"sourceRoot":"../../../src","sources":["kbd/Kbd.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GA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B,KAAK,CAACY,MAAM,CAACQ,aAAa;QACjCC,SAAS,EAAE;MACb,CAAC,EACDvB,SAAS,CACT;MAAAH,QAAA,EACDA;IAAQ,CACL;EAAC,CACH,CAAC;AAEX,CAAC;AAED,MAAMc,MAAM,GAAGa,uBAAU,CAACC,MAAM,CAAC;EAC/Bb,SAAS,EAAE;IACTc,WAAW,EAAE,CAAC;IACdC,YAAY,EAAEA,oBAAY,CAACC,EAAE;IAC7BC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB;AACF,CAAC,CAAC;AAEK,MAAMlC,GAAG,GAAAmC,OAAA,CAAAnC,GAAA,gBAAG,IAAAoC,WAAI,EAACrC,YAAY,CAAC;AACrCC,GAAG,CAACqC,WAAW,GAAG,KAAK","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "Kbd", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _Kbd.Kbd;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _Kbd = require("./Kbd.js");
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_Kbd","require"],"sourceRoot":"../../../src","sources":["kbd/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,IAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["kbd/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Label = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _useTheme = require("../theme/use-theme.js");
|
|
10
|
+
var _index = require("../typography/index.js");
|
|
11
|
+
var _index2 = require("../styles/index.js");
|
|
12
|
+
var _tokens = require("../styles/tokens.js");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
15
|
+
const SIZE_FONT = {
|
|
16
|
+
xs: _tokens.fontSize.xs,
|
|
17
|
+
sm: _tokens.fontSize.sm,
|
|
18
|
+
md: _tokens.fontSize.md
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Themed form label. A thin wrapper over Bloom's `Text` that applies the
|
|
23
|
+
* label typography (medium weight, secondary color) and optionally renders a
|
|
24
|
+
* required marker. On web it forwards `htmlFor` so a click focuses the
|
|
25
|
+
* associated control.
|
|
26
|
+
*/
|
|
27
|
+
const LabelComponent = function Label({
|
|
28
|
+
children,
|
|
29
|
+
nativeID,
|
|
30
|
+
htmlFor,
|
|
31
|
+
required = false,
|
|
32
|
+
disabled = false,
|
|
33
|
+
size = 'sm',
|
|
34
|
+
style,
|
|
35
|
+
testID
|
|
36
|
+
}) {
|
|
37
|
+
const theme = (0, _useTheme.useTheme)();
|
|
38
|
+
const webProps = _reactNative.Platform.OS === 'web' ? {
|
|
39
|
+
htmlFor: htmlFor ?? nativeID
|
|
40
|
+
} : {};
|
|
41
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index.Text, {
|
|
42
|
+
...webProps,
|
|
43
|
+
nativeID: nativeID,
|
|
44
|
+
testID: testID,
|
|
45
|
+
style: [_index2.atoms.font_medium, _index2.atoms.mb_sm, {
|
|
46
|
+
fontSize: SIZE_FONT[size],
|
|
47
|
+
color: disabled ? theme.colors.textTertiary : theme.colors.textSecondary
|
|
48
|
+
}, style],
|
|
49
|
+
children: [children, required ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Text, {
|
|
50
|
+
accessibilityLabel: "required",
|
|
51
|
+
style: {
|
|
52
|
+
color: theme.colors.negative
|
|
53
|
+
},
|
|
54
|
+
children: ' *'
|
|
55
|
+
}) : null]
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
const Label = exports.Label = /*#__PURE__*/(0, _react.memo)(LabelComponent);
|
|
59
|
+
Label.displayName = 'Label';
|
|
60
|
+
//# sourceMappingURL=Label.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_useTheme","_index","_index2","_tokens","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","SIZE_FONT","xs","fontSize","sm","md","LabelComponent","Label","children","nativeID","htmlFor","required","disabled","size","style","testID","theme","useTheme","webProps","Platform","OS","jsxs","Text","a","font_medium","mb_sm","color","colors","textTertiary","textSecondary","jsx","accessibilityLabel","negative","exports","memo","displayName"],"sourceRoot":"../../../src","sources":["label/Label.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA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+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "Label", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _Label.Label;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _Label = require("./Label.js");
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_Label","require"],"sourceRoot":"../../../src","sources":["label/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA","ignoreList":[]}
|