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

feat(c-radio): create package #320

Draft
wants to merge 3 commits into
base: develop
Choose a base branch
from
Draft

Conversation

TylerAPfledderer
Copy link
Collaborator

Pull request checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes
    /start features)

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Fixes: [ISSUE NUMBER]

What is the new behavior?

Does this introduce a breaking change?

  • Yes
  • No

Other information

@changeset-bot
Copy link

changeset-bot bot commented May 5, 2023

⚠️ No Changeset found

Latest commit: 9e7f37e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented May 5, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
chakra-ui-vue-next-playground ✅ Ready (Inspect) Visit Preview May 18, 2023 2:16am

Copy link
Collaborator

@codebender828 codebender828 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks really good @TylerAPfledderer . Requested some few changes

{...groupApi.value.getRadioLabelProps(radioProps)}
__css={labelStyles.value}
>
{() => getValidChildren(slots)}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use {slots.default?.()} here

Comment on lines +27 to +29
const api = computed(() => radio.connect(state.value, send, normalizeProps))

return api
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const api = computed(() => radio.connect(state.value, send, normalizeProps))
return api
const return = computed(() => radio.connect(state.value, send, normalizeProps))

import { CRadio, CRadioGroup } from "../../index"
import * as Examples from "../../examples"

const runTest = () => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice fancy test

@@ -0,0 +1,3 @@
export { CRadioGroup, type CRadioGroupProps } from "./c-radio-group"
export { CRadio, type CRadioProps } from "./c-radio"
export type { RadioGroupContext } from "./radio-context"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's keep the C${COMPONENT_NAME}Context naming convention here. Would like all types to be exposed with the C in front of it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants