@orangesk/orange-design-system 2.0.0-beta.19 → 2.0.0-beta.20
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 +346 -19
- package/build/components/Accordion/style.css +1 -1
- package/build/components/Accordion/style.css.map +1 -1
- package/build/components/Alert/style.css +1 -1
- package/build/components/Alert/style.css.map +1 -1
- package/build/components/AnchorNavigation/style.css +1 -1
- package/build/components/AnchorNavigation/style.css.map +1 -1
- package/build/components/BlockAction/style.css +1 -1
- package/build/components/BlockAction/style.css.map +1 -1
- package/build/components/CarouselPromotions/style.css +1 -1
- package/build/components/CarouselPromotions/style.css.map +1 -1
- package/build/components/FeatureAccordion/style.css +1 -1
- package/build/components/FeatureAccordion/style.css.map +1 -1
- package/build/components/Footer/style.css +1 -1
- package/build/components/Footer/style.css.map +1 -1
- package/build/components/Hero/style.css +1 -1
- package/build/components/Hero/style.css.map +1 -1
- package/build/components/Megamenu/style.css +1 -1
- package/build/components/Megamenu/style.css.map +1 -1
- package/build/components/Modal/style.css +1 -1
- package/build/components/Modal/style.css.map +1 -1
- package/build/components/Progress/style.css +1 -1
- package/build/components/Progress/style.css.map +1 -1
- package/build/components/PromoBanner/style.css +1 -1
- package/build/components/PromoBanner/style.css.map +1 -1
- package/build/components/PromotionCard/style.css +1 -1
- package/build/components/PromotionCard/style.css.map +1 -1
- package/build/components/Tag/style.css +1 -1
- package/build/components/Tag/style.css.map +1 -1
- package/build/components/Tile/style.css +1 -1
- package/build/components/Tile/style.css.map +1 -1
- package/build/components/index.js +1 -1
- package/build/components/index.js.map +1 -1
- package/build/components/tsconfig.tsbuildinfo +1 -1
- package/build/components/types/index.d.ts +5 -40
- package/build/components/types/src/components/Alert/Alert.d.ts +0 -2
- package/build/components/types/src/components/AnchorNavigation/AnchorNavigation.d.ts +1 -2
- package/build/components/types/src/components/BlockAction/BlockAction.d.ts +2 -0
- package/build/components/types/src/components/BlockAction/Context.d.ts +2 -0
- package/build/components/types/src/components/Breadcrumbs/Breadcrumbs.d.ts +0 -2
- package/build/components/types/src/components/Button/Button.d.ts +0 -1
- package/build/components/types/src/components/Card/index.d.ts +1 -0
- package/build/components/types/src/components/Carousel/Carousel.d.ts +0 -2
- package/build/components/types/src/components/CarouselHero/CarouselHero.d.ts +0 -1
- package/build/components/types/src/components/CarouselPromotions/CarouselPromotions.d.ts +0 -1
- package/build/components/types/src/components/Controls/Controls.d.ts +0 -1
- package/build/components/types/src/components/Expander/Expander.d.ts +0 -3
- package/build/components/types/src/components/FeatureAccordion/FeatureAccordion.d.ts +0 -2
- package/build/components/types/src/components/Forms/InputStepper/InputStepper.d.ts +0 -1
- package/build/components/types/src/components/Hero/Hero.d.ts +0 -3
- package/build/components/types/src/components/Icon/iconSearchTags.d.ts +167 -166
- package/build/components/types/src/components/Link/Link.d.ts +0 -2
- package/build/components/types/src/components/Megamenu/static.d.ts +2 -3
- package/build/components/types/src/components/Modal/Modal.d.ts +0 -2
- package/build/components/types/src/components/Pagination/Pagination.d.ts +0 -2
- package/build/components/types/src/components/Pill/Pill.d.ts +0 -1
- package/build/components/types/src/components/Progress/Progress.d.ts +0 -1
- package/build/components/types/src/components/PromoBanner/PromoBanner.d.ts +1 -2
- package/build/components/types/src/components/PromotionCard/PromotionCard.d.ts +2 -2
- package/build/components/types/src/components/Stepbar/Stepbar.d.ts +0 -2
- package/build/components/types/src/components/Table/Table.d.ts +0 -2
- package/build/components/types/src/components/Tabs/Tabs.d.ts +0 -2
- package/build/components/types/src/components/Tooltip/Tooltip.d.ts +0 -1
- package/build/components/types/src/scripts/index.d.ts +2 -3
- package/build/components/types/src/styles/export/color.d.ts +102 -20
- package/build/lib/base.css +1 -1
- package/build/lib/base.css.map +1 -1
- package/build/lib/components.css +1 -1
- package/build/lib/components.css.map +1 -1
- package/build/lib/footer.css +1 -1
- package/build/lib/footer.css.map +1 -1
- package/build/lib/megamenu.css +1 -1
- package/build/lib/megamenu.css.map +1 -1
- package/build/lib/megamenu.js +1 -1
- package/build/lib/megamenu.js.map +1 -1
- package/build/lib/scripts.js +1 -1
- package/build/lib/scripts.js.map +1 -1
- package/build/lib/style.css +1 -1
- package/build/lib/style.css.map +1 -1
- package/build/lib/tsconfig.tsbuildinfo +1 -1
- package/build/lib/utilities.css +1 -1
- package/build/lib/utilities.css.map +1 -1
- package/build/sprite.svg +1 -1
- package/package.json +13 -13
- package/src/assets/icons/quote.svg +4 -0
- package/src/components/Accordion/styles/mixins.scss +2 -0
- package/src/components/Alert/Alert.tsx +0 -6
- package/src/components/Alert/styles/mixins.scss +3 -1
- package/src/components/Alert/tests/Alert.test.js +0 -14
- package/src/components/AnchorNavigation/AnchorNavigation.tsx +1 -10
- package/src/components/AnchorNavigation/tests/AnchorNavigation.conformance.test.js +0 -9
- package/src/components/BlockAction/BlockAction.tsx +10 -3
- package/src/components/BlockAction/Context.tsx +4 -0
- package/src/components/BlockAction/styles/mixins.scss +6 -0
- package/src/components/BlockAction/styles/style.scss +5 -0
- package/src/components/Breadcrumbs/BreadcrumbItem.tsx +16 -7
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +4 -12
- package/src/components/Breadcrumbs/tests/BreadcrumbItem.unit.test.js +14 -8
- package/src/components/Breadcrumbs/tests/Breadcrumbs.integration.test.js +14 -37
- package/src/components/Breadcrumbs/tests/Breadcrumbs.unit.test.js +19 -23
- package/src/components/Button/Button.tsx +0 -4
- package/src/components/Button/tests/Button.test.js +0 -10
- package/src/components/Card/index.ts +1 -0
- package/src/components/Carousel/Carousel.static.ts +5 -0
- package/src/components/Carousel/Carousel.tsx +0 -5
- package/src/components/Carousel/tests/Carousel.unit.test.js +0 -21
- package/src/components/CarouselHero/CarouselHero.tsx +1 -9
- package/src/components/CarouselHero/tests/CarouselHero.conformance.test.js +0 -1
- package/src/components/CarouselHero/tests/CarouselHero.unit.test.js +0 -14
- package/src/components/CarouselPromotions/CarouselPromotions.tsx +1 -6
- package/src/components/CarouselPromotions/styles/mixins.scss +6 -3
- package/src/components/CarouselPromotions/tests/CarouselPromotions.unit.test.js +0 -17
- package/src/components/Controls/Controls.tsx +2 -7
- package/src/components/Controls/tests/Controls.test.js +0 -23
- package/src/components/Expander/Expander.tsx +0 -6
- package/src/components/Expander/tests/Expander.conformance.test.js +8 -12
- package/src/components/Expander/tests/Expander.unit.test.js +37 -47
- package/src/components/FeatureAccordion/FeatureAccordion.tsx +2 -12
- package/src/components/FeatureAccordion/styles/mixins.scss +6 -14
- package/src/components/FeatureAccordion/styles/style.scss +2 -4
- package/src/components/FeatureAccordion/tests/FeatureAccordion.unit.test.js +0 -5
- package/src/components/Footer/styles/mixins.scss +1 -0
- package/src/components/Forms/InputStepper/InputStepper.tsx +0 -4
- package/src/components/Forms/Label/styles/config.scss +3 -0
- package/src/components/Hero/Hero.tsx +2 -16
- package/src/components/Hero/styles/style.scss +0 -14
- package/src/components/Hero/tests/Hero.unit.test.js +109 -119
- package/src/components/Icon/iconSearchTags.ts +167 -166
- package/src/components/Link/Link.tsx +0 -5
- package/src/components/Link/tests/Link.conformance.test.js +1 -7
- package/src/components/Link/tests/Link.unit.test.js +0 -20
- package/src/components/Megamenu/static.ts +5 -2
- package/src/components/Modal/Modal.tsx +0 -5
- package/src/components/Modal/styles/mixins.scss +7 -0
- package/src/components/Modal/styles/style.scss +1 -0
- package/src/components/Modal/tests/Modal.unit.test.js +0 -22
- package/src/components/Pagination/Pagination.tsx +1 -11
- package/src/components/Pill/Pill.tsx +0 -4
- package/src/components/Pill/tests/Pill.conformance.test.js +0 -4
- package/src/components/Pill/tests/Pill.unit.test.js +0 -18
- package/src/components/Progress/Progress.tsx +1 -13
- package/src/components/Progress/styles/mixins.scss +9 -7
- package/src/components/PromoBanner/PromoBanner.tsx +1 -10
- package/src/components/PromoBanner/styles/mixins.scss +0 -3
- package/src/components/PromoBanner/tests/PromoBanner.conformance.test.js +0 -30
- package/src/components/PromoBanner/tests/PromoBanner.unit.test.js +1 -33
- package/src/components/PromotionCard/PromotionCard.tsx +4 -6
- package/src/components/PromotionCard/styles/mixins.scss +1 -0
- package/src/components/PromotionCard/tests/PromotionCard.conformance.test.js +18 -19
- package/src/components/PromotionCard/tests/PromotionCard.unit.test.js +12 -74
- package/src/components/Stepbar/Stepbar.tsx +0 -5
- package/src/components/Table/Table.tsx +0 -5
- package/src/components/Table/tests/Table.unit.test.js +0 -31
- package/src/components/Tabs/Tabs.tsx +0 -5
- package/src/components/Tabs/tests/Tabs.unit.test.js +0 -8
- package/src/components/Tag/styles/config.scss +1 -1
- package/src/components/Tag/styles/style.scss +10 -9
- package/src/components/Tile/styles/mixins.scss +1 -0
- package/src/components/Tooltip/Tooltip.tsx +1 -10
- package/src/components/Tooltip/tests/Tooltip.unit.test.js +0 -29
- package/src/styles/base/globals.scss +9 -0
- package/src/styles/base/styleguide.scss +6 -2
- package/src/styles/export/color.js +102 -20
- package/src/styles/export/color.scss +10 -20
- package/src/styles/typography/config.scss +83 -37
- package/src/styles/typography/mixins.scss +3 -3
- package/src/styles/utilities/text.scss +26 -2
- package/src/components/Pagination/tests/utils.js +0 -12
|
@@ -19,8 +19,6 @@ export interface StepbarProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
19
19
|
showTitlesFrom?: ShowTitlesFrom;
|
|
20
20
|
/** Array of step objects */
|
|
21
21
|
steps: StepbarStep[];
|
|
22
|
-
/** Visual variant of the stepbar */
|
|
23
|
-
colorScheme?: "dark" | "light";
|
|
24
22
|
}
|
|
25
23
|
|
|
26
24
|
const CLASS_ROOT = "stepbar";
|
|
@@ -29,7 +27,6 @@ const Stepbar: React.FC<StepbarProps> = ({
|
|
|
29
27
|
showTitlesFrom,
|
|
30
28
|
steps,
|
|
31
29
|
label = "krok",
|
|
32
|
-
colorScheme,
|
|
33
30
|
className,
|
|
34
31
|
...other
|
|
35
32
|
}) => {
|
|
@@ -68,8 +65,6 @@ const Stepbar: React.FC<StepbarProps> = ({
|
|
|
68
65
|
className={cx(
|
|
69
66
|
CLASS_ROOT,
|
|
70
67
|
{
|
|
71
|
-
"is-dark": colorScheme === "dark",
|
|
72
|
-
"is-light": colorScheme === "light",
|
|
73
68
|
[`${CLASS_ROOT}--wide-${showTitlesFrom}`]: showTitlesFrom,
|
|
74
69
|
},
|
|
75
70
|
className,
|
|
@@ -32,8 +32,6 @@ interface TableProps extends React.TableHTMLAttributes<HTMLTableElement> {
|
|
|
32
32
|
/** rows to print out in the table. */
|
|
33
33
|
rows: TableRow[];
|
|
34
34
|
className?: string;
|
|
35
|
-
/** Sets color scheme */
|
|
36
|
-
colorScheme?: "dark" | "light";
|
|
37
35
|
}
|
|
38
36
|
|
|
39
37
|
const CLASS_ROOT = "table";
|
|
@@ -48,7 +46,6 @@ const Table: React.FC<TableProps> = ({
|
|
|
48
46
|
isResponsive,
|
|
49
47
|
isStriped,
|
|
50
48
|
isScrollable,
|
|
51
|
-
colorScheme,
|
|
52
49
|
expandableRowsCaptions = {
|
|
53
50
|
header: "Rozšíriteľný",
|
|
54
51
|
emptyRow: "Nerozšíriteľný riadok",
|
|
@@ -64,8 +61,6 @@ const Table: React.FC<TableProps> = ({
|
|
|
64
61
|
[`${CLASS_ROOT}--striped`]: isStriped,
|
|
65
62
|
[`${CLASS_ROOT}--compact`]: isCompact,
|
|
66
63
|
[`${CLASS_ROOT}--responsive`]: isResponsive,
|
|
67
|
-
"is-dark": colorScheme === "dark",
|
|
68
|
-
"is-light": colorScheme === "light",
|
|
69
64
|
},
|
|
70
65
|
className,
|
|
71
66
|
);
|
|
@@ -51,37 +51,6 @@ describe("rendering Table", () => {
|
|
|
51
51
|
expect(getByTestId("test-id").tagName).toBe("TABLE");
|
|
52
52
|
expect(getByTestId("test-id")).toHaveClass("table");
|
|
53
53
|
});
|
|
54
|
-
it("applies dark colorScheme class", () => {
|
|
55
|
-
const { getByTestId } = render(
|
|
56
|
-
<Table
|
|
57
|
-
data-testid="test-id"
|
|
58
|
-
headers={[]}
|
|
59
|
-
rows={[]}
|
|
60
|
-
colorScheme="dark"
|
|
61
|
-
/>,
|
|
62
|
-
);
|
|
63
|
-
expect(getByTestId("test-id")).toHaveClass("is-dark");
|
|
64
|
-
expect(getByTestId("test-id")).not.toHaveClass("is-light");
|
|
65
|
-
});
|
|
66
|
-
it("applies light colorScheme class", () => {
|
|
67
|
-
const { getByTestId } = render(
|
|
68
|
-
<Table
|
|
69
|
-
data-testid="test-id"
|
|
70
|
-
headers={[]}
|
|
71
|
-
rows={[]}
|
|
72
|
-
colorScheme="light"
|
|
73
|
-
/>,
|
|
74
|
-
);
|
|
75
|
-
expect(getByTestId("test-id")).toHaveClass("is-light");
|
|
76
|
-
expect(getByTestId("test-id")).not.toHaveClass("is-dark");
|
|
77
|
-
});
|
|
78
|
-
it("does not apply colorScheme class by default", () => {
|
|
79
|
-
const { getByTestId } = render(
|
|
80
|
-
<Table data-testid="test-id" headers={[]} rows={[]} />,
|
|
81
|
-
);
|
|
82
|
-
expect(getByTestId("test-id")).not.toHaveClass("is-dark");
|
|
83
|
-
expect(getByTestId("test-id")).not.toHaveClass("is-light");
|
|
84
|
-
});
|
|
85
54
|
});
|
|
86
55
|
describe("testing headers", () => {
|
|
87
56
|
it("renders headers", () => {
|
|
@@ -17,8 +17,6 @@ interface TabsProps extends React.HTMLAttributes<HTMLUListElement> {
|
|
|
17
17
|
activeTabIndex?: number;
|
|
18
18
|
/** Additional classes for tabs header. */
|
|
19
19
|
classesTabNav?: string;
|
|
20
|
-
/** Color theme for the tabs */
|
|
21
|
-
colorScheme?: "dark" | "light";
|
|
22
20
|
/** All tabs have equal width inside a full-width container */
|
|
23
21
|
hasEqualTabWidth?: boolean;
|
|
24
22
|
/** Fullwidth container */
|
|
@@ -40,7 +38,6 @@ const Tabs: React.FC<TabsProps> = ({
|
|
|
40
38
|
hasEqualTabWidth,
|
|
41
39
|
variant = "standard",
|
|
42
40
|
children,
|
|
43
|
-
colorScheme,
|
|
44
41
|
...other
|
|
45
42
|
}) => {
|
|
46
43
|
const CLASS_TABNAV = "tab-list";
|
|
@@ -50,8 +47,6 @@ const Tabs: React.FC<TabsProps> = ({
|
|
|
50
47
|
{ [`${CLASS_TABNAV}--equal`]: hasEqualTabWidth },
|
|
51
48
|
{ [`${CLASS_TABNAV}--fullwidth`]: isFullWidth },
|
|
52
49
|
{ [`${CLASS_TABNAV}--light`]: variant === "light" },
|
|
53
|
-
{ "is-dark": colorScheme === "dark" },
|
|
54
|
-
{ "is-light": colorScheme === "light" },
|
|
55
50
|
classesTabNav,
|
|
56
51
|
className,
|
|
57
52
|
);
|
|
@@ -99,14 +99,6 @@ describe("rendering Tabs", () => {
|
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
});
|
|
102
|
-
it("has class is-dark when colorScheme is set to dark", () => {
|
|
103
|
-
const { getByTestId } = render(<TabsExample colorScheme="dark" />);
|
|
104
|
-
expect(getByTestId("test-id")).toHaveClass("is-dark");
|
|
105
|
-
});
|
|
106
|
-
it("has class is-light when colorScheme is set to light", () => {
|
|
107
|
-
const { getByTestId } = render(<TabsExample colorScheme="light" />);
|
|
108
|
-
expect(getByTestId("test-id")).toHaveClass("is-light");
|
|
109
|
-
});
|
|
110
102
|
});
|
|
111
103
|
describe("checking fireEvents", () => {
|
|
112
104
|
it("click in disabled tab button doesnt cause change", () => {
|
|
@@ -33,20 +33,21 @@
|
|
|
33
33
|
):not([class*="--transparent"]) {
|
|
34
34
|
background-color: var(--color-surface-moderate);
|
|
35
35
|
|
|
36
|
-
// Clickable tags should have same default background but keep normal interactive states
|
|
37
36
|
&:where(button),
|
|
38
37
|
&:where(a) {
|
|
39
38
|
background-color: var(--color-surface-moderate);
|
|
40
39
|
|
|
41
|
-
&:
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
&:not([disabled]):not([aria-disabled="true"]) {
|
|
41
|
+
&:focus-visible,
|
|
42
|
+
&:hover {
|
|
43
|
+
background-color: color.$gray-600;
|
|
44
|
+
}
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
&:active,
|
|
47
|
+
&.is-active {
|
|
48
|
+
color: var(--color-text-inverse);
|
|
49
|
+
background-color: var(--color-background-contrast);
|
|
50
|
+
}
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
53
|
}
|
|
@@ -42,7 +42,6 @@ export interface TooltipProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
42
42
|
/** Additional CSS classes */
|
|
43
43
|
className?: string;
|
|
44
44
|
children?: React.ReactNode;
|
|
45
|
-
colorScheme?: "dark" | "light"; // Optional color scheme prop
|
|
46
45
|
}
|
|
47
46
|
|
|
48
47
|
const Tooltip: React.FC<TooltipProps> = ({
|
|
@@ -53,18 +52,10 @@ const Tooltip: React.FC<TooltipProps> = ({
|
|
|
53
52
|
className,
|
|
54
53
|
renderTrigger,
|
|
55
54
|
children,
|
|
56
|
-
colorScheme,
|
|
57
55
|
...other
|
|
58
56
|
}) => {
|
|
59
57
|
const currentId = useHydrationSafeId(id);
|
|
60
|
-
const classes = cx(
|
|
61
|
-
CLASS_ROOT,
|
|
62
|
-
{
|
|
63
|
-
"is-dark": colorScheme === "dark",
|
|
64
|
-
"is-light": colorScheme === "light",
|
|
65
|
-
},
|
|
66
|
-
className,
|
|
67
|
-
);
|
|
58
|
+
const classes = cx(CLASS_ROOT, className);
|
|
68
59
|
const Tag = tag;
|
|
69
60
|
|
|
70
61
|
const [dialogRef] = useStatic(TooltipStatic as any, {
|
|
@@ -294,33 +294,4 @@ describe("rendering Tooltip", () => {
|
|
|
294
294
|
expect(getByTestId("test-id").hidden).toBe(true);
|
|
295
295
|
});
|
|
296
296
|
});
|
|
297
|
-
describe("colorScheme prop", () => {
|
|
298
|
-
it("should have is-dark class when colorScheme is 'dark'", () => {
|
|
299
|
-
const { getByTestId } = render(
|
|
300
|
-
<Base>
|
|
301
|
-
<Tooltip data-testid="test-id" colorScheme="dark" />
|
|
302
|
-
</Base>,
|
|
303
|
-
);
|
|
304
|
-
expect(getByTestId("test-id")).toHaveClass("is-dark");
|
|
305
|
-
expect(getByTestId("test-id")).not.toHaveClass("is-light");
|
|
306
|
-
});
|
|
307
|
-
it("should have is-light class when colorScheme is 'light'", () => {
|
|
308
|
-
const { getByTestId } = render(
|
|
309
|
-
<Base>
|
|
310
|
-
<Tooltip data-testid="test-id" colorScheme="light" />
|
|
311
|
-
</Base>,
|
|
312
|
-
);
|
|
313
|
-
expect(getByTestId("test-id")).toHaveClass("is-light");
|
|
314
|
-
expect(getByTestId("test-id")).not.toHaveClass("is-dark");
|
|
315
|
-
});
|
|
316
|
-
it("should not have is-dark or is-light class by default", () => {
|
|
317
|
-
const { getByTestId } = render(
|
|
318
|
-
<Base>
|
|
319
|
-
<Tooltip data-testid="test-id" />
|
|
320
|
-
</Base>,
|
|
321
|
-
);
|
|
322
|
-
expect(getByTestId("test-id")).not.toHaveClass("is-dark");
|
|
323
|
-
expect(getByTestId("test-id")).not.toHaveClass("is-light");
|
|
324
|
-
});
|
|
325
|
-
});
|
|
326
297
|
});
|
|
@@ -123,7 +123,9 @@ main > div {
|
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
> h4 {
|
|
126
|
-
@include generate.css-map(
|
|
126
|
+
@include generate.responsive-css-map(
|
|
127
|
+
sassmap.get(typographyConfig.$body-text, "large")
|
|
128
|
+
);
|
|
127
129
|
}
|
|
128
130
|
}
|
|
129
131
|
|
|
@@ -131,5 +133,7 @@ main > div {
|
|
|
131
133
|
main > div > h1 + p,
|
|
132
134
|
main > div > h1 + p + p,
|
|
133
135
|
main > div > h1 + p + p + p {
|
|
134
|
-
@include generate.css-map(
|
|
136
|
+
@include generate.responsive-css-map(
|
|
137
|
+
sassmap.get(typographyConfig.$body-text, "large")
|
|
138
|
+
);
|
|
135
139
|
}
|
|
@@ -2,26 +2,108 @@
|
|
|
2
2
|
// Do not edit this file directly - edit the SCSS source instead
|
|
3
3
|
|
|
4
4
|
export const exports = {
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
5
|
+
"light-background-primary": "#ffffff",
|
|
6
|
+
"light-background-secondary": "#f4f4f4",
|
|
7
|
+
"light-background-contrast": "#141414",
|
|
8
|
+
"light-background-accent": "#fff6ed",
|
|
9
|
+
"light-background-accent1-blog": "#fff6cc",
|
|
10
|
+
"light-background-accent2-blog": "#eee7f7",
|
|
11
|
+
"light-surface-primary": "#ffffff",
|
|
12
|
+
"light-surface-secondary": "#ff7900",
|
|
13
|
+
"light-surface-tertiary": "#f15e00",
|
|
14
|
+
"light-surface-subtle": "#eeeeee",
|
|
15
|
+
"light-surface-moderate": "#dddddd",
|
|
16
|
+
"light-surface-contrast": "#141414",
|
|
17
|
+
"light-surface-accent": "#fff6ed",
|
|
18
|
+
"light-fill-primary": "#ffffff",
|
|
19
|
+
"light-fill-secondary": "#ff7900",
|
|
20
|
+
"light-fill-tertiary": "#f15e00",
|
|
21
|
+
"light-fill-subtle": "#eeeeee",
|
|
22
|
+
"light-fill-moderate": "#dddddd",
|
|
23
|
+
"light-fill-disabled": "#cccccc",
|
|
24
|
+
"light-fill-contrast": "#000000",
|
|
25
|
+
"light-fill-accent1": "#4bb4e6",
|
|
26
|
+
"light-fill-accent2": "#50be87",
|
|
27
|
+
"light-fill-accent3": "#ffb4e6",
|
|
28
|
+
"light-fill-accent4": "#a885d8",
|
|
29
|
+
"light-fill-accent5": "#ffd200",
|
|
30
|
+
"light-fill-information": "rgba(65, 112, 216, 0.0784313725)",
|
|
31
|
+
"light-fill-positive": "rgba(34, 135, 34, 0.0784313725)",
|
|
32
|
+
"light-fill-warning": "rgba(255, 204, 0, 0.0784313725)",
|
|
33
|
+
"light-fill-negative": "rgba(205, 60, 20, 0.0784313725)",
|
|
34
|
+
"light-border-subtle": "#dddddd",
|
|
35
|
+
"light-border-strong": "#cccccc",
|
|
36
|
+
"light-border-contrast": "#000000",
|
|
37
|
+
"light-border-accent": "#f15e00",
|
|
38
|
+
"light-border-information": "#4170d8",
|
|
39
|
+
"light-border-positive": "#228722",
|
|
40
|
+
"light-border-warning": "#ffcc00",
|
|
41
|
+
"light-border-negative": "#cd3c14",
|
|
42
|
+
"light-icon-default": "#000000",
|
|
43
|
+
"light-icon-inverse": "#ffffff",
|
|
44
|
+
"light-icon-brand": "#f15e00",
|
|
45
|
+
"light-icon-accent": "#ffc48f",
|
|
46
|
+
"light-icon-disabled": "#cccccc",
|
|
47
|
+
"light-icon-information": "#4170d8",
|
|
48
|
+
"light-icon-positive": "#228722",
|
|
49
|
+
"light-icon-warning": "#ffcc00",
|
|
50
|
+
"light-icon-negative": "#cd3c14",
|
|
51
|
+
"light-text-default": "#000000",
|
|
52
|
+
"light-text-secondary": "#666666",
|
|
53
|
+
"light-text-disabled": "#cccccc",
|
|
54
|
+
"light-text-inverse": "#ffffff",
|
|
55
|
+
"light-text-accent": "#f15e00",
|
|
56
|
+
"dark-background-primary": "#141414",
|
|
57
|
+
"dark-background-secondary": "#333333",
|
|
58
|
+
"dark-background-contrast": "#ffffff",
|
|
59
|
+
"dark-background-accent": "#2b1a10",
|
|
60
|
+
"dark-background-accent1-blog": "#62342d",
|
|
61
|
+
"dark-background-accent2-blog": "#2b1a10",
|
|
62
|
+
"dark-surface-primary": "#141414",
|
|
63
|
+
"dark-surface-secondary": "#ff7900",
|
|
64
|
+
"dark-surface-tertiary": "#f15e00",
|
|
65
|
+
"dark-surface-subtle": "#333333",
|
|
66
|
+
"dark-surface-moderate": "#595959",
|
|
67
|
+
"dark-surface-contrast": "#ffffff",
|
|
68
|
+
"dark-surface-accent": "#2b1a10",
|
|
69
|
+
"dark-fill-primary": "#000000",
|
|
70
|
+
"dark-fill-secondary": "#ff7900",
|
|
71
|
+
"dark-fill-tertiary": "#f15e00",
|
|
72
|
+
"dark-fill-subtle": "#333333",
|
|
73
|
+
"dark-fill-moderate": "#595959",
|
|
74
|
+
"dark-fill-disabled": "#666666",
|
|
75
|
+
"dark-fill-contrast": "#ffffff",
|
|
76
|
+
"dark-fill-accent1": "#4bb4e6",
|
|
77
|
+
"dark-fill-accent2": "#50be87",
|
|
78
|
+
"dark-fill-accent3": "#ffb4e6",
|
|
79
|
+
"dark-fill-accent4": "#a885d8",
|
|
80
|
+
"dark-fill-accent5": "#ffd200",
|
|
81
|
+
"dark-fill-information": "rgba(65, 112, 216, 0.2)",
|
|
82
|
+
"dark-fill-positive": "rgba(34, 135, 34, 0.2)",
|
|
83
|
+
"dark-fill-warning": "rgba(255, 204, 0, 0.2)",
|
|
84
|
+
"dark-fill-negative": "rgba(205, 60, 20, 0.2)",
|
|
85
|
+
"dark-border-subtle": "#333333",
|
|
86
|
+
"dark-border-strong": "#666666",
|
|
87
|
+
"dark-border-contrast": "#ffffff",
|
|
88
|
+
"dark-border-accent": "#ff7900",
|
|
89
|
+
"dark-border-information": "#6699ff",
|
|
90
|
+
"dark-border-positive": "#66cc66",
|
|
91
|
+
"dark-border-warning": "#ffcc00",
|
|
92
|
+
"dark-border-negative": "#ff4d4d",
|
|
93
|
+
"dark-icon-default": "#ffffff",
|
|
94
|
+
"dark-icon-inverse": "#000000",
|
|
95
|
+
"dark-icon-brand": "#ff7900",
|
|
96
|
+
"dark-icon-accent": "#da8436",
|
|
97
|
+
"dark-icon-disabled": "#666666",
|
|
98
|
+
"dark-icon-information": "#6699ff",
|
|
99
|
+
"dark-icon-positive": "#66cc66",
|
|
100
|
+
"dark-icon-warning": "#ffcc00",
|
|
101
|
+
"dark-icon-negative": "#ff4d4d",
|
|
102
|
+
"dark-text-default": "#ffffff",
|
|
103
|
+
"dark-text-secondary": "#cccccc",
|
|
104
|
+
"dark-text-disabled": "#666666",
|
|
105
|
+
"dark-text-inverse": "#000000",
|
|
106
|
+
"dark-text-accent": "#ff7900"
|
|
25
107
|
};
|
|
26
108
|
|
|
27
109
|
export default exports;
|
|
@@ -1,24 +1,14 @@
|
|
|
1
|
+
@use "sass:map";
|
|
1
2
|
@use "../tokens/color" as color;
|
|
2
3
|
|
|
3
4
|
:export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
gray-300: color.$gray-300;
|
|
14
|
-
gray-400: color.$gray-400;
|
|
15
|
-
gray-500: color.$gray-500;
|
|
16
|
-
gray-600: color.$gray-600;
|
|
17
|
-
gray-700: color.$gray-700;
|
|
18
|
-
gray-800: color.$gray-800;
|
|
19
|
-
gray-900: color.$gray-900;
|
|
20
|
-
success: color.$success;
|
|
21
|
-
danger: color.$danger;
|
|
22
|
-
info: color.$info;
|
|
23
|
-
warning: color.$warning;
|
|
5
|
+
// Export semantic color tokens from light theme
|
|
6
|
+
@each $name, $value in color.$colors-light {
|
|
7
|
+
light-#{$name}: #{$value};
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
// Export semantic color tokens from dark theme
|
|
11
|
+
@each $name, $value in color.$colors-dark {
|
|
12
|
+
dark-#{$name}: #{$value};
|
|
13
|
+
}
|
|
24
14
|
}
|