@audira/carbon-react-native 0.0.1-alpha.13 → 0.0.1-alpha.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -8
- package/lib/commonjs/_carbon-react-native/index.js +3 -1
- package/lib/commonjs/_carbon-react-native/index.js.map +1 -1
- package/lib/commonjs/_style-sheet/breakpoint.js +18 -0
- package/lib/commonjs/_style-sheet/breakpoint.js.map +1 -0
- package/lib/commonjs/_style-sheet/color.js +12 -0
- package/lib/commonjs/_style-sheet/color.js.map +1 -0
- package/lib/commonjs/_style-sheet/create.js +80 -26
- package/lib/commonjs/_style-sheet/create.js.map +1 -1
- package/lib/commonjs/_style-sheet/index.js +12 -1
- package/lib/commonjs/_style-sheet/index.js.map +1 -1
- package/lib/commonjs/_style-sheet/use.js +18 -0
- package/lib/commonjs/_style-sheet/use.js.map +1 -0
- package/lib/commonjs/components/accordion/_header.js +33 -35
- package/lib/commonjs/components/accordion/_header.js.map +1 -1
- package/lib/commonjs/components/button/base/index.js +5 -5
- package/lib/commonjs/components/button/base/index.js.map +1 -1
- package/lib/commonjs/components/button/ghost/index.js +10 -10
- package/lib/commonjs/components/button/ghost/index.js.map +1 -1
- package/lib/commonjs/components/button/ghost-danger/index.js +11 -11
- package/lib/commonjs/components/button/ghost-danger/index.js.map +1 -1
- package/lib/commonjs/components/button/ghost-icon/index.js +6 -6
- package/lib/commonjs/components/button/ghost-icon/index.js.map +1 -1
- package/lib/commonjs/components/button/primary/index.js +12 -12
- package/lib/commonjs/components/button/primary/index.js.map +1 -1
- package/lib/commonjs/components/button/primary-danger/index.js +12 -12
- package/lib/commonjs/components/button/primary-danger/index.js.map +1 -1
- package/lib/commonjs/components/button/secondary/index.js +12 -12
- package/lib/commonjs/components/button/secondary/index.js.map +1 -1
- package/lib/commonjs/components/button/tertiary/index.js +15 -15
- package/lib/commonjs/components/button/tertiary/index.js.map +1 -1
- package/lib/commonjs/components/button/tertiary-danger/index.js +14 -14
- package/lib/commonjs/components/button/tertiary-danger/index.js.map +1 -1
- package/lib/commonjs/components/checkbox/index.js +16 -18
- package/lib/commonjs/components/checkbox/index.js.map +1 -1
- package/lib/commonjs/components/checkbox-input/index.js +35 -37
- package/lib/commonjs/components/checkbox-input/index.js.map +1 -1
- package/lib/commonjs/contexts/breakpoint/BreakpointContext.js +9 -0
- package/lib/commonjs/contexts/breakpoint/BreakpointContext.js.map +1 -0
- package/lib/commonjs/contexts/breakpoint/index.js +17 -0
- package/lib/commonjs/contexts/breakpoint/index.js.map +1 -0
- package/lib/commonjs/contexts/global-config/GlobalConfigContext.js +13 -0
- package/lib/commonjs/contexts/global-config/GlobalConfigContext.js.map +1 -0
- package/lib/commonjs/contexts/global-config/index.js +10 -6
- package/lib/commonjs/contexts/global-config/index.js.map +1 -1
- package/lib/commonjs/contexts/index.js +41 -18
- package/lib/commonjs/contexts/index.js.map +1 -1
- package/lib/commonjs/contexts/theme/ThemeContext.js +14 -0
- package/lib/commonjs/contexts/theme/ThemeContext.js.map +1 -0
- package/lib/commonjs/contexts/theme/index.js +10 -7
- package/lib/commonjs/contexts/theme/index.js.map +1 -1
- package/lib/commonjs/contexts/toast/ToastContext.js +16 -0
- package/lib/commonjs/contexts/toast/ToastContext.js.map +1 -0
- package/lib/commonjs/contexts/toast/ToastContextShowConfig.js +2 -0
- package/lib/commonjs/contexts/toast/ToastContextShowConfig.js.map +1 -0
- package/lib/commonjs/contexts/toast/index.js +21 -9
- package/lib/commonjs/contexts/toast/index.js.map +1 -1
- package/lib/commonjs/globals/breakpoint/index.js +15 -0
- package/lib/commonjs/globals/breakpoint/index.js.map +1 -0
- package/lib/commonjs/globals/index.js +3 -1
- package/lib/commonjs/globals/index.js.map +1 -1
- package/lib/commonjs/{providers/toast/_types → hooks}/index.js +4 -4
- package/lib/commonjs/hooks/index.js.map +1 -0
- package/lib/commonjs/hooks/use-breakpoint/index.js +17 -0
- package/lib/commonjs/hooks/use-breakpoint/index.js.map +1 -0
- package/lib/commonjs/hooks/use-breakpoint/useBreakpoint.js +17 -0
- package/lib/commonjs/hooks/use-breakpoint/useBreakpoint.js.map +1 -0
- package/lib/commonjs/providers/breakpoint/BreakpointProvider.js +23 -0
- package/lib/commonjs/providers/breakpoint/BreakpointProvider.js.map +1 -0
- package/lib/commonjs/providers/breakpoint/BreakpointProviderProps.js +2 -0
- package/lib/commonjs/providers/breakpoint/BreakpointProviderProps.js.map +1 -0
- package/lib/commonjs/providers/breakpoint/index.js +28 -0
- package/lib/commonjs/providers/breakpoint/index.js.map +1 -0
- package/lib/commonjs/providers/global-config/GlobalConfigProvider.js +24 -0
- package/lib/commonjs/providers/global-config/GlobalConfigProvider.js.map +1 -0
- package/lib/commonjs/providers/global-config/GlobalConfigProviderProps.js +6 -0
- package/lib/commonjs/providers/global-config/GlobalConfigProviderProps.js.map +1 -0
- package/lib/commonjs/providers/global-config/index.js +21 -17
- package/lib/commonjs/providers/global-config/index.js.map +1 -1
- package/lib/commonjs/providers/index.js +41 -18
- package/lib/commonjs/providers/index.js.map +1 -1
- package/lib/commonjs/providers/theme/ThemeProvider.js +31 -0
- package/lib/commonjs/providers/theme/ThemeProvider.js.map +1 -0
- package/lib/commonjs/providers/theme/ThemeProviderProps.js +6 -0
- package/lib/commonjs/providers/theme/ThemeProviderProps.js.map +1 -0
- package/lib/commonjs/providers/theme/index.js +21 -24
- package/lib/commonjs/providers/theme/index.js.map +1 -1
- package/lib/commonjs/providers/toast/ToastProvider.js +37 -0
- package/lib/commonjs/providers/toast/ToastProvider.js.map +1 -0
- package/lib/commonjs/providers/toast/ToastProviderProps.js +2 -0
- package/lib/commonjs/providers/toast/ToastProviderProps.js.map +1 -0
- package/lib/commonjs/providers/toast/{_types/toast-ref.js → ToastRef.js} +1 -1
- package/lib/commonjs/providers/toast/ToastRef.js.map +1 -0
- package/lib/commonjs/providers/toast/_overlay/index.js +6 -4
- package/lib/commonjs/providers/toast/_overlay/index.js.map +1 -1
- package/lib/commonjs/providers/toast/index.js +31 -29
- package/lib/commonjs/providers/toast/index.js.map +1 -1
- package/lib/module/_carbon-react-native/index.js +4 -2
- package/lib/module/_carbon-react-native/index.js.map +1 -1
- package/lib/module/_style-sheet/breakpoint.js +14 -0
- package/lib/module/_style-sheet/breakpoint.js.map +1 -0
- package/lib/module/_style-sheet/color.js +8 -0
- package/lib/module/_style-sheet/color.js.map +1 -0
- package/lib/module/_style-sheet/create.js +81 -27
- package/lib/module/_style-sheet/create.js.map +1 -1
- package/lib/module/_style-sheet/index.js +12 -1
- package/lib/module/_style-sheet/index.js.map +1 -1
- package/lib/module/_style-sheet/use.js +14 -0
- package/lib/module/_style-sheet/use.js.map +1 -0
- package/lib/module/components/accordion/_header.js +33 -35
- package/lib/module/components/accordion/_header.js.map +1 -1
- package/lib/module/components/button/base/index.js +5 -5
- package/lib/module/components/button/base/index.js.map +1 -1
- package/lib/module/components/button/ghost/index.js +13 -13
- package/lib/module/components/button/ghost/index.js.map +1 -1
- package/lib/module/components/button/ghost-danger/index.js +12 -12
- package/lib/module/components/button/ghost-danger/index.js.map +1 -1
- package/lib/module/components/button/ghost-icon/index.js +6 -6
- package/lib/module/components/button/ghost-icon/index.js.map +1 -1
- package/lib/module/components/button/primary/index.js +12 -12
- package/lib/module/components/button/primary/index.js.map +1 -1
- package/lib/module/components/button/primary-danger/index.js +12 -12
- package/lib/module/components/button/primary-danger/index.js.map +1 -1
- package/lib/module/components/button/secondary/index.js +12 -12
- package/lib/module/components/button/secondary/index.js.map +1 -1
- package/lib/module/components/button/tertiary/index.js +16 -16
- package/lib/module/components/button/tertiary/index.js.map +1 -1
- package/lib/module/components/button/tertiary-danger/index.js +15 -15
- package/lib/module/components/button/tertiary-danger/index.js.map +1 -1
- package/lib/module/components/checkbox/index.js +17 -19
- package/lib/module/components/checkbox/index.js.map +1 -1
- package/lib/module/components/checkbox-input/index.js +35 -37
- package/lib/module/components/checkbox-input/index.js.map +1 -1
- package/lib/module/contexts/breakpoint/BreakpointContext.js +5 -0
- package/lib/module/contexts/breakpoint/BreakpointContext.js.map +1 -0
- package/lib/module/contexts/breakpoint/index.js +4 -0
- package/lib/module/contexts/breakpoint/index.js.map +1 -0
- package/lib/module/contexts/global-config/GlobalConfigContext.js +9 -0
- package/lib/module/contexts/global-config/GlobalConfigContext.js.map +1 -0
- package/lib/module/contexts/global-config/index.js +1 -6
- package/lib/module/contexts/global-config/index.js.map +1 -1
- package/lib/module/contexts/index.js +4 -3
- package/lib/module/contexts/index.js.map +1 -1
- package/lib/module/contexts/theme/ThemeContext.js +10 -0
- package/lib/module/contexts/theme/ThemeContext.js.map +1 -0
- package/lib/module/contexts/theme/index.js +1 -7
- package/lib/module/contexts/theme/index.js.map +1 -1
- package/lib/module/contexts/toast/ToastContext.js +12 -0
- package/lib/module/contexts/toast/ToastContext.js.map +1 -0
- package/lib/module/contexts/toast/ToastContextShowConfig.js +2 -0
- package/lib/module/contexts/toast/ToastContextShowConfig.js.map +1 -0
- package/lib/module/contexts/toast/index.js +2 -9
- package/lib/module/contexts/toast/index.js.map +1 -1
- package/lib/module/globals/breakpoint/index.js +10 -0
- package/lib/module/globals/breakpoint/index.js.map +1 -0
- package/lib/module/globals/index.js +2 -1
- package/lib/module/globals/index.js.map +1 -1
- package/lib/module/hooks/index.js +4 -0
- package/lib/module/hooks/index.js.map +1 -0
- package/lib/module/hooks/use-breakpoint/index.js +4 -0
- package/lib/module/hooks/use-breakpoint/index.js.map +1 -0
- package/lib/module/hooks/use-breakpoint/useBreakpoint.js +13 -0
- package/lib/module/hooks/use-breakpoint/useBreakpoint.js.map +1 -0
- package/lib/module/providers/breakpoint/BreakpointProvider.js +19 -0
- package/lib/module/providers/breakpoint/BreakpointProvider.js.map +1 -0
- package/lib/module/providers/breakpoint/BreakpointProviderProps.js +2 -0
- package/lib/module/providers/breakpoint/BreakpointProviderProps.js.map +1 -0
- package/lib/module/providers/breakpoint/index.js +5 -0
- package/lib/module/providers/breakpoint/index.js.map +1 -0
- package/lib/module/providers/global-config/GlobalConfigProvider.js +20 -0
- package/lib/module/providers/global-config/GlobalConfigProvider.js.map +1 -0
- package/lib/module/providers/global-config/GlobalConfigProviderProps.js +4 -0
- package/lib/module/providers/global-config/GlobalConfigProviderProps.js.map +1 -0
- package/lib/module/providers/global-config/index.js +2 -17
- package/lib/module/providers/global-config/index.js.map +1 -1
- package/lib/module/providers/index.js +4 -3
- package/lib/module/providers/index.js.map +1 -1
- package/lib/module/providers/theme/ThemeProvider.js +27 -0
- package/lib/module/providers/theme/ThemeProvider.js.map +1 -0
- package/lib/module/providers/theme/ThemeProviderProps.js +4 -0
- package/lib/module/providers/theme/ThemeProviderProps.js.map +1 -0
- package/lib/module/providers/theme/index.js +2 -24
- package/lib/module/providers/theme/index.js.map +1 -1
- package/lib/module/providers/toast/ToastProvider.js +33 -0
- package/lib/module/providers/toast/ToastProvider.js.map +1 -0
- package/lib/module/providers/toast/ToastProviderProps.js +2 -0
- package/lib/module/providers/toast/ToastProviderProps.js.map +1 -0
- package/lib/module/providers/toast/ToastRef.js +4 -0
- package/lib/module/providers/toast/ToastRef.js.map +1 -0
- package/lib/module/providers/toast/_overlay/index.js +6 -4
- package/lib/module/providers/toast/_overlay/index.js.map +1 -1
- package/lib/module/providers/toast/index.js +3 -30
- package/lib/module/providers/toast/index.js.map +1 -1
- package/lib/typescript/commonjs/src/_carbon-react-native/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/_style-sheet/breakpoint.d.ts +12 -0
- package/lib/typescript/commonjs/src/_style-sheet/breakpoint.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/_style-sheet/color.d.ts +3 -0
- package/lib/typescript/commonjs/src/_style-sheet/color.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/_style-sheet/create.d.ts +39 -2
- package/lib/typescript/commonjs/src/_style-sheet/create.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/_style-sheet/index.d.ts +20 -1
- package/lib/typescript/commonjs/src/_style-sheet/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/_style-sheet/use.d.ts +5 -0
- package/lib/typescript/commonjs/src/_style-sheet/use.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/contexts/breakpoint/BreakpointContext.d.ts +3 -0
- package/lib/typescript/commonjs/src/contexts/breakpoint/BreakpointContext.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/contexts/breakpoint/index.d.ts +2 -0
- package/lib/typescript/commonjs/src/contexts/breakpoint/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/contexts/global-config/GlobalConfigContext.d.ts +12 -0
- package/lib/typescript/commonjs/src/contexts/global-config/GlobalConfigContext.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/contexts/global-config/index.d.ts +1 -11
- package/lib/typescript/commonjs/src/contexts/global-config/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/contexts/index.d.ts +4 -3
- package/lib/typescript/commonjs/src/contexts/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/contexts/theme/ThemeContext.d.ts +8 -0
- package/lib/typescript/commonjs/src/contexts/theme/ThemeContext.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/contexts/theme/index.d.ts +1 -7
- package/lib/typescript/commonjs/src/contexts/theme/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/contexts/toast/ToastContext.d.ts +7 -0
- package/lib/typescript/commonjs/src/contexts/toast/ToastContext.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/contexts/toast/ToastContextShowConfig.d.ts +7 -0
- package/lib/typescript/commonjs/src/contexts/toast/ToastContextShowConfig.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/contexts/toast/index.d.ts +2 -11
- package/lib/typescript/commonjs/src/contexts/toast/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/globals/breakpoint/index.d.ts +4 -0
- package/lib/typescript/commonjs/src/globals/breakpoint/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/globals/index.d.ts +2 -1
- package/lib/typescript/commonjs/src/globals/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/hooks/index.d.ts +2 -0
- package/lib/typescript/commonjs/src/hooks/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hooks/use-breakpoint/index.d.ts +2 -0
- package/lib/typescript/commonjs/src/hooks/use-breakpoint/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hooks/use-breakpoint/useBreakpoint.d.ts +6 -0
- package/lib/typescript/commonjs/src/hooks/use-breakpoint/useBreakpoint.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/breakpoint/BreakpointProvider.d.ts +3 -0
- package/lib/typescript/commonjs/src/providers/breakpoint/BreakpointProvider.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/breakpoint/BreakpointProviderProps.d.ts +4 -0
- package/lib/typescript/commonjs/src/providers/breakpoint/BreakpointProviderProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/breakpoint/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/providers/breakpoint/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/global-config/GlobalConfigProvider.d.ts +3 -0
- package/lib/typescript/commonjs/src/providers/global-config/GlobalConfigProvider.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/global-config/GlobalConfigProviderProps.d.ts +5 -0
- package/lib/typescript/commonjs/src/providers/global-config/GlobalConfigProviderProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/global-config/index.d.ts +2 -5
- package/lib/typescript/commonjs/src/providers/global-config/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/index.d.ts +4 -3
- package/lib/typescript/commonjs/src/providers/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/theme/ThemeProvider.d.ts +3 -0
- package/lib/typescript/commonjs/src/providers/theme/ThemeProvider.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/theme/ThemeProviderProps.d.ts +10 -0
- package/lib/typescript/commonjs/src/providers/theme/ThemeProviderProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/theme/index.d.ts +2 -10
- package/lib/typescript/commonjs/src/providers/theme/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/toast/ToastProvider.d.ts +4 -0
- package/lib/typescript/commonjs/src/providers/toast/ToastProvider.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/toast/ToastProviderProps.d.ts +4 -0
- package/lib/typescript/commonjs/src/providers/toast/ToastProviderProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/toast/ToastRef.d.ts +4 -0
- package/lib/typescript/commonjs/src/providers/toast/ToastRef.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/toast/_overlay/index.d.ts +1 -1
- package/lib/typescript/commonjs/src/providers/toast/_overlay/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/toast/index.d.ts +3 -6
- package/lib/typescript/commonjs/src/providers/toast/index.d.ts.map +1 -1
- package/lib/typescript/module/src/_carbon-react-native/index.d.ts.map +1 -1
- package/lib/typescript/module/src/_style-sheet/breakpoint.d.ts +12 -0
- package/lib/typescript/module/src/_style-sheet/breakpoint.d.ts.map +1 -0
- package/lib/typescript/module/src/_style-sheet/color.d.ts +3 -0
- package/lib/typescript/module/src/_style-sheet/color.d.ts.map +1 -0
- package/lib/typescript/module/src/_style-sheet/create.d.ts +39 -2
- package/lib/typescript/module/src/_style-sheet/create.d.ts.map +1 -1
- package/lib/typescript/module/src/_style-sheet/index.d.ts +20 -1
- package/lib/typescript/module/src/_style-sheet/index.d.ts.map +1 -1
- package/lib/typescript/module/src/_style-sheet/use.d.ts +5 -0
- package/lib/typescript/module/src/_style-sheet/use.d.ts.map +1 -0
- package/lib/typescript/module/src/contexts/breakpoint/BreakpointContext.d.ts +3 -0
- package/lib/typescript/module/src/contexts/breakpoint/BreakpointContext.d.ts.map +1 -0
- package/lib/typescript/module/src/contexts/breakpoint/index.d.ts +2 -0
- package/lib/typescript/module/src/contexts/breakpoint/index.d.ts.map +1 -0
- package/lib/typescript/module/src/contexts/global-config/GlobalConfigContext.d.ts +12 -0
- package/lib/typescript/module/src/contexts/global-config/GlobalConfigContext.d.ts.map +1 -0
- package/lib/typescript/module/src/contexts/global-config/index.d.ts +1 -11
- package/lib/typescript/module/src/contexts/global-config/index.d.ts.map +1 -1
- package/lib/typescript/module/src/contexts/index.d.ts +4 -3
- package/lib/typescript/module/src/contexts/index.d.ts.map +1 -1
- package/lib/typescript/module/src/contexts/theme/ThemeContext.d.ts +8 -0
- package/lib/typescript/module/src/contexts/theme/ThemeContext.d.ts.map +1 -0
- package/lib/typescript/module/src/contexts/theme/index.d.ts +1 -7
- package/lib/typescript/module/src/contexts/theme/index.d.ts.map +1 -1
- package/lib/typescript/module/src/contexts/toast/ToastContext.d.ts +7 -0
- package/lib/typescript/module/src/contexts/toast/ToastContext.d.ts.map +1 -0
- package/lib/typescript/module/src/contexts/toast/ToastContextShowConfig.d.ts +7 -0
- package/lib/typescript/module/src/contexts/toast/ToastContextShowConfig.d.ts.map +1 -0
- package/lib/typescript/module/src/contexts/toast/index.d.ts +2 -11
- package/lib/typescript/module/src/contexts/toast/index.d.ts.map +1 -1
- package/lib/typescript/module/src/globals/breakpoint/index.d.ts +4 -0
- package/lib/typescript/module/src/globals/breakpoint/index.d.ts.map +1 -0
- package/lib/typescript/module/src/globals/index.d.ts +2 -1
- package/lib/typescript/module/src/globals/index.d.ts.map +1 -1
- package/lib/typescript/module/src/hooks/index.d.ts +2 -0
- package/lib/typescript/module/src/hooks/index.d.ts.map +1 -0
- package/lib/typescript/module/src/hooks/use-breakpoint/index.d.ts +2 -0
- package/lib/typescript/module/src/hooks/use-breakpoint/index.d.ts.map +1 -0
- package/lib/typescript/module/src/hooks/use-breakpoint/useBreakpoint.d.ts +6 -0
- package/lib/typescript/module/src/hooks/use-breakpoint/useBreakpoint.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/breakpoint/BreakpointProvider.d.ts +3 -0
- package/lib/typescript/module/src/providers/breakpoint/BreakpointProvider.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/breakpoint/BreakpointProviderProps.d.ts +4 -0
- package/lib/typescript/module/src/providers/breakpoint/BreakpointProviderProps.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/breakpoint/index.d.ts +3 -0
- package/lib/typescript/module/src/providers/breakpoint/index.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/global-config/GlobalConfigProvider.d.ts +3 -0
- package/lib/typescript/module/src/providers/global-config/GlobalConfigProvider.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/global-config/GlobalConfigProviderProps.d.ts +5 -0
- package/lib/typescript/module/src/providers/global-config/GlobalConfigProviderProps.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/global-config/index.d.ts +2 -5
- package/lib/typescript/module/src/providers/global-config/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/index.d.ts +4 -3
- package/lib/typescript/module/src/providers/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/theme/ThemeProvider.d.ts +3 -0
- package/lib/typescript/module/src/providers/theme/ThemeProvider.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/theme/ThemeProviderProps.d.ts +10 -0
- package/lib/typescript/module/src/providers/theme/ThemeProviderProps.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/theme/index.d.ts +2 -10
- package/lib/typescript/module/src/providers/theme/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/toast/ToastProvider.d.ts +4 -0
- package/lib/typescript/module/src/providers/toast/ToastProvider.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/toast/ToastProviderProps.d.ts +4 -0
- package/lib/typescript/module/src/providers/toast/ToastProviderProps.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/toast/ToastRef.d.ts +4 -0
- package/lib/typescript/module/src/providers/toast/ToastRef.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/toast/_overlay/index.d.ts +1 -1
- package/lib/typescript/module/src/providers/toast/_overlay/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/toast/index.d.ts +3 -6
- package/lib/typescript/module/src/providers/toast/index.d.ts.map +1 -1
- package/package.json +3 -6
- package/lib/commonjs/providers/toast/_types/index.js.map +0 -1
- package/lib/commonjs/providers/toast/_types/toast-ref.js.map +0 -1
- package/lib/module/providers/toast/_types/index.js +0 -4
- package/lib/module/providers/toast/_types/index.js.map +0 -1
- package/lib/module/providers/toast/_types/toast-ref.js +0 -4
- package/lib/module/providers/toast/_types/toast-ref.js.map +0 -1
- package/lib/typescript/commonjs/src/providers/toast/_types/index.d.ts +0 -2
- package/lib/typescript/commonjs/src/providers/toast/_types/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/toast/_types/toast-ref.d.ts +0 -4
- package/lib/typescript/commonjs/src/providers/toast/_types/toast-ref.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/toast/_types/index.d.ts +0 -2
- package/lib/typescript/module/src/providers/toast/_types/index.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/toast/_types/toast-ref.d.ts +0 -4
- package/lib/typescript/module/src/providers/toast/_types/toast-ref.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -130,9 +130,9 @@ import {
|
|
|
130
130
|
|
|
131
131
|
export default function YourReactComponent() {
|
|
132
132
|
/**
|
|
133
|
-
* Keep this to make `style` prop reactive on color scheme
|
|
133
|
+
* Keep this to make `style` prop reactive on color scheme change
|
|
134
134
|
*/
|
|
135
|
-
|
|
135
|
+
StyleSheet.use()
|
|
136
136
|
|
|
137
137
|
return (
|
|
138
138
|
<Text type="label_01" style={ style.linkText }>
|
|
@@ -141,12 +141,10 @@ export default function YourReactComponent() {
|
|
|
141
141
|
)
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
const style = StyleSheet.create(
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
},
|
|
149
|
-
}
|
|
144
|
+
const style = StyleSheet.create({
|
|
145
|
+
linkText: {
|
|
146
|
+
color: StyleSheet.color.link_primary,
|
|
147
|
+
},
|
|
150
148
|
})
|
|
151
149
|
```
|
|
152
150
|
|
|
@@ -17,7 +17,9 @@ function CarbonReactNative({
|
|
|
17
17
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ThemeProvider, {
|
|
18
18
|
colorScheme: colorScheme,
|
|
19
19
|
overrideColor: overrideColor,
|
|
20
|
-
children:
|
|
20
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.BreakpointProvider, {
|
|
21
|
+
children: children
|
|
22
|
+
})
|
|
21
23
|
})
|
|
22
24
|
});
|
|
23
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_index","require","_jsxRuntime","CarbonReactNative","globalConfig","colorScheme","overrideColor","children","jsx","GlobalConfigProvider","ThemeProvider"],"sourceRoot":"../../../src","sources":["_carbon-react-native/index.tsx"],"mappings":";;;;;;AAIA,IAAAA,MAAA,GAAAC,OAAA;
|
|
1
|
+
{"version":3,"names":["_index","require","_jsxRuntime","CarbonReactNative","globalConfig","colorScheme","overrideColor","children","jsx","GlobalConfigProvider","ThemeProvider","BreakpointProvider"],"sourceRoot":"../../../src","sources":["_carbon-react-native/index.tsx"],"mappings":";;;;;;AAIA,IAAAA,MAAA,GAAAC,OAAA;AAKqB,IAAAC,WAAA,GAAAD,OAAA;AAMd,SAASE,iBAAiBA,CAAC;EACjCC,YAAY;EACZC,WAAW;EACXC,aAAa;EACbC;AACuB,CAAC,EAAE;EAE1B,oBACC,IAAAL,WAAA,CAAAM,GAAA,EAACR,MAAA,CAAAS,oBAAoB;IAAA,GACfL,YAAY;IAAAG,QAAA,eAEjB,IAAAL,WAAA,CAAAM,GAAA,EAACR,MAAA,CAAAU,aAAa;MACbL,WAAW,EAAGA,WAAa;MAC3BC,aAAa,EAAGA,aAAe;MAAAC,QAAA,eAE/B,IAAAL,WAAA,CAAAM,GAAA,EAACR,MAAA,CAAAW,kBAAkB;QAAAJ,QAAA,EAChBA;MAAQ,CACS;IAAC,CACP;EAAC,CACK,CAAC;AAGzB","ignoreList":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.breakpoint = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Use `Breakpoint` from the `carbon-react-native-elements` to get the actual value of each breakpoint.
|
|
9
|
+
* This is just a constant name.
|
|
10
|
+
*/
|
|
11
|
+
const breakpoint = exports.breakpoint = {
|
|
12
|
+
small: 'small',
|
|
13
|
+
medium: 'medium',
|
|
14
|
+
large: 'large',
|
|
15
|
+
x_large: 'x_large',
|
|
16
|
+
max: 'max'
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=breakpoint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["breakpoint","exports","small","medium","large","x_large","max"],"sourceRoot":"../../../src","sources":["_style-sheet/breakpoint.ts"],"mappings":";;;;;;AAIA;AACA;AACA;AACA;AACO,MAAMA,UAAU,GAAAC,OAAA,CAAAD,UAAA,GACtB;EACCE,KAAK,EAAE,OAAO;EACdC,MAAM,EAAE,QAAQ;EAChBC,KAAK,EAAE,OAAO;EACdC,OAAO,EAAE,SAAS;EAClBC,GAAG,EAAE;AACN,CAA6D","ignoreList":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.color = void 0;
|
|
7
|
+
var _carbonReactNativeElements = require("@audira/carbon-react-native-elements");
|
|
8
|
+
const color = exports.color = Object.keys(_carbonReactNativeElements.Color.Token.gray_10).reduce((acc, key) => {
|
|
9
|
+
acc[key] = key;
|
|
10
|
+
return acc;
|
|
11
|
+
}, {});
|
|
12
|
+
//# sourceMappingURL=color.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_carbonReactNativeElements","require","color","exports","Object","keys","Color","Token","gray_10","reduce","acc","key"],"sourceRoot":"../../../src","sources":["_style-sheet/color.ts"],"mappings":";;;;;;AAAA,IAAAA,0BAAA,GAAAC,OAAA;AAKO,MAAMC,KAAK,GAAAC,OAAA,CAAAD,KAAA,GACjBE,MAAM,CACJC,IAAI,CAACC,gCAAK,CAACC,KAAK,CAACC,OAAO,CAAC,CACzBC,MAAM,CAAiC,CAACC,GAAG,EAAEC,GAAG,KAAK;EACrDD,GAAG,CAACC,GAAG,CAAe,GAAGA,GAAiB;EAC1C,OAAOD,GAAG;AACX,CAAC,EAAE,CAAC,CAAmC,CAAC","ignoreList":[]}
|
|
@@ -7,17 +7,63 @@ exports.create = create;
|
|
|
7
7
|
var _reactNative = require("react-native");
|
|
8
8
|
var _carbonReactNativeElements = require("@audira/carbon-react-native-elements");
|
|
9
9
|
var _index = require("../globals/index.js");
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
10
|
+
var _breakpoint = require("./breakpoint.js");
|
|
11
|
+
/**
|
|
12
|
+
* Create style sheet to help using color token of current color scheme and current breakpoint declaratively.
|
|
13
|
+
* It makes your code way more shorter which doesn't need to create conditional of current color scheme or current breakpoint in the style prop implementation
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* import {
|
|
18
|
+
* View,
|
|
19
|
+
* } from 'react-native'
|
|
20
|
+
*
|
|
21
|
+
* import {
|
|
22
|
+
* StyleSheet,
|
|
23
|
+
* } from '@audira/carbon-react-native'
|
|
24
|
+
*
|
|
25
|
+
* export function Component({ children }) {
|
|
26
|
+
* return (
|
|
27
|
+
* <View style={ style.foo }>
|
|
28
|
+
* { children }
|
|
29
|
+
* <View>
|
|
30
|
+
* )
|
|
31
|
+
* }
|
|
32
|
+
*
|
|
33
|
+
* const style = StyleSheet.create({
|
|
34
|
+
* foo: {
|
|
35
|
+
* backgroundColor: StyleSheet.color.background_inverse,
|
|
36
|
+
* // it will be resolved to the `background_inverse` of current color scheme
|
|
37
|
+
*
|
|
38
|
+
* [StyleSheet.breakpoint.medium]: {
|
|
39
|
+
* flexDirection: 'row',
|
|
40
|
+
* // this style will has row direction of flex box
|
|
41
|
+
* // for screen that equal and larger than the medium breakpoint
|
|
42
|
+
* },
|
|
43
|
+
* },
|
|
44
|
+
* })
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
function create(styles) {
|
|
48
|
+
const normalStyle = {},
|
|
49
|
+
coloredStyle = {},
|
|
50
|
+
breakpointStyle = {};
|
|
51
|
+
let containBreakpointStyle = false;
|
|
52
|
+
for (const name in styles) {
|
|
53
|
+
const style = styles[name];
|
|
54
|
+
for (const _styleProp_ in style) {
|
|
55
|
+
if (_breakpoint.breakpoint[_styleProp_]) {
|
|
56
|
+
containBreakpointStyle = true;
|
|
57
|
+
breakpointStyle[`${_styleProp_}${name}`] = style[_styleProp_];
|
|
58
|
+
} else if (colorStyleProps.indexOf(_styleProp_) > -1) {
|
|
59
|
+
/**
|
|
60
|
+
* Resolve color string to the Carbon color (if any) for style prop or attribute that contain 'color' in the name like 'color', 'backgroundColor', 'borderColor', etc
|
|
61
|
+
* @see {@link colorStyleProps}
|
|
62
|
+
*/
|
|
63
|
+
|
|
64
|
+
const styleProp = _styleProp_,
|
|
65
|
+
coloredStyleName_G10 = `${prefixColorStyleName.gray_10}${name}`,
|
|
66
|
+
coloredStyleName_G100 = `${prefixColorStyleName.gray_100}${name}`;
|
|
21
67
|
if (!coloredStyle[coloredStyleName_G10]) {
|
|
22
68
|
coloredStyle[coloredStyleName_G10] = {};
|
|
23
69
|
}
|
|
@@ -28,32 +74,40 @@ function create(fn) {
|
|
|
28
74
|
coloredStyle[coloredStyleName_G10][styleProp] = _carbonReactNativeElements.Color.Token.gray_10[colorStr] || colorStr;
|
|
29
75
|
coloredStyle[coloredStyleName_G100][styleProp] = _carbonReactNativeElements.Color.Token.gray_100[colorStr] || colorStr;
|
|
30
76
|
} else {
|
|
31
|
-
|
|
77
|
+
normalStyle[name] = style;
|
|
32
78
|
}
|
|
33
79
|
}
|
|
34
80
|
}
|
|
35
|
-
const
|
|
36
|
-
coloredStyleSheet = _reactNative.StyleSheet.create(coloredStyle)
|
|
37
|
-
|
|
81
|
+
const normalStyleSheet = _reactNative.StyleSheet.create(normalStyle),
|
|
82
|
+
coloredStyleSheet = _reactNative.StyleSheet.create(coloredStyle),
|
|
83
|
+
breakpointStyleSheet = _reactNative.StyleSheet.create(breakpointStyle);
|
|
84
|
+
return Object.keys(styles).reduce((acc, styleName) => {
|
|
38
85
|
Object.defineProperty(acc, styleName, {
|
|
39
86
|
get() {
|
|
40
|
-
const colorScheme = _index.ColorSchemeGlobal.get()
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
return [baseStyle[styleName], coloredStyleSheet[`${prefixColorStyleName.gray_100}${styleName}`]];
|
|
87
|
+
const colorScheme = _index.ColorSchemeGlobal.get(),
|
|
88
|
+
breakpoint = _index.BreakpointGlobal.get();
|
|
89
|
+
return [normalStyleSheet[styleName], colorScheme == 'gray_10' ? coloredStyleSheet[`${prefixColorStyleName.gray_10}${styleName}`] : coloredStyleSheet[`${prefixColorStyleName.gray_100}${styleName}`], containBreakpointStyle ? breakpointStyleSheet[`${breakpoint}${styleName}`] || getBreakpointUpStyle(breakpoint, breakpointStyleSheet, styleName) : null];
|
|
45
90
|
}
|
|
46
91
|
});
|
|
47
92
|
return acc;
|
|
48
93
|
}, {});
|
|
49
94
|
}
|
|
50
|
-
const colorStyleProps = ['
|
|
51
|
-
colorTokenStrings = Object.keys(_carbonReactNativeElements.Color.Token.gray_10).reduce((acc, key) => {
|
|
52
|
-
acc[key] = key;
|
|
53
|
-
return acc;
|
|
54
|
-
}, {}),
|
|
95
|
+
const colorStyleProps = ['backgroundColor', 'borderColor', 'borderEndColor', 'borderStartColor', 'borderTopColor', 'borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderBlockColor', 'borderBlockEndColor', 'borderBlockStartColor', 'color', 'overlayColor', 'textDecorationColor', 'textShadowColor', 'tintColor', 'shadowColor'],
|
|
55
96
|
prefixColorStyleName = {
|
|
56
97
|
gray_10: 'gray_10__',
|
|
57
98
|
gray_100: 'gray_100__'
|
|
58
|
-
}
|
|
99
|
+
},
|
|
100
|
+
breakpointDown = ['max', 'x_large', 'large', 'medium', 'small'];
|
|
101
|
+
function getBreakpointUpStyle(breakpoint, breakpointStyle, styleName) {
|
|
102
|
+
const bpSliced = breakpointDown.slice(breakpointDown.indexOf(breakpoint));
|
|
103
|
+
let style = null;
|
|
104
|
+
for (let i = 0; i < bpSliced.length; i++) {
|
|
105
|
+
const bpStyle = breakpointStyle[`${bpSliced[i]}${styleName}`];
|
|
106
|
+
if (bpStyle) {
|
|
107
|
+
style = bpStyle;
|
|
108
|
+
break;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
return style;
|
|
112
|
+
}
|
|
59
113
|
//# sourceMappingURL=create.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_carbonReactNativeElements","_index","create","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_carbonReactNativeElements","_index","_breakpoint","create","styles","normalStyle","coloredStyle","breakpointStyle","containBreakpointStyle","name","style","_styleProp_","breakpointStyleProps","colorStyleProps","indexOf","styleProp","coloredStyleName_G10","prefixColorStyleName","gray_10","coloredStyleName_G100","gray_100","colorStr","Color","Token","normalStyleSheet","StyleSheet","coloredStyleSheet","breakpointStyleSheet","Object","keys","reduce","acc","styleName","defineProperty","get","colorScheme","ColorSchemeGlobal","breakpoint","BreakpointGlobal","getBreakpointUpStyle","breakpointDown","bpSliced","slice","i","length","bpStyle"],"sourceRoot":"../../../src","sources":["_style-sheet/create.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,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CAACF,UAAU,EAAEV,oBAAoB,EAAEK,SAAS,CAAC,GAChE,IAAI,CACP;MACF;IACD,CAAC,CAAC;IACF,OAAOD,GAAG;EACX,CAAC,EAAE,CAAC,CAAU,CAAC;AACjB;AAEA,MACClB,eAA+E,GAC9E,CACC,iBAAiB,EACjB,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACvB,OAAO,EACP,cAAc,EACd,qBAAqB,EACrB,iBAAiB,EACjB,WAAW,EACX,aAAa,CACb;EAEFI,oBAA2D,GAC1D;IACCC,OAAO,EAAE,WAAW;IACpBE,QAAQ,EAAE;EACX,CAAC;EAEFoB,cAAiC,GAChC,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC;AAEhD,SAASD,oBAAoBA,CAC5BF,UAA2B,EAC3B9B,eAAsC,EACtCyB,SAAiB,EACF;EACf,MAAMS,QAAQ,GAAGD,cAAc,CAACE,KAAK,CAACF,cAAc,CAAC1B,OAAO,CAACuB,UAAU,CAAC,CAAC;EACzE,IAAI3B,KAAmB,GAAG,IAAI;EAE9B,KAAI,IAAIiC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGF,QAAQ,CAACG,MAAM,EAAED,CAAC,EAAE,EAAE;IACxC,MAAME,OAAO,GAAGtC,eAAe,CAAC,GAAGkC,QAAQ,CAACE,CAAC,CAAC,GAAGX,SAAS,EAAE,CAAC;IAC7D,IAAGa,OAAO,EAAE;MACXnC,KAAK,GAAGmC,OAAO;MACf;IACD;EACD;EAEA,OAAOnC,KAAK;AACb","ignoreList":[]}
|
|
@@ -5,10 +5,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.StyleSheet = void 0;
|
|
7
7
|
var _reactNative = require("react-native");
|
|
8
|
+
var _breakpoint2 = require("./breakpoint.js");
|
|
9
|
+
var _color2 = require("./color.js");
|
|
8
10
|
var _create2 = require("./create.js");
|
|
11
|
+
var _use2 = require("./use.js");
|
|
9
12
|
let StyleSheet = exports.StyleSheet = void 0;
|
|
10
13
|
(function (_StyleSheet) {
|
|
11
|
-
const create = _StyleSheet.create = _create2.create;
|
|
12
14
|
const absoluteFill = _StyleSheet.absoluteFill = _reactNative.StyleSheet.absoluteFill;
|
|
15
|
+
const absoluteFillObject = _StyleSheet.absoluteFillObject = _reactNative.StyleSheet.absoluteFillObject;
|
|
16
|
+
const compose = _StyleSheet.compose = _reactNative.StyleSheet.compose;
|
|
17
|
+
const breakpoint = _StyleSheet.breakpoint = _breakpoint2.breakpoint;
|
|
18
|
+
const color = _StyleSheet.color = _color2.color;
|
|
19
|
+
const create = _StyleSheet.create = _create2.create;
|
|
20
|
+
const flatten = _StyleSheet.flatten = _reactNative.StyleSheet.flatten;
|
|
21
|
+
const hairlineWidth = _StyleSheet.hairlineWidth = _reactNative.StyleSheet.hairlineWidth;
|
|
22
|
+
const setStyleAttributePreprocessor = _StyleSheet.setStyleAttributePreprocessor = _reactNative.StyleSheet.setStyleAttributePreprocessor;
|
|
23
|
+
const use = _StyleSheet.use = _use2.use;
|
|
13
24
|
})(StyleSheet || (exports.StyleSheet = StyleSheet = {}));
|
|
14
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_create2","StyleSheet","exports","_StyleSheet","create","_create","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_breakpoint2","_color2","_create2","_use2","StyleSheet","exports","_StyleSheet","absoluteFill","RNStyleSheet","absoluteFillObject","compose","breakpoint","_breakpoint","color","_color","create","_create","flatten","hairlineWidth","setStyleAttributePreprocessor","use","_use"],"sourceRoot":"../../../src","sources":["_style-sheet/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAIA,IAAAC,YAAA,GAAAD,OAAA;AAIA,IAAAE,OAAA,GAAAF,OAAA;AAIA,IAAAG,QAAA,GAAAH,OAAA;AAIA,IAAAI,KAAA,GAAAJ,OAAA;AAEc,IAEGK,UAAU,GAAAC,OAAA,CAAAD,UAAA;AAAA,WAAAE,WAAA;EAEnB,MAAMC,YAAY,GAAAD,WAAA,CAAAC,YAAA,GAAGC,uBAAY,CAACD,YAAY;EAE9C,MAAME,kBAAkB,GAAAH,WAAA,CAAAG,kBAAA,GAAGD,uBAAY,CAACC,kBAAkB;EAE1D,MAAMC,OAAO,GAAAJ,WAAA,CAAAI,OAAA,GAAGF,uBAAY,CAACE,OAAO;EAMpC,MAAMC,UAAU,GAAAL,WAAA,CAAAK,UAAA,GAAGC,uBAAW;EAE9B,MAAMC,KAAK,GAAAP,WAAA,CAAAO,KAAA,GAAGC,aAAM;EAEpB,MAAMC,MAAM,GAAAT,WAAA,CAAAS,MAAA,GAAGC,eAAO;EAEtB,MAAMC,OAAO,GAAAX,WAAA,CAAAW,OAAA,GAAGT,uBAAY,CAACS,OAAO;EAEpC,MAAMC,aAAa,GAAAZ,WAAA,CAAAY,aAAA,GAAGV,uBAAY,CAACU,aAAa;EAEhD,MAAMC,6BAA6B,GAAAb,WAAA,CAAAa,6BAAA,GAAGX,uBAAY,CAACW,6BAA6B;EAEhF,MAAMC,GAAG,GAAAd,WAAA,CAAAc,GAAA,GAAGC,SAAI;AAAA,GAxBPjB,UAAU,KAAAC,OAAA,CAAAD,UAAA,GAAVA,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.use = use;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _index = require("../contexts/index.js");
|
|
9
|
+
/* eslint-disable react-hooks/rules-of-hooks */
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* To keep your React Component style prop reactive on color scheme and breakpoint change
|
|
13
|
+
*/
|
|
14
|
+
function use() {
|
|
15
|
+
(0, _react.useContext)(_index.ThemeContext);
|
|
16
|
+
(0, _react.useContext)(_index.BreakpointContext);
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=use.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_index","use","useContext","ThemeContext","BreakpointContext"],"sourceRoot":"../../../src","sources":["_style-sheet/use.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,MAAA,GAAAD,OAAA;AALA;;AAUA;AACA;AACA;AACO,SAASE,GAAGA,CAAA,EAAG;EACrB,IAAAC,iBAAU,EAACC,mBAAY,CAAC;EACxB,IAAAD,iBAAU,EAACE,wBAAiB,CAAC;AAC9B","ignoreList":[]}
|
|
@@ -65,41 +65,39 @@ function Header({
|
|
|
65
65
|
})]
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
const style = _index.StyleSheet.create(
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
};
|
|
68
|
+
const style = _index.StyleSheet.create({
|
|
69
|
+
background_default: {
|
|
70
|
+
backgroundColor: 'transparent'
|
|
71
|
+
},
|
|
72
|
+
background_focused: {
|
|
73
|
+
backgroundColor: 'transparent',
|
|
74
|
+
borderWidth: 1,
|
|
75
|
+
borderColor: _index.StyleSheet.color.focus
|
|
76
|
+
},
|
|
77
|
+
background_hovered: {
|
|
78
|
+
backgroundColor: _index.StyleSheet.color.layer_hover_01
|
|
79
|
+
},
|
|
80
|
+
background_pressed: {
|
|
81
|
+
backgroundColor: _index.StyleSheet.color.layer_hover_01
|
|
82
|
+
},
|
|
83
|
+
background_disabled: {
|
|
84
|
+
backgroundColor: 'transparent'
|
|
85
|
+
},
|
|
86
|
+
text_default: {
|
|
87
|
+
color: _index.StyleSheet.color.text_primary
|
|
88
|
+
},
|
|
89
|
+
text_focused: {
|
|
90
|
+
color: _index.StyleSheet.color.text_primary
|
|
91
|
+
},
|
|
92
|
+
text_hovered: {
|
|
93
|
+
color: _index.StyleSheet.color.text_primary
|
|
94
|
+
},
|
|
95
|
+
text_pressed: {
|
|
96
|
+
color: _index.StyleSheet.color.text_primary
|
|
97
|
+
},
|
|
98
|
+
text_disabled: {
|
|
99
|
+
color: _index.StyleSheet.color.text_disabled
|
|
100
|
+
}
|
|
103
101
|
}),
|
|
104
102
|
/**
|
|
105
103
|
* Coincidentally (or not) use same value of height
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_interopRequireWildcard","_","_interopRequireDefault","_index","_index2","_index3","_index4","_index5","_headerBorder","_motion","_jsxRuntime","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","Header","size","open","flushAlignment","text","style","styleProp","buttonProps","themeContext","useContext","ThemeContext","jsxs","View","children","jsx","HeaderBorder","BaseColor","mapSizeToButtonSize","android_rippleEffectColor","color","layer_hover_01","colorStateStyle","background","background_default","focused","background_pressed","hovered","background_hovered","pressed","disabled","background_disabled","text_default","text_focused","text_hovered","text_pressed","text_disabled","icon","icon_primary","icon_disabled","iconNode","params","iconNodeRenderer","FlexStyle","self_stretch","StyleSheet","create","backgroundColor","background_focused","borderWidth","borderColor","focus","text_primary","small","medium","large","IconAnimated","Animated","createAnimatedComponent","Icon","iconColorState","iconSize","iconStyle","IconNode","isMounted","useRef","rotateZ","useSharedValue","animatedStyle","useAnimatedStyle","transform","value","useEffect","current","withTiming","Motion","toOpen","toClose","src","ChevronDown","width","height"],"sourceRoot":"../../../../src","sources":["components/accordion/_header.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAMA,IAAAC,YAAA,GAAAD,OAAA;AAMA,IAAAE,sBAAA,GAAAC,uBAAA,CAAAH,OAAA;AAOA,IAAAI,CAAA,GAAAC,sBAAA,CAAAL,OAAA;AAEA,IAAAM,MAAA,GAAAN,OAAA;AAIA,IAAAO,OAAA,GAAAP,OAAA;AAIA,IAAAQ,OAAA,GAAAR,OAAA;AAIA,IAAAS,OAAA,GAAAT,OAAA;AASA,IAAAU,OAAA,GAAAV,OAAA;AAKA,IAAAW,aAAA,GAAAX,OAAA;AAIA,IAAAY,OAAA,GAAAZ,OAAA;AAEkB,IAAAa,WAAA,GAAAb,OAAA;AAAA,SAAAK,uBAAAS,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,GAAAD,CAAA,KAAAL,CAAA;AAAA,SAAAX,wBAAAW,CAAA,EAAAK,CAAA,SAAAA,CAAA,IAAAL,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAE,OAAA,EAAAF,CAAA,QAAAM,CAAA,GAAAH,wBAAA,CAAAE,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAC,GAAA,CAAAP,CAAA,UAAAM,CAAA,CAAAE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B;MAC/DC,eAAe,EAAE;QAChBC,UAAU,EAAE;UACXxC,OAAO,EAAEuB,KAAK,CAACkB,kBAAkB;UACjCC,OAAO,EAAEnB,KAAK,CAACoB,kBAAkB;UACjCC,OAAO,EAAErB,KAAK,CAACsB,kBAAkB;UACjCC,OAAO,EAAEvB,KAAK,CAACoB,kBAAkB;UACjCI,QAAQ,EAAExB,KAAK,CAACyB;QACjB,CAAC;QACD1B,IAAI,EAAE;UACLtB,OAAO,EAAEuB,KAAK,CAAC0B,YAAY;UAC3BP,OAAO,EAAEnB,KAAK,CAAC2B,YAAY;UAC3BN,OAAO,EAAErB,KAAK,CAAC4B,YAAY;UAC3BL,OAAO,EAAEvB,KAAK,CAAC6B,YAAY;UAC3BL,QAAQ,EAAExB,KAAK,CAAC8B;QACjB,CAAC;QACDC,IAAI,EAAE;UACLtD,OAAO,EAAE0B,YAAY,CAACW,KAAK,CAACkB,YAAY;UACxCb,OAAO,EAAEhB,YAAY,CAACW,KAAK,CAACkB,YAAY;UACxCX,OAAO,EAAElB,YAAY,CAACW,KAAK,CAACkB,YAAY;UACxCT,OAAO,EAAEpB,YAAY,CAACW,KAAK,CAACkB,YAAY;UACxCR,QAAQ,EAAErB,YAAY,CAACW,KAAK,CAACmB;QAC9B;MACD,CAAE;MACFC,QAAQ,EACPA,CAAC,GAAGC,MAAM,KACTC,gBAAgB,CAAC,CAAC,CAACvC,IAAI,EAAE,GAAGsC,MAAM,CACnC;MACDnC,KAAK,EAAGqC,iBAAS,CAACC;IAAc,CAChC,CAAC;EAAA,CACG,CAAC;AAGT;AAEA,MACCtC,KAAK,GACJuC,iBAAU,CAACC,MAAM,
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_interopRequireWildcard","_","_interopRequireDefault","_index","_index2","_index3","_index4","_index5","_headerBorder","_motion","_jsxRuntime","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","Header","size","open","flushAlignment","text","style","styleProp","buttonProps","themeContext","useContext","ThemeContext","jsxs","View","children","jsx","HeaderBorder","BaseColor","mapSizeToButtonSize","android_rippleEffectColor","color","layer_hover_01","colorStateStyle","background","background_default","focused","background_pressed","hovered","background_hovered","pressed","disabled","background_disabled","text_default","text_focused","text_hovered","text_pressed","text_disabled","icon","icon_primary","icon_disabled","iconNode","params","iconNodeRenderer","FlexStyle","self_stretch","StyleSheet","create","backgroundColor","background_focused","borderWidth","borderColor","focus","text_primary","small","medium","large","IconAnimated","Animated","createAnimatedComponent","Icon","iconColorState","iconSize","iconStyle","IconNode","isMounted","useRef","rotateZ","useSharedValue","animatedStyle","useAnimatedStyle","transform","value","useEffect","current","withTiming","Motion","toOpen","toClose","src","ChevronDown","width","height"],"sourceRoot":"../../../../src","sources":["components/accordion/_header.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAMA,IAAAC,YAAA,GAAAD,OAAA;AAMA,IAAAE,sBAAA,GAAAC,uBAAA,CAAAH,OAAA;AAOA,IAAAI,CAAA,GAAAC,sBAAA,CAAAL,OAAA;AAEA,IAAAM,MAAA,GAAAN,OAAA;AAIA,IAAAO,OAAA,GAAAP,OAAA;AAIA,IAAAQ,OAAA,GAAAR,OAAA;AAIA,IAAAS,OAAA,GAAAT,OAAA;AASA,IAAAU,OAAA,GAAAV,OAAA;AAKA,IAAAW,aAAA,GAAAX,OAAA;AAIA,IAAAY,OAAA,GAAAZ,OAAA;AAEkB,IAAAa,WAAA,GAAAb,OAAA;AAAA,SAAAK,uBAAAS,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM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8 @@ const baseStyle = _reactNative.StyleSheet.create({
|
|
|
117
117
|
* Expressive only when button size is LARGE_EXPRESSIVE. You can see this link
|
|
118
118
|
* https://carbondesignsystem.com/components/button/style/#sizes
|
|
119
119
|
*/
|
|
120
|
-
function
|
|
121
|
-
return buttonSize === 'large_expressive'
|
|
120
|
+
function isExpressiveStr(buttonSize) {
|
|
121
|
+
return `${buttonSize === 'large_expressive'}`;
|
|
122
122
|
}
|
|
123
123
|
function getContainerPaddingRight(text, icon) {
|
|
124
124
|
return mapContainerPR[`text[${text}]_icon[${icon}]`];
|
|
@@ -129,7 +129,7 @@ function getContainerPaddingRight(text, icon) {
|
|
|
129
129
|
* https://carbondesignsystem.com/components/button/style/#sizes
|
|
130
130
|
*/
|
|
131
131
|
function getTextType(buttonSize) {
|
|
132
|
-
return mapTextTypeByExpressive[
|
|
132
|
+
return mapTextTypeByExpressive[isExpressiveStr(buttonSize)];
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
/**
|
|
@@ -137,10 +137,10 @@ function getTextType(buttonSize) {
|
|
|
137
137
|
* https://carbondesignsystem.com/components/button/style/#sizes
|
|
138
138
|
*/
|
|
139
139
|
function getIconSize(buttonSize) {
|
|
140
|
-
return mapIconSizeByExpressive[
|
|
140
|
+
return mapIconSizeByExpressive[isExpressiveStr(buttonSize)];
|
|
141
141
|
}
|
|
142
142
|
function getIconMarginTopStyle(buttonSize) {
|
|
143
|
-
const iconSize = mapIconSizeByExpressive[
|
|
143
|
+
const iconSize = mapIconSizeByExpressive[isExpressiveStr(buttonSize)],
|
|
144
144
|
height = Math.min(sizeStyle[buttonSize].height, sizeStyle.large_productive.height); // 48 at max
|
|
145
145
|
|
|
146
146
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_carbonReactNativeElements","_index","_index2","_index3","_jsxRuntime","Base","exports","forwardRef","size","text","icon","iconColor","iconNode","backgroundNode","style","textStyle","iconStyle","role","ariaLabel","props","ref","iconSize","getIconSize","jsxs","Pressable","sizeStyle","baseStyle","container","getContainerPaddingRight","children","jsx","Text","type","getTextType","Icon","src","width","height","color","getIconMarginTopStyle","getIconMarginLeftStyle","StyleSheet","create","FlexStyle","self_start","flex_row","justify_between","overflow","paddingLeft","Spacing","spacing_05","containerPR16","paddingRight","containerPR64","spacing_10","contentContainer","flex_initial","maxHeight","spacing_09","verticalAlign","iconML32","marginLeft","spacing_07","small","medium","large_productive","large_expressive","extra_large","mapContainerPR","mapTextTypeByExpressive","false","true","mapIconSizeByExpressive","mapIconMLByText","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_carbonReactNativeElements","_index","_index2","_index3","_jsxRuntime","Base","exports","forwardRef","size","text","icon","iconColor","iconNode","backgroundNode","style","textStyle","iconStyle","role","ariaLabel","props","ref","iconSize","getIconSize","jsxs","Pressable","sizeStyle","baseStyle","container","getContainerPaddingRight","children","jsx","Text","type","getTextType","Icon","src","width","height","color","getIconMarginTopStyle","getIconMarginLeftStyle","StyleSheet","create","FlexStyle","self_start","flex_row","justify_between","overflow","paddingLeft","Spacing","spacing_05","containerPR16","paddingRight","containerPR64","spacing_10","contentContainer","flex_initial","maxHeight","spacing_09","verticalAlign","iconML32","marginLeft","spacing_07","small","medium","large_productive","large_expressive","extra_large","mapContainerPR","mapTextTypeByExpressive","false","true","mapIconSizeByExpressive","mapIconMLByText","isExpressiveStr","buttonSize","Math","min","marginTop","hasText"],"sourceRoot":"../../../../../src","sources":["components/button/base/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,YAAA,GAAAD,OAAA;AAQA,IAAAE,0BAAA,GAAAF,OAAA;AAIA,IAAAG,MAAA,GAAAH,OAAA;AAQA,IAAAI,OAAA,GAAAJ,OAAA;AAKA,IAAAK,OAAA,GAAAL,OAAA;AAGmB,IAAAM,WAAA,GAAAN,OAAA;AAsCZ,MAAMO,IAAI,GAAAC,OAAA,CAAAD,IAAA,gBAAG,IA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AC,GAAKhB,QAAQ,GAAG;EACvC,CAAC;AACF;AAEA,SAASmB,sBAAsBA,CAACuC,OAAgB,EAAE;EACjD,OAAON,eAAe,CAAC,GAAGM,OAAO,EAAE,CAAC;AACrC","ignoreList":[]}
|
|
@@ -47,39 +47,39 @@ function Ghost({
|
|
|
47
47
|
iconStyle: [mapIconPLByText[`${!!text}`], iconStyle]
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
|
-
const colorStyle = _index2.StyleSheet.create(
|
|
50
|
+
const colorStyle = _index2.StyleSheet.create({
|
|
51
51
|
background_default: {
|
|
52
52
|
backgroundColor: 'transparent'
|
|
53
53
|
},
|
|
54
54
|
background_focused: {
|
|
55
55
|
borderWidth: 1,
|
|
56
|
-
borderColor: color.focus
|
|
56
|
+
borderColor: _index2.StyleSheet.color.focus
|
|
57
57
|
},
|
|
58
58
|
background_hovered: {
|
|
59
|
-
backgroundColor: color.background_hover
|
|
59
|
+
backgroundColor: _index2.StyleSheet.color.background_hover
|
|
60
60
|
},
|
|
61
61
|
background_pressed: {
|
|
62
|
-
backgroundColor: color.background_active
|
|
62
|
+
backgroundColor: _index2.StyleSheet.color.background_active
|
|
63
63
|
},
|
|
64
64
|
background_disabled: {
|
|
65
65
|
backgroundColor: 'transparent'
|
|
66
66
|
},
|
|
67
67
|
text_default: {
|
|
68
|
-
color: color.link_primary
|
|
68
|
+
color: _index2.StyleSheet.color.link_primary
|
|
69
69
|
},
|
|
70
70
|
text_focused: {
|
|
71
|
-
color: color.link_primary
|
|
71
|
+
color: _index2.StyleSheet.color.link_primary
|
|
72
72
|
},
|
|
73
73
|
text_hovered: {
|
|
74
|
-
color: color.link_primary_hover
|
|
74
|
+
color: _index2.StyleSheet.color.link_primary_hover
|
|
75
75
|
},
|
|
76
76
|
text_pressed: {
|
|
77
|
-
color: color.link_primary
|
|
77
|
+
color: _index2.StyleSheet.color.link_primary
|
|
78
78
|
},
|
|
79
79
|
text_disabled: {
|
|
80
|
-
color: color.text_disabled
|
|
80
|
+
color: _index2.StyleSheet.color.text_disabled
|
|
81
81
|
}
|
|
82
|
-
})
|
|
82
|
+
}),
|
|
83
83
|
style = _reactNative.StyleSheet.create({
|
|
84
84
|
iconPL8: {
|
|
85
85
|
paddingLeft: _carbonReactNativeElements.Spacing.spacing_03
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_carbonReactNativeElements","_index","_index2","_index3","_jsxRuntime","Ghost","text","iconStyle","props","themeContext","useContext","ThemeContext","jsx","BaseColor","android_rippleEffectColor","color","background_active","colorStateStyle","background","default","colorStyle","background_default","focused","background_pressed","hovered","background_hovered","pressed","disabled","background_disabled","text_default","text_focused","text_hovered","text_pressed","text_disabled","icon","link_primary","link_primary_hover","icon_disabled","mapIconPLByText","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_carbonReactNativeElements","_index","_index2","_index3","_jsxRuntime","Ghost","text","iconStyle","props","themeContext","useContext","ThemeContext","jsx","BaseColor","android_rippleEffectColor","color","background_active","colorStateStyle","background","default","colorStyle","background_default","focused","background_pressed","hovered","background_hovered","pressed","disabled","background_disabled","text_default","text_focused","text_hovered","text_pressed","text_disabled","icon","link_primary","link_primary_hover","icon_disabled","mapIconPLByText","StyleSheet","create","backgroundColor","background_focused","borderWidth","borderColor","focus","background_hover","style","RNStyleSheet","iconPL8","paddingLeft","Spacing","spacing_03","false","true"],"sourceRoot":"../../../../../src","sources":["components/button/ghost/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,YAAA,GAAAD,OAAA;AAMA,IAAAE,0BAAA,GAAAF,OAAA;AAIA,IAAAG,MAAA,GAAAH,OAAA;AAIA,IAAAI,OAAA,GAAAJ,OAAA;AAIA,IAAAK,OAAA,GAAAL,OAAA;AAGsB,IAAAM,WAAA,GAAAN,OAAA;AASf,SAASO,KAAKA,CAAC;EACrBC,IAAI;EACJC,SAAS;EACT,GAAGC;AACQ,CAAC,EAAE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WAAW,EAAE,CAAC;MACdC,WAAW,EAAEL,kBAAU,CAACxB,KAAK,CAAC8B;IAC/B,CAAC;IACDpB,kBAAkB,EAAE;MACnBgB,eAAe,EAAEF,kBAAU,CAACxB,KAAK,CAAC+B;IACnC,CAAC;IACDvB,kBAAkB,EAAE;MACnBkB,eAAe,EAAEF,kBAAU,CAACxB,KAAK,CAACC;IACnC,CAAC;IACDY,mBAAmB,EAAE;MACpBa,eAAe,EAAE;IAClB,CAAC;IAEDZ,YAAY,EAAE;MACbd,KAAK,EAAEwB,kBAAU,CAACxB,KAAK,CAACoB;IACzB,CAAC;IACDL,YAAY,EAAE;MACbf,KAAK,EAAEwB,kBAAU,CAACxB,KAAK,CAACoB;IACzB,CAAC;IACDJ,YAAY,EAAE;MACbhB,KAAK,EAAEwB,kBAAU,CAACxB,KAAK,CAACqB;IACzB,CAAC;IACDJ,YAAY,EAAE;MACbjB,KAAK,EAAEwB,kBAAU,CAACxB,KAAK,CAACoB;IACzB,CAAC;IACDF,aAAa,EAAE;MACdlB,KAAK,EAAEwB,kBAAU,CAACxB,KAAK,CAACkB;IACzB;EACD,CAAC,CAAC;EAEHc,KAAK,GACJC,uBAAY,CAACR,MAAM,CAAC;IACnBS,OAAO,EAAE;MACRC,WAAW,EAAEC,kCAAO,CAACC;IACtB;EACD,CAAC,CAAC;EAEHd,eAA+D,GAC9D;IACCe,KAAK,EAAE,IAAI;IACXC,IAAI,EAAEP,KAAK,CAACE;EACb,CAAC","ignoreList":[]}
|
|
@@ -47,39 +47,39 @@ function GhostDanger({
|
|
|
47
47
|
iconStyle: [mapIconPLByText[`${!!text}`], iconStyle]
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
|
-
const colorStyle = _index2.StyleSheet.create(
|
|
50
|
+
const colorStyle = _index2.StyleSheet.create({
|
|
51
51
|
background_default: {
|
|
52
52
|
backgroundColor: 'transparent'
|
|
53
53
|
},
|
|
54
54
|
background_focused: {
|
|
55
55
|
borderWidth: 1,
|
|
56
|
-
borderColor: color.focus
|
|
56
|
+
borderColor: _index2.StyleSheet.color.focus
|
|
57
57
|
},
|
|
58
58
|
background_hovered: {
|
|
59
|
-
backgroundColor: color.button_danger_hover
|
|
59
|
+
backgroundColor: _index2.StyleSheet.color.button_danger_hover
|
|
60
60
|
},
|
|
61
61
|
background_pressed: {
|
|
62
|
-
backgroundColor: color.button_danger_active
|
|
62
|
+
backgroundColor: _index2.StyleSheet.color.button_danger_active
|
|
63
63
|
},
|
|
64
64
|
background_disabled: {
|
|
65
|
-
backgroundColor: color.button_disabled
|
|
65
|
+
backgroundColor: _index2.StyleSheet.color.button_disabled
|
|
66
66
|
},
|
|
67
67
|
text_default: {
|
|
68
|
-
color: color.button_danger_secondary
|
|
68
|
+
color: _index2.StyleSheet.color.button_danger_secondary
|
|
69
69
|
},
|
|
70
70
|
text_focused: {
|
|
71
|
-
color: color.button_danger_secondary
|
|
71
|
+
color: _index2.StyleSheet.color.button_danger_secondary
|
|
72
72
|
},
|
|
73
73
|
text_hovered: {
|
|
74
|
-
color: color.text_on_color
|
|
74
|
+
color: _index2.StyleSheet.color.text_on_color
|
|
75
75
|
},
|
|
76
76
|
text_pressed: {
|
|
77
|
-
color: color.text_on_color
|
|
77
|
+
color: _index2.StyleSheet.color.text_on_color
|
|
78
78
|
},
|
|
79
79
|
text_disabled: {
|
|
80
|
-
color: color.text_disabled
|
|
80
|
+
color: _index2.StyleSheet.color.text_disabled
|
|
81
81
|
}
|
|
82
|
-
})
|
|
82
|
+
}),
|
|
83
83
|
style = _reactNative.StyleSheet.create({
|
|
84
84
|
iconPL8: {
|
|
85
85
|
paddingLeft: _carbonReactNativeElements.Spacing.spacing_03
|