@styleon/foundation 0.0.0-next.1 → 0.0.0-next.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -9,6 +9,9 @@ export declare class TabsComponent extends LitElement {
|
|
|
9
9
|
private tabs;
|
|
10
10
|
connectedCallback(): void;
|
|
11
11
|
firstUpdated(): void;
|
|
12
|
+
/**
|
|
13
|
+
* activeTab changes then update tab-service
|
|
14
|
+
*/
|
|
12
15
|
protected updated(_changedProperties: PropertyValues): void;
|
|
13
16
|
disconnectedCallback(): void;
|
|
14
17
|
render(): import('lit-html').TemplateResult<1>;
|
|
@@ -24,6 +24,9 @@ let i = class extends p {
|
|
|
24
24
|
firstUpdated() {
|
|
25
25
|
!this.activeTab && this.tabs.length > 0 && this.tabService.setActiveTab(this.tabs[0]), this.setAttribute("role", "tablist");
|
|
26
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* activeTab changes then update tab-service
|
|
29
|
+
*/
|
|
27
30
|
updated(t) {
|
|
28
31
|
if (super.updated(t), t.has("activeTab")) {
|
|
29
32
|
const e = this.tabs.find((a) => a.id === this.activeTab);
|
package/package.json
CHANGED
|
@@ -1,22 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@styleon/foundation",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.0-next.
|
|
4
|
+
"version": "0.0.0-next.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
8
8
|
"README.md"
|
|
9
9
|
],
|
|
10
10
|
"scripts": {
|
|
11
|
-
"dev": "vite",
|
|
12
|
-
"build": "tsc && vite build",
|
|
11
|
+
"dev": "npm run build-tokens && vite",
|
|
12
|
+
"build": "npm run build-tokens && tsc && vite build",
|
|
13
|
+
"build-tokens": "node style-dictionary.config.js",
|
|
13
14
|
"preview": "vite preview",
|
|
14
|
-
"storybook": "storybook dev -p 6006",
|
|
15
|
-
"build-storybook": "storybook build",
|
|
16
|
-
"static:build": "cd storybook-static && http-server"
|
|
15
|
+
"storybook": "npm run build-tokens && storybook dev -p 6006",
|
|
16
|
+
"build-storybook": "npm run build-tokens && storybook build",
|
|
17
|
+
"static:build": "cd storybook-static && http-server",
|
|
18
|
+
"cem": "custom-elements-manifest analyze"
|
|
17
19
|
},
|
|
18
20
|
"devDependencies": {
|
|
19
21
|
"@chromatic-com/storybook": "^3.2.4",
|
|
22
|
+
"@custom-elements-manifest/analyzer": "^0.10.4",
|
|
20
23
|
"@lit/context": "^1.1.4",
|
|
21
24
|
"@storybook/addon-essentials": "^8.5.8",
|
|
22
25
|
"@storybook/blocks": "^8.5.8",
|
|
@@ -29,7 +32,7 @@
|
|
|
29
32
|
"sass": "^1.85.0",
|
|
30
33
|
"semantic-release": "^24.2.3",
|
|
31
34
|
"storybook": "^8.5.8",
|
|
32
|
-
"style-dictionary": "^4.
|
|
35
|
+
"style-dictionary": "^4.4.0",
|
|
33
36
|
"typescript": "~5.7.2",
|
|
34
37
|
"vite": "^6.1.0",
|
|
35
38
|
"vite-plugin-dts": "^4.5.1"
|