From f123ea6a9964ca954aa8d0ed3157b2e338e2f63c Mon Sep 17 00:00:00 2001 From: Alexandru Buliga Date: Tue, 18 Dec 2018 18:39:18 +0200 Subject: [PATCH 01/20] feat(label): color prop --- .../LabelExampleColor.shorthand.tsx | 19 +++++++ .../components/Label/Variations/index.tsx | 7 ++- src/components/Label/Label.tsx | 6 +- .../teams/components/Label/labelStyles.ts | 56 +++++++++---------- .../teams/components/Label/labelVariables.ts | 24 ++++++-- 5 files changed, 76 insertions(+), 36 deletions(-) create mode 100644 docs/src/examples/components/Label/Variations/LabelExampleColor.shorthand.tsx diff --git a/docs/src/examples/components/Label/Variations/LabelExampleColor.shorthand.tsx b/docs/src/examples/components/Label/Variations/LabelExampleColor.shorthand.tsx new file mode 100644 index 0000000000..cd84c9187b --- /dev/null +++ b/docs/src/examples/components/Label/Variations/LabelExampleColor.shorthand.tsx @@ -0,0 +1,19 @@ +import React from 'react' +import _ from 'lodash' +import { Label, ProviderConsumer } from '@stardust-ui/react' + +const LabelExampleColor = () => ( + + _.keys({ ...emphasisColors, ...naturalColors }).map(color => ( + <> +