Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

chore: Release PR #678

Merged
merged 3 commits into from
Nov 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/curly-waves-tease.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@appsmithorg/design-system": patch
---

New icons segmented control width
15 changes: 15 additions & 0 deletions packages/design-system/src/Icon/Icon.provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -938,6 +938,18 @@ const Box3LineIcon = importSvg(
() => import("../__assets__/icons/ads/box-3-line.svg"),
);

const QueriesLineIcon = importSvg(
() => import("../__assets__/icons/ads/queries.svg"),
);

const BracesLineIcon = importSvg(
() => import("../__assets__/icons/ads/braces.svg"),
);

const DashboardLineIcon = importSvg(
() => import("../__assets__/icons/ads/dashboard-line.svg"),
);

import PlayIconPNG from "../__assets__/icons/control/play-icon.png";

function PlayIconPNGWrapper() {
Expand Down Expand Up @@ -1217,6 +1229,9 @@ const ICON_LOOKUP = {
"file-copy-2-line": FileCopy2Line,
"box-3-line": Box3LineIcon,
"apps-line": AppsLineIcon,
"queries-line": QueriesLineIcon,
"braces-line": BracesLineIcon,
"dashboard-line": DashboardLineIcon,
billing: BillingIcon,
binding: Binding,
book: BookIcon,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const StyledSegmentedControl = styled.div<{
border-radius: calc(var(--ads-v2-border-radius) + var(--ads-v2-spaces-1));
box-sizing: border-box;
height: 32px;
width: ${({ isFullWidth }) => (isFullWidth ? "auto" : "max-content")};
width: ${({ isFullWidth }) => (isFullWidth ? "100%" : "max-content")};
`;

export const StyledSegment = styled.span`
Expand Down
3 changes: 3 additions & 0 deletions packages/design-system/src/__assets__/icons/ads/braces.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions packages/design-system/src/__assets__/icons/ads/queries.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading