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

chore: moved tailwind files and edited radio label #136

Merged
merged 5 commits into from
Apr 16, 2024
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ storybook-static

src/theming/tokens-style-dictionary
src/theming/tokens-output
src/tailwind/tokens-output

.env

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@govconnex/ui",
"version": "0.0.173",
"version": "0.0.174",
"description": "GovConnex UI - React Component Library",
"scripts": {
"build:tokens": "./tokens-build.sh",
Expand Down
12 changes: 12 additions & 0 deletions src/components/Radio/Radio.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,18 @@ IconRadio.args = {
startAdornment: <Icon icon={faBook} />,
};

export const IconOnLabel = Template.bind({});

IconOnLabel.args = {
variant: "card",
label: (
<>
<Icon icon={faBook} /> Label
</>
),
description: "Description",
};

Example.parameters = {
// design: {
// type: "figma",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Radio/Radio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface RadioProps extends React.InputHTMLAttributes<HTMLInputElement>
/**
* renders a text label next to the radio
*/
label?: string;
label?: string | React.ReactNode;

/**
* renders a text bellow the label
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
3 changes: 2 additions & 1 deletion src/theming/package.json → src/tailwind/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "GovConnex UI - Tailwind Theme Config",
"main": "tailwind.config.js",
"scripts": {
"test": "tailwindcss -i ./tailwind-theme.css"
"test": "tailwindcss -i ./tailwind-theme.css",
"prepublishOnly": "cp -R ../theming/tokens-output tokens-output"
},
"files": [
"tailwind.config.js",
Expand Down
Loading