@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,256 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.createCommand = createCommand;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _useTheme = require("../theme/use-theme.js");
|
|
10
|
+
var _useControllableState = require("../hooks/useControllableState.js");
|
|
11
|
+
var _index = require("../typography/index.js");
|
|
12
|
+
var _index2 = require("../item/index.js");
|
|
13
|
+
var _index3 = require("../kbd/index.js");
|
|
14
|
+
var _index4 = require("../search-input/index.js");
|
|
15
|
+
var _tokens = require("../styles/tokens.js");
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
+
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); }
|
|
18
|
+
function defaultFilter(item, query) {
|
|
19
|
+
const q = query.trim().toLowerCase();
|
|
20
|
+
if (!q) return true;
|
|
21
|
+
if (item.label.toLowerCase().includes(q)) return true;
|
|
22
|
+
if (item.description?.toLowerCase().includes(q)) return true;
|
|
23
|
+
return (item.keywords ?? []).some(k => k.toLowerCase().includes(q));
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Build the `Command` palette bound to a platform `CenteredDialog`. The
|
|
27
|
+
* platform entry files (`index.ts` / `index.web.ts`) inject the correct one
|
|
28
|
+
* (native RN `Modal` vs pure-DOM web overlay) — this repo never relies on
|
|
29
|
+
* implicit `.web` resolution. The body is single-source.
|
|
30
|
+
*
|
|
31
|
+
* `Command` is a ⌘K command palette built on Bloom's `CenteredDialog`,
|
|
32
|
+
* `SearchInput`, an `Item` results list and `Kbd` shortcut hints. Items group
|
|
33
|
+
* by their `group` field (ungrouped first). On web the list is
|
|
34
|
+
* keyboard-navigable (Up/Down/Enter); on native, tap to select.
|
|
35
|
+
*/
|
|
36
|
+
function createCommand(CenteredDialog) {
|
|
37
|
+
const Command = function Command({
|
|
38
|
+
visible,
|
|
39
|
+
onClose,
|
|
40
|
+
items,
|
|
41
|
+
placeholder = 'Type a command or search…',
|
|
42
|
+
emptyText = 'No results found.',
|
|
43
|
+
query: queryProp,
|
|
44
|
+
onQueryChange,
|
|
45
|
+
filter = defaultFilter,
|
|
46
|
+
maxListHeight = 360,
|
|
47
|
+
style,
|
|
48
|
+
testID
|
|
49
|
+
}) {
|
|
50
|
+
const theme = (0, _useTheme.useTheme)();
|
|
51
|
+
const searchRef = (0, _react.useRef)(null);
|
|
52
|
+
const [activeIndex, setActiveIndex] = (0, _react.useState)(0);
|
|
53
|
+
const [query, setQuery] = (0, _useControllableState.useControllableState)({
|
|
54
|
+
value: queryProp,
|
|
55
|
+
defaultValue: '',
|
|
56
|
+
onChange: onQueryChange
|
|
57
|
+
});
|
|
58
|
+
const filtered = (0, _react.useMemo)(() => items.filter(it => filter(it, query)), [items, filter, query]);
|
|
59
|
+
|
|
60
|
+
// Build a flattened render list with group headers, and a parallel list of
|
|
61
|
+
// just the selectable items for keyboard navigation.
|
|
62
|
+
const {
|
|
63
|
+
entries,
|
|
64
|
+
selectable
|
|
65
|
+
} = (0, _react.useMemo)(() => {
|
|
66
|
+
const groups = new Map();
|
|
67
|
+
const ungrouped = [];
|
|
68
|
+
for (const it of filtered) {
|
|
69
|
+
if (it.group) {
|
|
70
|
+
const arr = groups.get(it.group) ?? [];
|
|
71
|
+
arr.push(it);
|
|
72
|
+
groups.set(it.group, arr);
|
|
73
|
+
} else {
|
|
74
|
+
ungrouped.push(it);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
const flat = [];
|
|
78
|
+
const sel = [];
|
|
79
|
+
const pushItem = it => {
|
|
80
|
+
flat.push({
|
|
81
|
+
type: 'item',
|
|
82
|
+
item: it,
|
|
83
|
+
selectableIndex: sel.length
|
|
84
|
+
});
|
|
85
|
+
sel.push(it);
|
|
86
|
+
};
|
|
87
|
+
for (const it of ungrouped) pushItem(it);
|
|
88
|
+
for (const [group, arr] of groups) {
|
|
89
|
+
flat.push({
|
|
90
|
+
type: 'header',
|
|
91
|
+
group
|
|
92
|
+
});
|
|
93
|
+
for (const it of arr) pushItem(it);
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
entries: flat,
|
|
97
|
+
selectable: sel
|
|
98
|
+
};
|
|
99
|
+
}, [filtered]);
|
|
100
|
+
|
|
101
|
+
// Keep the active index in range as the filtered set changes. Reset to the
|
|
102
|
+
// first selectable item whenever the query changes (derive, no effect).
|
|
103
|
+
const prevQueryRef = (0, _react.useRef)(query);
|
|
104
|
+
if (prevQueryRef.current !== query) {
|
|
105
|
+
prevQueryRef.current = query;
|
|
106
|
+
if (activeIndex !== 0) setActiveIndex(0);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
// Reset the active index and focus the search field on the closed→open
|
|
110
|
+
// transition, derived from the `visible` prop (no effect). Focusing happens
|
|
111
|
+
// on the next frame so the dialog has mounted.
|
|
112
|
+
const prevVisibleRef = (0, _react.useRef)(visible);
|
|
113
|
+
if (prevVisibleRef.current !== visible) {
|
|
114
|
+
prevVisibleRef.current = visible;
|
|
115
|
+
if (visible) {
|
|
116
|
+
if (activeIndex !== 0) setActiveIndex(0);
|
|
117
|
+
if (_reactNative.Platform.OS === 'web') {
|
|
118
|
+
requestAnimationFrame(() => searchRef.current?.focus());
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
const clampedActive = Math.min(activeIndex, Math.max(0, selectable.length - 1));
|
|
123
|
+
const select = (0, _react.useCallback)(item => {
|
|
124
|
+
if (!item || item.disabled) return;
|
|
125
|
+
item.onSelect();
|
|
126
|
+
setQuery('');
|
|
127
|
+
onClose();
|
|
128
|
+
}, [setQuery, onClose]);
|
|
129
|
+
|
|
130
|
+
// Web keyboard navigation on the search input.
|
|
131
|
+
const webKeyHandler = _reactNative.Platform.OS === 'web' ? {
|
|
132
|
+
onKeyDown: e => {
|
|
133
|
+
if (selectable.length === 0) return;
|
|
134
|
+
switch (e.key) {
|
|
135
|
+
case 'ArrowDown':
|
|
136
|
+
e.preventDefault();
|
|
137
|
+
setActiveIndex(i => (i + 1) % selectable.length);
|
|
138
|
+
break;
|
|
139
|
+
case 'ArrowUp':
|
|
140
|
+
e.preventDefault();
|
|
141
|
+
setActiveIndex(i => (i - 1 + selectable.length) % selectable.length);
|
|
142
|
+
break;
|
|
143
|
+
case 'Enter':
|
|
144
|
+
e.preventDefault();
|
|
145
|
+
select(selectable[clampedActive]);
|
|
146
|
+
break;
|
|
147
|
+
default:
|
|
148
|
+
break;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
} : {};
|
|
152
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(CenteredDialog, {
|
|
153
|
+
visible: visible,
|
|
154
|
+
onClose: onClose,
|
|
155
|
+
dismissible: true,
|
|
156
|
+
showClose: false,
|
|
157
|
+
maxWidth: 560,
|
|
158
|
+
accessibilityLabel: "Command palette",
|
|
159
|
+
cardStyle: style,
|
|
160
|
+
contentStyle: styles.content,
|
|
161
|
+
testID: testID,
|
|
162
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
163
|
+
...webKeyHandler,
|
|
164
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
165
|
+
style: [styles.searchWrap, {
|
|
166
|
+
borderBottomColor: theme.colors.borderLight
|
|
167
|
+
}],
|
|
168
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index4.SearchInput, {
|
|
169
|
+
ref: searchRef,
|
|
170
|
+
label: placeholder,
|
|
171
|
+
placeholder: placeholder,
|
|
172
|
+
value: query,
|
|
173
|
+
onChangeText: setQuery,
|
|
174
|
+
onClearText: () => setQuery(''),
|
|
175
|
+
autoFocus: _reactNative.Platform.OS !== 'web'
|
|
176
|
+
})
|
|
177
|
+
}), selectable.length === 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
178
|
+
style: styles.empty,
|
|
179
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Text, {
|
|
180
|
+
style: {
|
|
181
|
+
color: theme.colors.textSecondary,
|
|
182
|
+
fontSize: _tokens.fontSize.sm
|
|
183
|
+
},
|
|
184
|
+
children: emptyText
|
|
185
|
+
})
|
|
186
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ScrollView, {
|
|
187
|
+
style: {
|
|
188
|
+
maxHeight: maxListHeight
|
|
189
|
+
},
|
|
190
|
+
keyboardShouldPersistTaps: "handled",
|
|
191
|
+
showsVerticalScrollIndicator: false,
|
|
192
|
+
children: entries.map((entry, i) => {
|
|
193
|
+
if (entry.type === 'header') {
|
|
194
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Text, {
|
|
195
|
+
style: [styles.groupHeader, {
|
|
196
|
+
color: theme.colors.textTertiary
|
|
197
|
+
}],
|
|
198
|
+
children: entry.group
|
|
199
|
+
}, `h-${entry.group}-${i}`);
|
|
200
|
+
}
|
|
201
|
+
const item = entry.item;
|
|
202
|
+
if (!item) return null;
|
|
203
|
+
const Icon = item.icon;
|
|
204
|
+
const isActive = entry.selectableIndex === clampedActive;
|
|
205
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Item, {
|
|
206
|
+
title: item.label,
|
|
207
|
+
subtitle: item.description,
|
|
208
|
+
density: "compact",
|
|
209
|
+
disabled: item.disabled,
|
|
210
|
+
active: isActive,
|
|
211
|
+
role: "option",
|
|
212
|
+
onPress: () => select(item),
|
|
213
|
+
leading: Icon ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, {
|
|
214
|
+
size: "sm",
|
|
215
|
+
fill: theme.colors.textSecondary
|
|
216
|
+
}) : null,
|
|
217
|
+
trailing: item.shortcut ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.Kbd, {
|
|
218
|
+
size: "sm",
|
|
219
|
+
children: item.shortcut
|
|
220
|
+
}) : null
|
|
221
|
+
}, item.id);
|
|
222
|
+
})
|
|
223
|
+
})]
|
|
224
|
+
})
|
|
225
|
+
});
|
|
226
|
+
};
|
|
227
|
+
Command.displayName = 'Command';
|
|
228
|
+
return Command;
|
|
229
|
+
}
|
|
230
|
+
const styles = _reactNative.StyleSheet.create({
|
|
231
|
+
content: {
|
|
232
|
+
paddingHorizontal: 0,
|
|
233
|
+
paddingTop: 0,
|
|
234
|
+
paddingBottom: _tokens.space.xs
|
|
235
|
+
},
|
|
236
|
+
searchWrap: {
|
|
237
|
+
paddingHorizontal: _tokens.space.md,
|
|
238
|
+
paddingTop: _tokens.space.sm,
|
|
239
|
+
paddingBottom: _tokens.space.sm,
|
|
240
|
+
borderBottomWidth: _reactNative.StyleSheet.hairlineWidth
|
|
241
|
+
},
|
|
242
|
+
groupHeader: {
|
|
243
|
+
fontSize: _tokens.fontSize.xs,
|
|
244
|
+
fontWeight: '600',
|
|
245
|
+
textTransform: 'uppercase',
|
|
246
|
+
letterSpacing: 0.6,
|
|
247
|
+
paddingHorizontal: _tokens.space.lg,
|
|
248
|
+
paddingTop: _tokens.space.sm,
|
|
249
|
+
paddingBottom: _tokens.space.xs
|
|
250
|
+
},
|
|
251
|
+
empty: {
|
|
252
|
+
paddingVertical: _tokens.space._2xl,
|
|
253
|
+
alignItems: 'center'
|
|
254
|
+
}
|
|
255
|
+
});
|
|
256
|
+
//# sourceMappingURL=Command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_useTheme","_useControllableState","_index","_index2","_index3","_index4","_tokens","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","defaultFilter","item","query","q","trim","toLowerCase","label","includes","description","keywords","some","k","createCommand","CenteredDialog","Command","visible","onClose","items","placeholder","emptyText","queryProp","onQueryChange","filter","maxListHeight","style","testID","theme","useTheme","searchRef","useRef","activeIndex","setActiveIndex","useState","setQuery","useControllableState","value","defaultValue","onChange","filtered","useMemo","it","entries","selectable","groups","Map","ungrouped","group","arr","push","flat","sel","pushItem","type","selectableIndex","length","prevQueryRef","current","prevVisibleRef","Platform","OS","requestAnimationFrame","focus","clampedActive","Math","min","max","select","useCallback","disabled","onSelect","webKeyHandler","onKeyDown","key","preventDefault","jsx","dismissible","showClose","maxWidth","accessibilityLabel","cardStyle","contentStyle","styles","content","children","jsxs","View","searchWrap","borderBottomColor","colors","borderLight","SearchInput","ref","onChangeText","onClearText","autoFocus","empty","Text","color","textSecondary","fontSize","sm","ScrollView","maxHeight","keyboardShouldPersistTaps","showsVerticalScrollIndicator","map","entry","groupHeader","textTertiary","Icon","icon","isActive","Item","title","subtitle","density","active","role","onPress","leading","size","fill","trailing","shortcut","Kbd","id","displayName","StyleSheet","create","paddingHorizontal","paddingTop","paddingBottom","space","xs","md","borderBottomWidth","hairlineWid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AAG;gBAACJ,IAAI,EAAC,IAAI;gBAAArC,QAAA,EAAElF,IAAI,CAAC0H;cAAQ,CAAM,CAAC,GAAG;YAAK,GAbjE1H,IAAI,CAAC4H,EAcX,CAAC;UAEN,CAAC;QAAC,CACQ,CACb;MAAA,CACG;IAAC,CACO,CAAC;EAEnB,CAAC;EAED/G,OAAO,CAACgH,WAAW,GAAG,SAAS;EAC/B,OAAOhH,OAAO;AAChB;AAIA,MAAMmE,MAAM,GAAG8C,uBAAU,CAACC,MAAM,CAAC;EAC/B9C,OAAO,EAAE;IACP+C,iBAAiB,EAAE,CAAC;IACpBC,UAAU,EAAE,CAAC;IACbC,aAAa,EAAEC,aAAK,CAACC;EACvB,CAAC;EACD/C,UAAU,EAAE;IACV2C,iBAAiB,EAAEG,aAAK,CAACE,EAAE;IAC3BJ,UAAU,EAAEE,aAAK,CAAChC,EAAE;IACpB+B,aAAa,EAAEC,aAAK,CAAChC,EAAE;IACvBmC,iBAAiB,EAAER,uBAAU,CAACS;EAChC,CAAC;EACD7B,WAAW,EAAE;IACXR,QAAQ,EAAEA,gBAAQ,CAACkC,EAAE;IACrBI,UAAU,EAAE,KAAK;IACjBC,aAAa,EAAE,WAAW;IAC1BC,aAAa,EAAE,GAAG;IAClBV,iBAAiB,EAAEG,aAAK,CAACQ,EAAE;IAC3BV,UAAU,EAAEE,aAAK,CAAChC,EAAE;IACpB+B,aAAa,EAAEC,aAAK,CAACC;EACvB,CAAC;EACDtC,KAAK,EAAE;IACL8C,eAAe,EAAET,aAAK,CAACU,IAAI;IAC3BC,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Command = void 0;
|
|
7
|
+
var _index = require("../dialog/index");
|
|
8
|
+
var _Command = require("./Command.js");
|
|
9
|
+
const Command = exports.Command = (0, _Command.createCommand)(_index.CenteredDialog);
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_index","require","_Command","Command","exports","createCommand","CenteredDialog"],"sourceRoot":"../../../src","sources":["command/index.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAEO,MAAME,OAAO,GAAAC,OAAA,CAAAD,OAAA,GAAG,IAAAE,sBAAa,EAACC,qBAAc,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Command = void 0;
|
|
7
|
+
var _indexWeb = require("../dialog/index.web.js");
|
|
8
|
+
var _Command = require("./Command.js");
|
|
9
|
+
const Command = exports.Command = (0, _Command.createCommand)(_indexWeb.CenteredDialog);
|
|
10
|
+
//# sourceMappingURL=index.web.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_indexWeb","require","_Command","Command","exports","createCommand","CenteredDialog"],"sourceRoot":"../../../src","sources":["command/index.web.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAEO,MAAME,OAAO,GAAAC,OAAA,CAAAD,OAAA,GAAG,IAAAE,sBAAa,EAACC,wBAAc,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["command/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Field = 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("../label/index.js");
|
|
12
|
+
var _index3 = require("../styles/index.js");
|
|
13
|
+
var _tokens = require("../styles/tokens.js");
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
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); }
|
|
16
|
+
/**
|
|
17
|
+
* Standalone form-field wrapper: an optional `Label`, the control (passed as
|
|
18
|
+
* `children`), and a description **or** error message below it. Composes
|
|
19
|
+
* Bloom's `Label`. Unlike `TextField` — which bakes its label/error into the
|
|
20
|
+
* input chrome — `Field` wraps any arbitrary control (a `Switch`, a
|
|
21
|
+
* `SegmentedControl`, a custom picker, etc.).
|
|
22
|
+
*/
|
|
23
|
+
const FieldComponent = function Field({
|
|
24
|
+
children,
|
|
25
|
+
label,
|
|
26
|
+
description,
|
|
27
|
+
error,
|
|
28
|
+
required = false,
|
|
29
|
+
disabled = false,
|
|
30
|
+
nativeID,
|
|
31
|
+
style,
|
|
32
|
+
testID
|
|
33
|
+
}) {
|
|
34
|
+
const theme = (0, _useTheme.useTheme)();
|
|
35
|
+
const hasError = typeof error === 'string' && error.length > 0;
|
|
36
|
+
const descriptionID = nativeID ? `${nativeID}-description` : undefined;
|
|
37
|
+
const errorID = nativeID ? `${nativeID}-error` : undefined;
|
|
38
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
39
|
+
style: [_index3.atoms.w_full, style],
|
|
40
|
+
testID: testID,
|
|
41
|
+
children: [label != null ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Label, {
|
|
42
|
+
htmlFor: nativeID,
|
|
43
|
+
required: required,
|
|
44
|
+
disabled: disabled,
|
|
45
|
+
children: label
|
|
46
|
+
}) : null, children, hasError ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Text, {
|
|
47
|
+
nativeID: errorID,
|
|
48
|
+
accessibilityRole: "alert",
|
|
49
|
+
style: [{
|
|
50
|
+
fontSize: _tokens.fontSize.sm,
|
|
51
|
+
color: theme.colors.negative,
|
|
52
|
+
marginTop: _tokens.space.xs
|
|
53
|
+
}],
|
|
54
|
+
children: error
|
|
55
|
+
}) : description != null ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Text, {
|
|
56
|
+
nativeID: descriptionID,
|
|
57
|
+
style: [{
|
|
58
|
+
fontSize: _tokens.fontSize.sm,
|
|
59
|
+
color: disabled ? theme.colors.textTertiary : theme.colors.textSecondary,
|
|
60
|
+
marginTop: _tokens.space.xs
|
|
61
|
+
}],
|
|
62
|
+
children: description
|
|
63
|
+
}) : null]
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
const Field = exports.Field = /*#__PURE__*/(0, _react.memo)(FieldComponent);
|
|
67
|
+
Field.displayName = 'Field';
|
|
68
|
+
//# sourceMappingURL=Field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_useTheme","_index","_index2","_index3","_tokens","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","FieldComponent","Field","children","label","description","error","required","disabled","nativeID","style","testID","theme","useTheme","hasError","length","descriptionID","undefined","errorID","jsxs","View","a","w_full","jsx","Label","htmlFor","Text","accessibilityRole","fontSize","sm","color","colors","negative","marginTop","space","xs","textTertiary","textSecondary","exports","memo","displayName"],"sourceRoot":"../../../src","sources":["field/Field.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;AACA,IAAAM,OAAA,GAAAN,OAAA;AAAmD,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAD,wBAAAS,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAX,uBAAA,YAAAA,CAAAS,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAA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AAEA,gBAAQ,CAACC,EAAE;QACrBC,KAAK,EAAElB,KAAK,CAACmB,MAAM,CAACC,QAAQ;QAC5BC,SAAS,EAAEC,aAAK,CAACC;MACnB,CAAC,CACD;MAAAhC,QAAA,EACDG;IAAK,CACF,CAAC,GACLD,WAAW,IAAI,IAAI,gBACrB,IAAAxB,WAAA,CAAA0C,GAAA,EAAC9C,MAAA,CAAAiD,IAAI;MACHjB,QAAQ,EAAEO,aAAc;MACxBN,KAAK,EAAE,CACL;QACEkB,QAAQ,EAAEA,gBAAQ,CAACC,EAAE;QACrBC,KAAK,EAAEtB,QAAQ,GACXI,KAAK,CAACmB,MAAM,CAACK,YAAY,GACzBxB,KAAK,CAACmB,MAAM,CAACM,aAAa;QAC9BJ,SAAS,EAAEC,aAAK,CAACC;MACnB,CAAC,CACD;MAAAhC,QAAA,EACDE;IAAW,CACR,CAAC,GACL,IAAI;EAAA,CACJ,CAAC;AAEX,CAAC;AAEM,MAAMH,KAAK,GAAAoC,OAAA,CAAApC,KAAA,gBAAG,IAAAqC,WAAI,EAACtC,cAAc,CAAC;AACzCC,KAAK,CAACsC,WAAW,GAAG,OAAO","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "Field", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _Field.Field;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _Field = require("./Field.js");
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_Field","require"],"sourceRoot":"../../../src","sources":["field/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["field/types.ts"],"mappings":"","ignoreList":[]}
|