Skip to content

Commit 9532ead

Browse files
chore(release): v1.0.0
# 1.0.0 (2024-05-02) ### Bug Fixes * **core:** [styled] `as` does not take effect ([9f143b2](9f143b2)) ### Features * **core:** [styled] add `.attrs` api ([f01d60b](f01d60b)) * **core:** [styled] support reactive style value ([8624512](8624512)) * **core:** [styled] support styling vue component ([c76478a](c76478a)) * **helper:** add apis of `keyframes` and `createGlobalStyle` ([5c2a422](5c2a422)) * **hooks:** [use-styled-calss-name] add hook to get styled class name ([0952efa](0952efa)) * **provider:** add `theme provider` ([d4fb106](d4fb106)) ### Performance Improvements * **core:** [styled] improve watch effect ([74ca1f1](74ca1f1)) * **helper:** [keyframes] generate unique name for `keyframes` ([669e7ec](669e7ec))
1 parent c271c4f commit 9532ead

26 files changed

+567
-1
lines changed

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
# 1.0.0 (2024-05-02)
2+
3+
4+
### Bug Fixes
5+
6+
* **core:** [styled] `as` does not take effect ([9f143b2](https://github.com/v-vibe/vue-styled-components/commit/9f143b2e534e4155d5593f450a1bb01287d82cdc))
7+
8+
9+
### Features
10+
11+
* **core:** [styled] add `.attrs` api ([f01d60b](https://github.com/v-vibe/vue-styled-components/commit/f01d60b07812233da7372c3ed990f92d0a0c5ec3))
12+
* **core:** [styled] support reactive style value ([8624512](https://github.com/v-vibe/vue-styled-components/commit/862451212c4d917ac6238e2bd4e52a7f454e226d))
13+
* **core:** [styled] support styling vue component ([c76478a](https://github.com/v-vibe/vue-styled-components/commit/c76478a8836f2ba6de7494596b56da7ac180a740))
14+
* **helper:** add apis of `keyframes` and `createGlobalStyle` ([5c2a422](https://github.com/v-vibe/vue-styled-components/commit/5c2a422a68cbdc8cd135121df39a08f4958cc143))
15+
* **hooks:** [use-styled-calss-name] add hook to get styled class name ([0952efa](https://github.com/v-vibe/vue-styled-components/commit/0952efa81fee1494923eebe60e54a85de7402051))
16+
* **provider:** add `theme provider` ([d4fb106](https://github.com/v-vibe/vue-styled-components/commit/d4fb106370ca594b6efa8001bc3c4d2d135b7a66))
17+
18+
19+
### Performance Improvements
20+
21+
* **core:** [styled] improve watch effect ([74ca1f1](https://github.com/v-vibe/vue-styled-components/commit/74ca1f1819ed1575546ccdca817ab1c94a30ff81))
22+
* **helper:** [keyframes] generate unique name for `keyframes` ([669e7ec](https://github.com/v-vibe/vue-styled-components/commit/669e7ec0e841d9ce2fe124fbace290ecf2ed7a11))
23+
124
# [1.0.0-beta.2](https://github.com/v-vibe/vue-styled-components/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2024-04-29)
225

326

dist/commitlint.config.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
declare const _default: {
2+
extends: string[];
3+
};
4+
export default _default;

dist/core/constants/constants.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export declare const CLASS_PREFIX = "styled";
2+
export declare const COMPONENT_PREFIX = "styled";
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
declare const elements: readonly ["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "g", "image", "line", "linearGradient", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"];
2+
declare const _default: Set<"object" | "div" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "label" | "legend" | "li" | "link" | "main" | "map" | "mark" | "menu" | "meta" | "meter" | "nav" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "script" | "section" | "select" | "small" | "source" | "span" | "strong" | "style" | "sub" | "summary" | "sup" | "table" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "big" | "keygen" | "menuitem" | "param" | "circle" | "clipPath" | "defs" | "ellipse" | "g" | "image" | "line" | "linearGradient" | "mask" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "stop" | "svg" | "text" | "tspan">;
3+
export default _default;
4+
export type SupportedHTMLElements = (typeof elements)[number];
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { DefineSetupFnComponent } from 'vue';
2+
import { ExpressionType } from '../utils';
3+
4+
export declare const createGlobalStyle: (styles: TemplateStringsArray, ...expressions: ExpressionType[]) => DefineSetupFnComponent<any>;

dist/core/helper/css.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { ExpressionType } from '../utils';
2+
3+
export declare function css(strings: TemplateStringsArray, ...interpolations: ExpressionType[]): ExpressionType[];

dist/core/helper/index.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export * from './withAttrs';
2+
export * from './is';
3+
export * from './create-global-style';
4+
export * from './keyframes';
5+
export * from './css';

dist/core/helper/is.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { SupportedHTMLElements } from '../constants/domElements';
2+
3+
export declare function isTag(target: any): target is SupportedHTMLElements;
4+
export declare function isStyledComponent(target: any): boolean;
5+
export declare function isVueComponent(target: any): boolean;
6+
export declare function isValidElementType(target: any): boolean;

dist/core/helper/keyframes.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export declare function keyframes(kfString: TemplateStringsArray): string;

dist/core/helper/withAttrs.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { ComponentInstance, DefineSetupFnComponent } from 'vue';
2+
3+
export declare function withAttrs<T extends Record<string, unknown>>(target: string | ComponentInstance<any>, attrs: T): DefineSetupFnComponent<any>;

0 commit comments

Comments
 (0)