@arclux/arc-ui 1.5.0 → 1.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arclux/arc-ui",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "ARC UI — Lit Web Components implementing the Arclight design system.",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -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 },
@@ -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
 
@@ -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 = [
@@ -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
 
@@ -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 },
@@ -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 },
@@ -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;