diff --git a/src/components/Card/Content/TitleAndDescription.tsx b/src/components/Card/Content/TitleAndDescription.tsx
index 6a2bf51..3251138 100644
--- a/src/components/Card/Content/TitleAndDescription.tsx
+++ b/src/components/Card/Content/TitleAndDescription.tsx
@@ -3,7 +3,7 @@ import { classNames, variantClassNames } from "../../../util/classes";
export interface TitleAndDescriptionProps {
title: React.ReactNode;
description?: React.ReactNode;
- size?: "default" | "small";
+ size?: "default" | "small" | "cardInfo";
}
export const TitleAndDescription = ({
@@ -19,6 +19,7 @@ export const TitleAndDescription = ({
variantClassNames(size, {
default: "ink:text-h3",
small: "ink:text-body-1-regular",
+ cardInfo: "ink:text-h5",
})
)}
>
@@ -31,6 +32,7 @@ export const TitleAndDescription = ({
variantClassNames(size, {
default: "ink:text-body-1-regular",
small: "ink:text-body-3-regular",
+ cardInfo: "ink:text-body-2-regular",
})
)}
>
diff --git a/src/components/Card/Content/index.ts b/src/components/Card/Content/index.ts
index 9fb6dfd..728727c 100644
--- a/src/components/Card/Content/index.ts
+++ b/src/components/Card/Content/index.ts
@@ -1,4 +1,5 @@
export * from "./CallToAction";
+export * from "./CardInfos";
export * from "./CardInfo";
export * from "./Image";
export * from "./LargeLink";
diff --git a/src/components/SegmentedControl/SegmentedControl.stories.tsx b/src/components/SegmentedControl/SegmentedControl.stories.tsx
index cabe5c9..931d150 100644
--- a/src/components/SegmentedControl/SegmentedControl.stories.tsx
+++ b/src/components/SegmentedControl/SegmentedControl.stories.tsx
@@ -44,10 +44,6 @@ export const VariableTabWidth: Story = {
},
};
-export const DisplayOnDarkBackground: Story = {
- args: { displayOn: "dark" },
-};
-
export const AsLinks: Story = {
args: {
options: [
@@ -85,7 +81,6 @@ export const AsLinks: Story = {
export const PrimaryVariant: Story = {
args: {
- displayOn: "light",
variant: "primary",
variableTabWidth: true,
options: [
@@ -102,10 +97,9 @@ export const PrimaryVariant: Story = {
},
};
-export const PrimaryVariantOnDark: Story = {
+export const TagVariant: Story = {
args: {
- displayOn: "dark",
- variant: "primary",
+ variant: "tag",
variableTabWidth: true,
options: [
{
diff --git a/src/components/SegmentedControl/SegmentedControl.tsx b/src/components/SegmentedControl/SegmentedControl.tsx
index 50901e3..7eabce0 100644
--- a/src/components/SegmentedControl/SegmentedControl.tsx
+++ b/src/components/SegmentedControl/SegmentedControl.tsx
@@ -1,19 +1,17 @@
import React, { useEffect, useMemo, useRef, useState } from "react";
import { classNames, variantClassNames } from "../../util/classes";
-import { DisplayOnProps } from "../../util/theme";
import { Slot } from "../Slot";
import { useWindowSize } from "../../hooks/useWindowSize";
-export type SegmentedControlProps
=
- DisplayOnProps & {
- options: SegmentedControlOption[];
- onOptionChange: (
- option: SegmentedControlOption,
- index: number
- ) => void;
- variableTabWidth?: boolean;
- variant?: "default" | "primary";
- };
+export type SegmentedControlProps = {
+ options: SegmentedControlOption[];
+ onOptionChange: (
+ option: SegmentedControlOption,
+ index: number
+ ) => void;
+ variableTabWidth?: boolean;
+ variant?: "default" | "primary" | "tag";
+};
export interface SegmentedControlOption {
children: React.ReactNode;
@@ -26,7 +24,6 @@ export const SegmentedControl = ({
options,
onOptionChange,
variableTabWidth,
- displayOn = "light",
variant = "default",
}: SegmentedControlProps) => {
const itemsRef = useRef>([]);
@@ -64,9 +61,10 @@ export const SegmentedControl = ({
({
? variantClassNames(variant, {
default: "ink:text-text-default",
primary: "ink:text-text-on-primary",
+ tag: "ink:text-text-default",
})
: "ink:text-text-muted ink:hover:text-text-default",
- variableTabWidth ? "ink:px-3" : "ink:px-4"
+ variantClassNames(variant, {
+ default: variableTabWidth ? "ink:px-3" : "ink:px-4",
+ primary: variableTabWidth ? "ink:px-3" : "ink:px-4",
+ tag: "ink:px-2",
+ })
)}
ref={(el) => {
itemsRef.current[index] = el;
@@ -115,13 +118,10 @@ export const SegmentedControl =
({
diff --git a/src/util/theme.ts b/src/util/theme.ts
deleted file mode 100644
index 63b93bb..0000000
--- a/src/util/theme.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-export interface DisplayOnProps {
- displayOn?: "light" | "dark";
-}