From 82fbc0bbd505b96efc0cd2ae0ce650152db5cd0d Mon Sep 17 00:00:00 2001 From: planetBoy <140164174+Guayaba221@users.noreply.github.com> Date: Fri, 24 Jan 2025 11:37:39 +0100 Subject: [PATCH 1/3] Update Alert.tsx --- src/components/Alert/Alert.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/Alert/Alert.tsx b/src/components/Alert/Alert.tsx index d3bb41f..975a51d 100644 --- a/src/components/Alert/Alert.tsx +++ b/src/components/Alert/Alert.tsx @@ -9,13 +9,13 @@ export interface AlertProps { icon?: React.ReactNode; className?: string; /** - * Unique identifier for the alert. Required if dismissable is true. + * Unique identifier for the alert. Required if dismissible is true. */ id?: string; /** * Whether the alert can be dismissed. If true, id is required. */ - dismissable?: boolean; + dismissible?: boolean; /** * Callback fired when the alert is dismissed */ @@ -29,17 +29,17 @@ export const Alert: React.FC = ({ icon, className, id, - dismissable, + dismissible, onDismiss, }) => { const [isDismissed, setIsDismissed] = useState(false); useEffect(() => { - if (dismissable && id) { + if (dismissible && id) { const isDismissedStored = localStorage.getItem(`ink-alert-${id}`); setIsDismissed(isDismissedStored === "true"); } - }, [dismissable, id]); + }, [dismissible, id]); if (isDismissed) { return null; @@ -53,7 +53,7 @@ export const Alert: React.FC = ({ }[variant]; const handleDismiss = () => { - if (dismissable && id) { + if (dismissible && id) { localStorage.setItem(`ink-alert-${id}`, "true"); setIsDismissed(true); onDismiss?.(); From 38a259fe23711aa4e9a3cabc9bb61449e055c23f Mon Sep 17 00:00:00 2001 From: fran-ink <171171801+fran-ink@users.noreply.github.com> Date: Wed, 12 Feb 2025 09:52:40 -0500 Subject: [PATCH 2/3] feat: v7 --- package.json | 2 +- src/components/Card/Content/CardInfo.tsx | 2 +- src/components/Card/Content/LargeLinks.tsx | 2 +- src/components/index.ts | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index dc2906d..a9174ba 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@inkonchain/ink-kit", - "version": "0.6.1", + "version": "0.7.0", "description": "", "main": "dist/index.cjs.js", "module": "dist/index.es.js", diff --git a/src/components/Card/Content/CardInfo.tsx b/src/components/Card/Content/CardInfo.tsx index 277a1c3..73c4f5c 100644 --- a/src/components/Card/Content/CardInfo.tsx +++ b/src/components/Card/Content/CardInfo.tsx @@ -10,7 +10,7 @@ export const CardInfo = ({ children, className }: CardInfoProps) => { return (
diff --git a/src/components/Card/Content/LargeLinks.tsx b/src/components/Card/Content/LargeLinks.tsx index 583c425..ffc9582 100644 --- a/src/components/Card/Content/LargeLinks.tsx +++ b/src/components/Card/Content/LargeLinks.tsx @@ -10,7 +10,7 @@ export const LargeLinks = ({ children, className }: LargeLinksProps) => { return (
diff --git a/src/components/index.ts b/src/components/index.ts index 872f578..26a8a43 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -8,6 +8,7 @@ export * from "./Listbox"; export * from "./Modal"; export * from "./Popover"; export * from "./SegmentedControl"; +export * from "./Tag"; export * from "./Toggle"; export * from "./Typography"; export * from "./Wallet"; From d99327898fa4b4121a5c9da0fc0b78a349e9a1ce Mon Sep 17 00:00:00 2001 From: fran-ink <171171801+fran-ink@users.noreply.github.com> Date: Wed, 12 Feb 2025 09:57:25 -0500 Subject: [PATCH 3/3] fix: update license and alert story --- LICENSE | 2 +- src/components/Alert/Alert.stories.tsx | 2 +- src/components/Alert/Alert.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/LICENSE b/LICENSE index bb1f02c..450e070 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2024 inkonchain +Copyright (c) 2024-2025 inkonchain Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/src/components/Alert/Alert.stories.tsx b/src/components/Alert/Alert.stories.tsx index 1083ba4..2abd434 100644 --- a/src/components/Alert/Alert.stories.tsx +++ b/src/components/Alert/Alert.stories.tsx @@ -61,7 +61,7 @@ export const Dismissable: Story = { title: "This alert can be dismissed", description: "Click the X to dismiss. The state will persist across refreshes.", - dismissable: true, + dismissible: true, id: "example-alert", onDismiss: fn(), }, diff --git a/src/components/Alert/Alert.tsx b/src/components/Alert/Alert.tsx index 975a51d..191535a 100644 --- a/src/components/Alert/Alert.tsx +++ b/src/components/Alert/Alert.tsx @@ -80,7 +80,7 @@ export const Alert: React.FC = ({
{description}
)}
- {dismissable && ( + {dismissible && (