@arclux/arc-ui 1.5.0 → 1.5.2
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/package.json +1 -1
- package/src/content/accordion.js +8 -3
- package/src/content/data-table.js +2 -2
- package/src/feedback/alert.js +1 -1
- package/src/feedback/modal.js +1 -1
- package/src/input/file-upload.js +1 -1
- package/src/input/form.js +2 -2
- package/src/input/input.js +2 -2
- package/src/navigation/link.js +1 -1
- package/src/navigation/scroll-to-top.js +1 -1
- package/src/shared-styles.js +6 -0
package/package.json
CHANGED
package/src/content/accordion.js
CHANGED
|
@@ -55,10 +55,13 @@ export class ArcAccordion extends LitElement {
|
|
|
55
55
|
|
|
56
56
|
.accordion__chevron {
|
|
57
57
|
color: var(--text-muted);
|
|
58
|
-
|
|
58
|
+
width: 18px;
|
|
59
|
+
height: 18px;
|
|
59
60
|
transition: transform 300ms ease;
|
|
60
61
|
flex-shrink: 0;
|
|
61
|
-
display: inline-
|
|
62
|
+
display: inline-flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
justify-content: center;
|
|
62
65
|
}
|
|
63
66
|
|
|
64
67
|
.accordion__trigger[aria-expanded="true"] .accordion__chevron {
|
|
@@ -136,7 +139,9 @@ export class ArcAccordion extends LitElement {
|
|
|
136
139
|
@click=${() => this._toggle(i)}
|
|
137
140
|
>
|
|
138
141
|
<span>${item.question}</span>
|
|
139
|
-
<
|
|
142
|
+
<svg class="accordion__chevron" viewBox="0 0 16 16" fill="none" aria-hidden="true">
|
|
143
|
+
<path d="M4 6l4 4 4-4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
144
|
+
</svg>
|
|
140
145
|
</button>
|
|
141
146
|
<div class="accordion__content ${isOpen ? 'is-open' : ''}">
|
|
142
147
|
<div class="accordion__body">
|
|
@@ -5,8 +5,8 @@ import './column.js';
|
|
|
5
5
|
export class ArcDataTable extends LitElement {
|
|
6
6
|
static properties = {
|
|
7
7
|
rows: { type: Array },
|
|
8
|
-
sortable: { type: Boolean },
|
|
9
|
-
selectable: { type: Boolean },
|
|
8
|
+
sortable: { type: Boolean, reflect: true },
|
|
9
|
+
selectable: { type: Boolean, reflect: true },
|
|
10
10
|
sortColumn: { type: String, attribute: 'sort-column' },
|
|
11
11
|
sortDirection: { type: String, reflect: true, attribute: 'sort-direction' },
|
|
12
12
|
_columns: { state: true },
|
package/src/feedback/alert.js
CHANGED
|
@@ -7,7 +7,7 @@ export class ArcAlert extends LitElement {
|
|
|
7
7
|
static properties = {
|
|
8
8
|
variant: { type: String, reflect: true },
|
|
9
9
|
compact: { type: Boolean, reflect: true },
|
|
10
|
-
dismissible: { type: Boolean },
|
|
10
|
+
dismissible: { type: Boolean, reflect: true },
|
|
11
11
|
heading: { type: String },
|
|
12
12
|
};
|
|
13
13
|
|
package/src/feedback/modal.js
CHANGED
|
@@ -7,7 +7,7 @@ export class ArcModal extends LitElement {
|
|
|
7
7
|
heading: { type: String },
|
|
8
8
|
size: { type: String, reflect: true },
|
|
9
9
|
fullscreen: { type: Boolean, reflect: true },
|
|
10
|
-
closable: { type: Boolean },
|
|
10
|
+
closable: { type: Boolean, reflect: true },
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
static styles = [
|
package/src/input/file-upload.js
CHANGED
|
@@ -4,7 +4,7 @@ import { tokenStyles } from '../shared-styles.js';
|
|
|
4
4
|
export class ArcFileUpload extends LitElement {
|
|
5
5
|
static properties = {
|
|
6
6
|
accept: { type: String },
|
|
7
|
-
multiple: { type: Boolean },
|
|
7
|
+
multiple: { type: Boolean, reflect: true },
|
|
8
8
|
maxSize: { type: Number, attribute: 'max-size' },
|
|
9
9
|
disabled: { type: Boolean, reflect: true },
|
|
10
10
|
_files: { state: true },
|
package/src/input/form.js
CHANGED
|
@@ -5,10 +5,10 @@ export class ArcForm extends LitElement {
|
|
|
5
5
|
static properties = {
|
|
6
6
|
action: { type: String },
|
|
7
7
|
method: { type: String },
|
|
8
|
-
novalidate: { type: Boolean },
|
|
8
|
+
novalidate: { type: Boolean, reflect: true },
|
|
9
9
|
loading: { type: Boolean, reflect: true },
|
|
10
10
|
disabled: { type: Boolean, reflect: true },
|
|
11
|
-
errorSummary: { type: Boolean, attribute: 'error-summary' },
|
|
11
|
+
errorSummary: { type: Boolean, reflect: true, attribute: 'error-summary' },
|
|
12
12
|
_errors: { state: true },
|
|
13
13
|
};
|
|
14
14
|
|
package/src/input/input.js
CHANGED
|
@@ -13,10 +13,10 @@ export class ArcInput extends LitElement {
|
|
|
13
13
|
placeholder: { type: String },
|
|
14
14
|
value: { type: String },
|
|
15
15
|
disabled: { type: Boolean, reflect: true },
|
|
16
|
-
required: { type: Boolean },
|
|
16
|
+
required: { type: Boolean, reflect: true },
|
|
17
17
|
error: { type: String },
|
|
18
18
|
size: { type: String, reflect: true },
|
|
19
|
-
multiline: { type: Boolean },
|
|
19
|
+
multiline: { type: Boolean, reflect: true },
|
|
20
20
|
rows: { type: Number },
|
|
21
21
|
_hasPrefix: { state: true },
|
|
22
22
|
_hasSuffix: { state: true },
|
package/src/navigation/link.js
CHANGED
|
@@ -7,7 +7,7 @@ export class ArcLink extends LitElement {
|
|
|
7
7
|
variant: { type: String, reflect: true },
|
|
8
8
|
underline: { type: String, reflect: true },
|
|
9
9
|
active: { type: Boolean, reflect: true },
|
|
10
|
-
external: { type: Boolean },
|
|
10
|
+
external: { type: Boolean, reflect: true },
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
static styles = [
|
|
@@ -7,7 +7,7 @@ import { tokenStyles } from '../shared-styles.js';
|
|
|
7
7
|
export class ArcScrollToTop extends LitElement {
|
|
8
8
|
static properties = {
|
|
9
9
|
threshold: { type: Number },
|
|
10
|
-
smooth: { type: Boolean },
|
|
10
|
+
smooth: { type: Boolean, reflect: true },
|
|
11
11
|
position: { type: String, reflect: true },
|
|
12
12
|
offset: { type: String },
|
|
13
13
|
_visible: { state: true },
|
package/src/shared-styles.js
CHANGED
|
@@ -11,6 +11,12 @@ import { css } from 'lit';
|
|
|
11
11
|
* as fallback defaults.
|
|
12
12
|
*/
|
|
13
13
|
export const tokenStyles = css`
|
|
14
|
+
*, *::before, *::after {
|
|
15
|
+
margin: 0;
|
|
16
|
+
padding: 0;
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
}
|
|
19
|
+
|
|
14
20
|
:host {
|
|
15
21
|
--font-body: 'Host Grotesk', system-ui, sans-serif;
|
|
16
22
|
--font-accent: 'Tektur', system-ui, sans-serif;
|