@ctrliq/quantic-components 1.83.0 → 1.84.1
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/capacity-bar/index.js +30 -30
- package/dist/card/card-carousel.component.js +35 -35
- package/dist/card/card-group.component.js +2 -8
- package/dist/card/card.component.js +38 -38
- package/dist/code-input/index.js +33 -33
- package/dist/combobox/index.js +30 -30
- package/dist/dialog/dialog-actions.js +11 -10
- package/dist/dialog/dialog.js +18 -18
- package/dist/dropdown-menu/item.component.js +24 -24
- package/dist/field/field-group.component.js +13 -13
- package/dist/field/field.component.js +31 -31
- package/dist/fieldset/fieldset.component.js +27 -27
- package/dist/grid/grid.component.js +31 -31
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/layout/layout.component.js +1 -0
- package/dist/layout/navbar-menu-item.component.js +1 -0
- package/dist/layout/sidebar-menu-item.component.js +1 -0
- package/dist/log-output/log-output.component.js +1 -1
- package/dist/meta/index.js +6 -0
- package/dist/meta/index.js.map +1 -1
- package/dist/meta/public-css-variables.test.d.ts +1 -0
- package/dist/meta/public-css-variables.test.js +244 -0
- package/dist/meta.json +110 -5
- package/dist/number-input/index.js +18 -17
- package/dist/option-card/option-card.component.js +27 -27
- package/dist/panel/panel-group.component.js +10 -7
- package/dist/panel/panel.component.js +3 -3
- package/dist/progress/index.js +15 -15
- package/dist/quantic-components.js +709 -454
- package/dist/quantic-components.js.map +1 -1
- package/dist/quantic-components.min.js +606 -548
- package/dist/quantic-components.min.js.map +1 -1
- package/dist/register.js.map +1 -1
- package/dist/select/index.js +8 -8
- package/dist/spinner/index.js +7 -3
- package/dist/table/table-cell.component.js +2 -2
- package/dist/table/table-head.component.js +1 -1
- package/dist/table/table.component.js +16 -16
- 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/text-input/index.js +10 -10
- package/dist/textarea/index.js +10 -10
- package/dist/tooltip/tooltip.js +0 -1
- 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/meta/public-css-variables.test.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 +5 -3
package/dist/select/index.js
CHANGED
|
@@ -144,9 +144,9 @@ Select.styles = css `
|
|
|
144
144
|
border-radius: var(--quantic-component-select-border-radius, var(--quantic-radius-sm));
|
|
145
145
|
padding: var(
|
|
146
146
|
--quantic-component-select-padding-block,
|
|
147
|
-
var(--quantic-spacing-md)
|
|
147
|
+
var(--quantic-internal-select-padding-block, var(--quantic-spacing-md))
|
|
148
148
|
)
|
|
149
|
-
var(--quantic-component-select-padding-inline, var(--quantic-spacing-3));
|
|
149
|
+
var(--quantic-component-select-padding-inline, var(--quantic-internal-select-padding-inline, var(--quantic-spacing-3)));
|
|
150
150
|
font-size: var(
|
|
151
151
|
--quantic-component-select-font-size,
|
|
152
152
|
var(--quantic-font-size-body-md)
|
|
@@ -173,14 +173,14 @@ Select.styles = css `
|
|
|
173
173
|
|
|
174
174
|
.main.size--xs {
|
|
175
175
|
font-size: 13px;
|
|
176
|
-
--quantic-
|
|
177
|
-
--quantic-
|
|
176
|
+
--quantic-internal-select-padding-inline: var(--quantic-spacing-2);
|
|
177
|
+
--quantic-internal-select-padding-block: var(--quantic-spacing-xxs);
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
.main.size--sm {
|
|
181
181
|
font-size: var(--quantic-font-size-body-sm);
|
|
182
|
-
--quantic-
|
|
183
|
-
--quantic-
|
|
182
|
+
--quantic-internal-select-padding-inline: var(--quantic-spacing-2);
|
|
183
|
+
--quantic-internal-select-padding-block: var(--quantic-spacing-sm);
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
.main.size--md {
|
|
@@ -189,8 +189,8 @@ Select.styles = css `
|
|
|
189
189
|
|
|
190
190
|
.main.size--lg {
|
|
191
191
|
font-size: var(--quantic-font-size-body-lg);
|
|
192
|
-
--quantic-
|
|
193
|
-
--quantic-
|
|
192
|
+
--quantic-internal-select-padding-inline: var(--quantic-spacing-4);
|
|
193
|
+
--quantic-internal-select-padding-block: var(--quantic-spacing-3);
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
select {
|
package/dist/spinner/index.js
CHANGED
|
@@ -97,7 +97,11 @@ Spinner.styles = css `
|
|
|
97
97
|
width: 24px;
|
|
98
98
|
height: 24px;
|
|
99
99
|
border-radius: 50%;
|
|
100
|
-
border: 3px solid
|
|
100
|
+
border: 3px solid
|
|
101
|
+
var(
|
|
102
|
+
--quantic-component-spinner-color,
|
|
103
|
+
var(--quantic-internal-spinner-color, currentColor)
|
|
104
|
+
);
|
|
101
105
|
border-top-color: transparent;
|
|
102
106
|
}
|
|
103
107
|
|
|
@@ -129,10 +133,10 @@ Spinner.styles = css `
|
|
|
129
133
|
border-width: 0;
|
|
130
134
|
}
|
|
131
135
|
|
|
132
|
-
${unsafeCSS(generateColorStyles((color) => `--quantic-
|
|
136
|
+
${unsafeCSS(generateColorStyles((color) => `--quantic-internal-spinner-color: var(--quantic-utility-${color}-500);`))}
|
|
133
137
|
|
|
134
138
|
.color--brand {
|
|
135
|
-
--quantic-
|
|
139
|
+
--quantic-internal-spinner-color: var(--quantic-fg-brand-primary);
|
|
136
140
|
}
|
|
137
141
|
|
|
138
142
|
@keyframes spin {
|
|
@@ -49,8 +49,8 @@ TableCell.meta = {
|
|
|
49
49
|
TableCell.styles = css `
|
|
50
50
|
:host {
|
|
51
51
|
display: table-cell;
|
|
52
|
-
padding: var(--quantic-component-table-padding);
|
|
53
|
-
font-size: var(--quantic-component-table-font-size);
|
|
52
|
+
padding: var(--quantic-component-table-padding, var(--quantic-internal-table-padding));
|
|
53
|
+
font-size: var(--quantic-component-table-font-size, var(--quantic-internal-table-font-size));
|
|
54
54
|
color: var(--quantic-component-table-color);
|
|
55
55
|
vertical-align: middle;
|
|
56
56
|
text-align: var(--cell-align, left);
|
|
@@ -85,7 +85,7 @@ TableHead.meta = {
|
|
|
85
85
|
TableHead.styles = css `
|
|
86
86
|
:host {
|
|
87
87
|
display: table-cell;
|
|
88
|
-
padding: var(--quantic-component-table-padding);
|
|
88
|
+
padding: var(--quantic-component-table-padding, var(--quantic-internal-table-padding));
|
|
89
89
|
font-weight: var(--quantic-font-weight-semibold);
|
|
90
90
|
color: var(--quantic-component-table-header-color);
|
|
91
91
|
border-bottom: 1px solid var(--quantic-component-table-border-color);
|
|
@@ -65,11 +65,11 @@ Table.styles = css `
|
|
|
65
65
|
display: block;
|
|
66
66
|
width: fit-content;
|
|
67
67
|
font-family: var(--quantic-font-family-body);
|
|
68
|
-
font-size: var(--quantic-component-table-font-size);
|
|
68
|
+
font-size: var(--quantic-component-table-font-size, var(--quantic-internal-table-font-size));
|
|
69
69
|
overflow-x: auto;
|
|
70
70
|
|
|
71
|
-
--quantic-
|
|
72
|
-
--quantic-
|
|
71
|
+
--quantic-internal-table-padding: var(--quantic-spacing-3);
|
|
72
|
+
--quantic-internal-table-font-size: var(--quantic-font-size-body-sm);
|
|
73
73
|
--quantic-component-table-color: var(--quantic-text-secondary);
|
|
74
74
|
--quantic-component-table-header-color: var(--quantic-text-secondary);
|
|
75
75
|
--quantic-component-table-border-color: var(--quantic-border-secondary);
|
|
@@ -86,46 +86,46 @@ Table.styles = css `
|
|
|
86
86
|
|
|
87
87
|
/* Size */
|
|
88
88
|
:host([size='xs']) {
|
|
89
|
-
--quantic-
|
|
90
|
-
--quantic-
|
|
89
|
+
--quantic-internal-table-padding: var(--quantic-spacing-3);
|
|
90
|
+
--quantic-internal-table-font-size: var(--quantic-font-size-body-xs);
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
:host([size='sm']) {
|
|
94
|
-
--quantic-
|
|
95
|
-
--quantic-
|
|
94
|
+
--quantic-internal-table-padding: var(--quantic-spacing-4);
|
|
95
|
+
--quantic-internal-table-font-size: var(--quantic-font-size-body-sm);
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
:host([size='md']) {
|
|
99
|
-
--quantic-
|
|
100
|
-
--quantic-
|
|
99
|
+
--quantic-internal-table-padding: var(--quantic-spacing-5);
|
|
100
|
+
--quantic-internal-table-font-size: var(--quantic-font-size-body-md);
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
:host([size='lg']) {
|
|
104
|
-
--quantic-
|
|
105
|
-
--quantic-
|
|
104
|
+
--quantic-internal-table-padding: var(--quantic-spacing-6);
|
|
105
|
+
--quantic-internal-table-font-size: var(--quantic-font-size-body-md);
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
/* Dense variants - relative to size */
|
|
109
109
|
:host([dense][size='xs']) {
|
|
110
|
-
--quantic-
|
|
110
|
+
--quantic-internal-table-padding: var(--quantic-spacing-1-5);
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
:host([dense][size='sm']) {
|
|
114
|
-
--quantic-
|
|
114
|
+
--quantic-internal-table-padding: var(--quantic-spacing-2);
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
:host([dense][size='md']) {
|
|
118
|
-
--quantic-
|
|
118
|
+
--quantic-internal-table-padding: var(--quantic-spacing-2);
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
:host([dense][size='lg']) {
|
|
122
|
-
--quantic-
|
|
122
|
+
--quantic-internal-table-padding: var(--quantic-spacing-3);
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
.toolbar,
|
|
126
126
|
.controls {
|
|
127
127
|
display: block;
|
|
128
|
-
padding: var(--quantic-component-table-padding);
|
|
128
|
+
padding: var(--quantic-component-table-padding, var(--quantic-internal-table-padding));
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
.toolbar {
|
package/dist/tag/index.d.ts
CHANGED
package/dist/tag/index.js
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,62 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { css, html } from 'lit';
|
|
8
|
+
import { QuanticElement, quanticElement } from '../shared/quantic-element';
|
|
9
|
+
import { prop } from '../shared/component-meta.decorators';
|
|
10
|
+
let TagGroup = class TagGroup extends QuanticElement {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.ariaLabel = null;
|
|
14
|
+
}
|
|
15
|
+
render() {
|
|
16
|
+
return html `
|
|
17
|
+
<div class="group" role="group" aria-label=${this.ariaLabel ?? 'Tags'}>
|
|
18
|
+
<slot></slot>
|
|
19
|
+
</div>
|
|
20
|
+
`;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
TagGroup.meta = {
|
|
24
|
+
tag: 'quantic-tag-group',
|
|
25
|
+
description: 'A run of quantic-tag, quantic-status-tag or quantic-count-tag sharing one accessible name and a consistent gap. ' +
|
|
26
|
+
'Wraps across lines, and each tag keeps its own size. Gap: --quantic-component-tag-group-gap. ' +
|
|
27
|
+
'Use quantic-badge-group for badges.',
|
|
28
|
+
category: 'display',
|
|
29
|
+
slots: {
|
|
30
|
+
'': {
|
|
31
|
+
description: 'quantic-tag, quantic-status-tag or quantic-count-tag elements.',
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
subComponents: ['quantic-tag', 'quantic-status-tag', 'quantic-count-tag'],
|
|
35
|
+
relatedTo: ['quantic-tag', 'quantic-badge-group'],
|
|
36
|
+
};
|
|
37
|
+
TagGroup.styles = css `
|
|
38
|
+
:host {
|
|
39
|
+
display: block;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.group {
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-wrap: wrap;
|
|
45
|
+
align-items: center;
|
|
46
|
+
gap: var(
|
|
47
|
+
--quantic-component-tag-group-gap,
|
|
48
|
+
var(--quantic-spacing-1)
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
`;
|
|
52
|
+
__decorate([
|
|
53
|
+
prop({
|
|
54
|
+
type: 'string',
|
|
55
|
+
attribute: 'aria-label',
|
|
56
|
+
description: 'Accessible name for the group.',
|
|
57
|
+
})
|
|
58
|
+
], TagGroup.prototype, "ariaLabel", void 0);
|
|
59
|
+
TagGroup = __decorate([
|
|
60
|
+
quanticElement('quantic-tag-group')
|
|
61
|
+
], TagGroup);
|
|
62
|
+
export { TagGroup };
|
|
@@ -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>;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { story } from '../shared/story';
|
|
2
|
+
import { TagSize } from './index.constants';
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Components/Display/Tag/TagGroup',
|
|
5
|
+
component: 'quantic-tag-group',
|
|
6
|
+
tags: ['autodocs'],
|
|
7
|
+
argTypes: {
|
|
8
|
+
label: {
|
|
9
|
+
control: 'text',
|
|
10
|
+
description: 'Accessible name for the group. Defaults to "Tags".',
|
|
11
|
+
},
|
|
12
|
+
size: {
|
|
13
|
+
control: { type: 'select' },
|
|
14
|
+
options: Object.values(TagSize),
|
|
15
|
+
description: 'Size set on each tag. The group does not own sizing.',
|
|
16
|
+
},
|
|
17
|
+
tags: {
|
|
18
|
+
control: 'object',
|
|
19
|
+
description: 'Tag labels',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
const base = story({
|
|
24
|
+
args: {
|
|
25
|
+
label: undefined,
|
|
26
|
+
size: TagSize.Medium,
|
|
27
|
+
tags: ['Compute', 'Storage', 'Networking'],
|
|
28
|
+
},
|
|
29
|
+
}).render(({ label, size, tags }) => {
|
|
30
|
+
const labelAttr = label === undefined ? '' : `aria-label="${label}"`;
|
|
31
|
+
const items = tags
|
|
32
|
+
.map((tag) => `<quantic-tag size="${size}">${tag}</quantic-tag>`)
|
|
33
|
+
.join('');
|
|
34
|
+
return `<quantic-tag-group ${labelAttr}>${items}</quantic-tag-group>`;
|
|
35
|
+
});
|
|
36
|
+
export const Default = base;
|
|
37
|
+
export const WithAccessibleName = base.override({ label: 'Cluster capabilities' });
|
|
38
|
+
// The group has no gap, axis or wrap props on purpose: a run of tags always wraps the
|
|
39
|
+
// same way, so the rhythm is a decision rather than a knob.
|
|
40
|
+
export const Wrapping = base.override({
|
|
41
|
+
tags: [
|
|
42
|
+
'Compute',
|
|
43
|
+
'Storage',
|
|
44
|
+
'Networking',
|
|
45
|
+
'Scheduling',
|
|
46
|
+
'Monitoring',
|
|
47
|
+
'Provisioning',
|
|
48
|
+
'Authentication',
|
|
49
|
+
'Observability',
|
|
50
|
+
],
|
|
51
|
+
});
|
|
52
|
+
export const Dismissible = story().render(() => `
|
|
53
|
+
<quantic-tag-group aria-label="Applied filters">
|
|
54
|
+
<quantic-tag dismissible>Compute</quantic-tag>
|
|
55
|
+
<quantic-tag dismissible>Storage</quantic-tag>
|
|
56
|
+
<quantic-tag dismissible>Networking</quantic-tag>
|
|
57
|
+
</quantic-tag-group>
|
|
58
|
+
`);
|
|
59
|
+
export const MixedTagTypes = story().render(() => `
|
|
60
|
+
<quantic-tag-group aria-label="Cluster state">
|
|
61
|
+
<quantic-tag>Compute</quantic-tag>
|
|
62
|
+
<quantic-status-tag color="success">Healthy</quantic-status-tag>
|
|
63
|
+
<quantic-count-tag count="12">Nodes</quantic-count-tag>
|
|
64
|
+
</quantic-tag-group>
|
|
65
|
+
`);
|
package/dist/text-input/index.js
CHANGED
|
@@ -169,8 +169,8 @@ TextInput.styles = css `
|
|
|
169
169
|
display: inline-block;
|
|
170
170
|
width: 100%;
|
|
171
171
|
|
|
172
|
-
--quantic-
|
|
173
|
-
--quantic-
|
|
172
|
+
--quantic-internal-text-input-padding-inline: var(--quantic-spacing-3);
|
|
173
|
+
--quantic-internal-text-input-padding-block: var(--quantic-spacing-md);
|
|
174
174
|
--quantic-component-text-input-bg: var(--quantic-bg-primary);
|
|
175
175
|
--quantic-component-text-input-color: var(--quantic-text-primary);
|
|
176
176
|
}
|
|
@@ -187,8 +187,8 @@ TextInput.styles = css `
|
|
|
187
187
|
border-radius: var(--quantic-component-text-input-border-radius, var(--quantic-radius-sm));
|
|
188
188
|
color: var(--quantic-component-text-input-color);
|
|
189
189
|
background-color: var(--quantic-component-text-input-bg);
|
|
190
|
-
padding: var(--quantic-component-text-input-padding-block)
|
|
191
|
-
var(--quantic-component-text-input-padding-inline);
|
|
190
|
+
padding: var(--quantic-component-text-input-padding-block, var(--quantic-internal-text-input-padding-block))
|
|
191
|
+
var(--quantic-component-text-input-padding-inline, var(--quantic-internal-text-input-padding-inline));
|
|
192
192
|
transition:
|
|
193
193
|
border-color 0.2s ease-in-out,
|
|
194
194
|
box-shadow 0.2s ease-in-out;
|
|
@@ -208,14 +208,14 @@ TextInput.styles = css `
|
|
|
208
208
|
|
|
209
209
|
.main.size--xs {
|
|
210
210
|
font-size: 13px;
|
|
211
|
-
--quantic-
|
|
212
|
-
--quantic-
|
|
211
|
+
--quantic-internal-text-input-padding-inline: var(--quantic-spacing-2);
|
|
212
|
+
--quantic-internal-text-input-padding-block: var(--quantic-spacing-xxs);
|
|
213
213
|
}
|
|
214
214
|
|
|
215
215
|
.main.size--sm {
|
|
216
216
|
font-size: var(--quantic-font-size-body-sm);
|
|
217
|
-
--quantic-
|
|
218
|
-
--quantic-
|
|
217
|
+
--quantic-internal-text-input-padding-inline: var(--quantic-spacing-2);
|
|
218
|
+
--quantic-internal-text-input-padding-block: var(--quantic-spacing-sm);
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
.main.size--md {
|
|
@@ -224,8 +224,8 @@ TextInput.styles = css `
|
|
|
224
224
|
|
|
225
225
|
.main.size--lg {
|
|
226
226
|
font-size: var(--quantic-font-size-body-lg);
|
|
227
|
-
--quantic-
|
|
228
|
-
--quantic-
|
|
227
|
+
--quantic-internal-text-input-padding-inline: var(--quantic-spacing-4);
|
|
228
|
+
--quantic-internal-text-input-padding-block: var(--quantic-spacing-3);
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
.input {
|
package/dist/textarea/index.js
CHANGED
|
@@ -119,8 +119,8 @@ Textarea.styles = css `
|
|
|
119
119
|
display: inline-block;
|
|
120
120
|
width: 100%;
|
|
121
121
|
|
|
122
|
-
--quantic-
|
|
123
|
-
--quantic-
|
|
122
|
+
--quantic-internal-textarea-padding-inline: var(--quantic-spacing-3);
|
|
123
|
+
--quantic-internal-textarea-padding-block: var(--quantic-spacing-md);
|
|
124
124
|
--quantic-component-textarea-bg: var(--quantic-bg-primary);
|
|
125
125
|
--quantic-component-textarea-color: var(--quantic-text-primary);
|
|
126
126
|
}
|
|
@@ -135,8 +135,8 @@ Textarea.styles = css `
|
|
|
135
135
|
border-radius: var(--quantic-component-textarea-border-radius, var(--quantic-radius-sm));
|
|
136
136
|
color: var(--quantic-component-textarea-color);
|
|
137
137
|
background-color: var(--quantic-component-textarea-bg);
|
|
138
|
-
padding: var(--quantic-component-textarea-padding-block)
|
|
139
|
-
var(--quantic-component-textarea-padding-inline);
|
|
138
|
+
padding: var(--quantic-component-textarea-padding-block, var(--quantic-internal-textarea-padding-block))
|
|
139
|
+
var(--quantic-component-textarea-padding-inline, var(--quantic-internal-textarea-padding-inline));
|
|
140
140
|
transition:
|
|
141
141
|
border-color 0.2s ease-in-out,
|
|
142
142
|
box-shadow 0.2s ease-in-out;
|
|
@@ -156,14 +156,14 @@ Textarea.styles = css `
|
|
|
156
156
|
|
|
157
157
|
.main.size--xs {
|
|
158
158
|
font-size: 13px;
|
|
159
|
-
--quantic-
|
|
160
|
-
--quantic-
|
|
159
|
+
--quantic-internal-textarea-padding-inline: var(--quantic-spacing-2);
|
|
160
|
+
--quantic-internal-textarea-padding-block: var(--quantic-spacing-xxs);
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
.main.size--sm {
|
|
164
164
|
font-size: var(--quantic-font-size-body-sm);
|
|
165
|
-
--quantic-
|
|
166
|
-
--quantic-
|
|
165
|
+
--quantic-internal-textarea-padding-inline: var(--quantic-spacing-2);
|
|
166
|
+
--quantic-internal-textarea-padding-block: var(--quantic-spacing-sm);
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
.main.size--md {
|
|
@@ -172,8 +172,8 @@ Textarea.styles = css `
|
|
|
172
172
|
|
|
173
173
|
.main.size--lg {
|
|
174
174
|
font-size: var(--quantic-font-size-body-lg);
|
|
175
|
-
--quantic-
|
|
176
|
-
--quantic-
|
|
175
|
+
--quantic-internal-textarea-padding-inline: var(--quantic-spacing-4);
|
|
176
|
+
--quantic-internal-textarea-padding-block: var(--quantic-spacing-3);
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
.input {
|
package/dist/tooltip/tooltip.js
CHANGED
|
@@ -236,7 +236,6 @@ Tooltip.styles = css `
|
|
|
236
236
|
--quantic-component-tooltip-font-size: var(--quantic-font-size-body-sm);
|
|
237
237
|
--quantic-component-tooltip-line-height: var(--quantic-line-height-body-sm);
|
|
238
238
|
--quantic-component-tooltip-z-index: 9999;
|
|
239
|
-
--quantic-component-tooltip-offset: 20px;
|
|
240
239
|
--quantic-component-tooltip-arrow-size: var(--quantic-spacing-2);
|
|
241
240
|
}
|
|
242
241
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { QuanticElement } from '../shared/quantic-element';
|
|
2
|
+
import type { ComponentMeta } from '../shared/meta.types';
|
|
3
|
+
export declare class ActionGroup 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-action-group': ActionGroup;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './action-group.component';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
interface Args {
|
|
2
|
+
label: string | undefined;
|
|
3
|
+
actions: string[];
|
|
4
|
+
}
|
|
5
|
+
declare const _default: {
|
|
6
|
+
title: string;
|
|
7
|
+
component: string;
|
|
8
|
+
tags: string[];
|
|
9
|
+
argTypes: {
|
|
10
|
+
label: {
|
|
11
|
+
control: string;
|
|
12
|
+
description: string;
|
|
13
|
+
};
|
|
14
|
+
actions: {
|
|
15
|
+
control: string;
|
|
16
|
+
description: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
21
|
+
export declare const Default: import("../shared/story").StoryObject<Args>;
|
|
22
|
+
export declare const WithAccessibleName: import("../shared/story").StoryObject<Args>;
|
|
23
|
+
export declare const ThreeActions: import("../shared/story").StoryObject<Args>;
|
|
24
|
+
export declare const IconActions: import("../shared/story").StoryObject<object>;
|
|
25
|
+
export declare const InsideADialogFooter: import("../shared/story").StoryObject<object>;
|