@ctrliq/quantic-components 1.83.0 → 1.84.0
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.
- package/dist/action-group/action-group.component.d.ts +13 -0
- package/dist/action-group/action-group.component.js +63 -0
- package/dist/action-group/index.d.ts +1 -0
- package/dist/action-group/index.js +1 -0
- package/dist/action-group/index.stories.d.ts +25 -0
- package/dist/action-group/index.stories.js +59 -0
- package/dist/astro.d.ts +4 -1
- package/dist/astro.js +4 -1
- package/dist/astro.js.map +1 -1
- package/dist/badge/badge-group.component.d.ts +13 -0
- package/dist/badge/badge-group.component.js +62 -0
- package/dist/badge/badge-group.stories.d.ts +41 -0
- package/dist/badge/badge-group.stories.js +62 -0
- package/dist/badge/index.d.ts +1 -0
- package/dist/badge/index.js +1 -0
- package/dist/button-bar/button-bar-item.d.ts +3 -0
- package/dist/button-bar/button-bar-item.js +12 -1
- package/dist/button-bar/button-bar.d.ts +9 -0
- package/dist/button-bar/button-bar.js +53 -2
- package/dist/button-bar/index.stories.js +2 -2
- package/dist/button-bar/index.utils.d.ts +6 -0
- package/dist/button-bar/index.utils.js +31 -0
- package/dist/button-bar/index.utils.test.d.ts +1 -0
- package/dist/button-bar/index.utils.test.js +53 -0
- package/dist/button-group/button-group.js +1 -2
- package/dist/dialog/dialog-actions.js +11 -10
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/meta/index.js +6 -0
- package/dist/meta/index.js.map +1 -1
- package/dist/meta.json +110 -5
- package/dist/quantic-components.js +266 -15
- package/dist/quantic-components.js.map +1 -1
- package/dist/quantic-components.min.js +163 -109
- package/dist/quantic-components.min.js.map +1 -1
- package/dist/register.js.map +1 -1
- package/dist/tag/index.d.ts +1 -0
- package/dist/tag/index.js +1 -0
- package/dist/tag/tag-group.component.d.ts +13 -0
- package/dist/tag/tag-group.component.js +62 -0
- package/dist/tag/tag-group.stories.d.ts +34 -0
- package/dist/tag/tag-group.stories.js +65 -0
- package/dist/types/action-group/action-group.component.d.ts +13 -0
- package/dist/types/action-group/index.d.ts +1 -0
- package/dist/types/action-group/index.stories.d.ts +25 -0
- package/dist/types/astro.d.ts +4 -1
- package/dist/types/badge/badge-group.component.d.ts +13 -0
- package/dist/types/badge/badge-group.stories.d.ts +41 -0
- package/dist/types/badge/index.d.ts +1 -0
- package/dist/types/button-bar/button-bar-item.d.ts +3 -0
- package/dist/types/button-bar/button-bar.d.ts +9 -0
- package/dist/types/button-bar/index.utils.d.ts +6 -0
- package/dist/types/button-bar/index.utils.test.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/tag/index.d.ts +1 -0
- package/dist/types/tag/tag-group.component.d.ts +13 -0
- package/dist/types/tag/tag-group.stories.d.ts +34 -0
- package/package.json +4 -3
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { QuanticElement } from '../shared/quantic-element';
|
|
2
|
+
import type { ComponentMeta } from '../shared/meta.types';
|
|
3
|
+
export declare class BadgeGroup extends QuanticElement {
|
|
4
|
+
static meta: ComponentMeta;
|
|
5
|
+
ariaLabel: string | null;
|
|
6
|
+
static styles: import("lit").CSSResult;
|
|
7
|
+
render(): import("lit").TemplateResult<1>;
|
|
8
|
+
}
|
|
9
|
+
declare global {
|
|
10
|
+
interface HTMLElementTagNameMap {
|
|
11
|
+
'quantic-badge-group': BadgeGroup;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { BadgeColor, BadgeSize } from './index.constants';
|
|
2
|
+
interface Args {
|
|
3
|
+
label: string | undefined;
|
|
4
|
+
size: BadgeSize;
|
|
5
|
+
color: BadgeColor;
|
|
6
|
+
badges: string[];
|
|
7
|
+
}
|
|
8
|
+
declare const _default: {
|
|
9
|
+
title: string;
|
|
10
|
+
component: string;
|
|
11
|
+
tags: string[];
|
|
12
|
+
argTypes: {
|
|
13
|
+
label: {
|
|
14
|
+
control: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
size: {
|
|
18
|
+
control: {
|
|
19
|
+
type: string;
|
|
20
|
+
};
|
|
21
|
+
options: ("xs" | "sm" | "md" | "lg")[];
|
|
22
|
+
description: string;
|
|
23
|
+
};
|
|
24
|
+
color: {
|
|
25
|
+
control: {
|
|
26
|
+
type: string;
|
|
27
|
+
};
|
|
28
|
+
options: ("success" | "error" | "warning" | "gray" | "brand" | "gray-blue" | "blue-light" | "blue" | "indigo" | "purple" | "pink" | "orange")[];
|
|
29
|
+
description: string;
|
|
30
|
+
};
|
|
31
|
+
badges: {
|
|
32
|
+
control: string;
|
|
33
|
+
description: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export default _default;
|
|
38
|
+
export declare const Default: import("../shared/story").StoryObject<Args>;
|
|
39
|
+
export declare const WithAccessibleName: import("../shared/story").StoryObject<Args>;
|
|
40
|
+
export declare const Wrapping: import("../shared/story").StoryObject<Args>;
|
|
41
|
+
export declare const StatusBadges: import("../shared/story").StoryObject<object>;
|
|
@@ -4,6 +4,9 @@ import type { ComponentMeta } from '../shared/meta.types';
|
|
|
4
4
|
export declare class ButtonBarItem extends QuanticElement {
|
|
5
5
|
static meta: ComponentMeta;
|
|
6
6
|
size?: ButtonBarSize;
|
|
7
|
+
tabbable: boolean;
|
|
8
|
+
private innerButton?;
|
|
9
|
+
focus(options?: FocusOptions): void;
|
|
7
10
|
disabled: boolean;
|
|
8
11
|
active: boolean;
|
|
9
12
|
static styles: import("lit").CSSResult;
|
|
@@ -5,6 +5,15 @@ export declare class ButtonBar extends QuanticElement {
|
|
|
5
5
|
static meta: ComponentMeta;
|
|
6
6
|
size: ButtonBarSize;
|
|
7
7
|
ariaLabel: string | null;
|
|
8
|
+
private disabledObserver?;
|
|
9
|
+
private hasSynced;
|
|
10
|
+
connectedCallback(): void;
|
|
11
|
+
disconnectedCallback(): void;
|
|
12
|
+
private get items();
|
|
13
|
+
private setFocusStop;
|
|
14
|
+
private syncFocusStop;
|
|
15
|
+
private handleFocusIn;
|
|
16
|
+
private handleKeydown;
|
|
8
17
|
static styles: import("lit").CSSResult;
|
|
9
18
|
protected defaultLabel: string;
|
|
10
19
|
render(): import("lit").TemplateResult<1>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface FocusStopCandidate {
|
|
2
|
+
tabbable: boolean;
|
|
3
|
+
active: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare function resolveFocusStop(items: FocusStopCandidate[], hasSynced: boolean): number | null;
|
|
6
|
+
export declare function nextFocusIndex(key: string, current: number, count: number): number | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { QuanticElement } from '../shared/quantic-element';
|
|
2
|
+
import type { ComponentMeta } from '../shared/meta.types';
|
|
3
|
+
export declare class TagGroup extends QuanticElement {
|
|
4
|
+
static meta: ComponentMeta;
|
|
5
|
+
ariaLabel: string | null;
|
|
6
|
+
static styles: import("lit").CSSResult;
|
|
7
|
+
render(): import("lit").TemplateResult<1>;
|
|
8
|
+
}
|
|
9
|
+
declare global {
|
|
10
|
+
interface HTMLElementTagNameMap {
|
|
11
|
+
'quantic-tag-group': TagGroup;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { TagSize } from './index.constants';
|
|
2
|
+
interface Args {
|
|
3
|
+
label: string | undefined;
|
|
4
|
+
size: TagSize;
|
|
5
|
+
tags: string[];
|
|
6
|
+
}
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: string;
|
|
10
|
+
tags: string[];
|
|
11
|
+
argTypes: {
|
|
12
|
+
label: {
|
|
13
|
+
control: string;
|
|
14
|
+
description: string;
|
|
15
|
+
};
|
|
16
|
+
size: {
|
|
17
|
+
control: {
|
|
18
|
+
type: string;
|
|
19
|
+
};
|
|
20
|
+
options: ("sm" | "md" | "lg")[];
|
|
21
|
+
description: string;
|
|
22
|
+
};
|
|
23
|
+
tags: {
|
|
24
|
+
control: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export default _default;
|
|
30
|
+
export declare const Default: import("../shared/story").StoryObject<Args>;
|
|
31
|
+
export declare const WithAccessibleName: import("../shared/story").StoryObject<Args>;
|
|
32
|
+
export declare const Wrapping: import("../shared/story").StoryObject<Args>;
|
|
33
|
+
export declare const Dismissible: import("../shared/story").StoryObject<object>;
|
|
34
|
+
export declare const MixedTagTypes: import("../shared/story").StoryObject<object>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ctrliq/quantic-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.84.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -88,10 +88,11 @@
|
|
|
88
88
|
"prebuild": "pnpm run prebuild:fonts && pnpm run prebuild:tokens && pnpm run prebuild:icons && pnpm run prebuild:astro",
|
|
89
89
|
"postbuild:astro": "node scripts/fix-astro-dts.mjs",
|
|
90
90
|
"postbuild:meta": "node scripts/gen-meta.mjs",
|
|
91
|
-
"build": "pnpm run prebuild:icons && pnpm run prebuild:astro && rollup -c && tsc -p tsconfig.json && pnpm run postbuild:astro && pnpm run postbuild:meta",
|
|
91
|
+
"build": "pnpm run clean && pnpm run prebuild:icons && pnpm run prebuild:astro && rollup -c && tsc -p tsconfig.json && pnpm run postbuild:astro && pnpm run postbuild:meta",
|
|
92
92
|
"dev": "pnpm run prebuild:icons && pnpm run prebuild:astro && rollup -c -w",
|
|
93
93
|
"typecheck": "pnpm run prebuild:icons && pnpm run prebuild:astro && tsc",
|
|
94
94
|
"test": "vitest run",
|
|
95
|
-
"release": "semantic-release"
|
|
95
|
+
"release": "semantic-release",
|
|
96
|
+
"clean": "rm -rf dist"
|
|
96
97
|
}
|
|
97
98
|
}
|