Releases: sannajammeh/tw-classed
@tw-classed/[email protected]
Patch Changes
a084f87
Thanks @sannajammeh! - Ensure solid exports match dist output
@tw-classed/[email protected]
Patch Changes
-
#137
86acac6
Thanks @sannajammeh! - Improve solidjs prop splitting -
#135
f04cc69
Thanks @sannajammeh! - Fix solid types - Rename Polymorphic.d.ts to polymorphic.ts to ensure dts plugin emits in bundle -
Updated dependencies [
97130ec
,6fd3d61
]:- @tw-classed/[email protected]
@tw-classed/[email protected]
Minor Changes
-
#132
6fd3d61
Thanks @sannajammeh! - AddgetVariantConfig()
utility tocore
&react
api's. This extracts the entire parsed variant config from a classed component, also supports nested variants from component composition.Usage:
const Button = classed("button", { variants: { color: { blue: "bg-blue-500", }, }, }); const { variants } = getVariantConfig(Button); variants.color.blue; // "bg-blue-500"
Patch Changes
-
#133
97130ec
Thanks @sannajammeh! - Ensure compatibility withexactOptionalPropertyTypes:true
in tsconfig.json -
Updated dependencies [
97130ec
,6fd3d61
]:- @tw-classed/[email protected]
@tw-classed/[email protected]
Minor Changes
-
#132
6fd3d61
Thanks @sannajammeh! - AddgetVariantConfig()
utility tocore
&react
api's. This extracts the entire parsed variant config from a classed component, also supports nested variants from component composition.Usage:
const Button = classed("button", { variants: { color: { blue: "bg-blue-500", }, }, }); const { variants } = getVariantConfig(Button); variants.color.blue; // "bg-blue-500"
Patch Changes
- #133
97130ec
Thanks @sannajammeh! - Ensure compatibility withexactOptionalPropertyTypes:true
in tsconfig.json
@tw-classed/[email protected]
Patch Changes
- #137
86acac6
Thanks @sannajammeh! - Improve solidjs prop splitting
@tw-classed/[email protected]
Patch Changes
- #135
f04cc69
Thanks @sannajammeh! - Fix solid types - Rename Polymorphic.d.ts to polymorphic.ts to ensure dts plugin emits in bundle
@tw-classed/[email protected]
Patch Changes
- Updated dependencies [
97130ec
,6fd3d61
]:- @tw-classed/[email protected]
@tw-classed/[email protected]
Minor Changes
-
#132
6fd3d61
Thanks @sannajammeh! - AddgetVariantConfig()
utility tocore
&react
api's. This extracts the entire parsed variant config from a classed component, also supports nested variants from component composition.Usage:
const Button = classed("button", { variants: { color: { blue: "bg-blue-500", }, }, }); const { variants } = getVariantConfig(Button); variants.color.blue; // "bg-blue-500"
Patch Changes
-
#133
97130ec
Thanks @sannajammeh! - Ensure compatibility withexactOptionalPropertyTypes:true
in tsconfig.json -
Updated dependencies [
97130ec
,6fd3d61
]:- @tw-classed/[email protected]
@tw-classed/[email protected]
Minor Changes
-
#132
6fd3d61
Thanks @sannajammeh! - AddgetVariantConfig()
utility tocore
&react
api's. This extracts the entire parsed variant config from a classed component, also supports nested variants from component composition.Usage:
const Button = classed("button", { variants: { color: { blue: "bg-blue-500", }, }, }); const { variants } = getVariantConfig(Button); variants.color.blue; // "bg-blue-500"
Patch Changes
- #133
97130ec
Thanks @sannajammeh! - Ensure compatibility withexactOptionalPropertyTypes:true
in tsconfig.json
@tw-classed/[email protected]
Patch Changes
- #127
50e69a7e
Thanks @emmanuelchucks! - add proper autocompletion for default props