@supersoniks/concorde 1.1.9 → 1.1.10

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.
Files changed (73) hide show
  1. package/core/components/functional/configuration/configuration.d.ts +5 -0
  2. package/core/components/functional/configuration/configuration.js +21 -0
  3. package/core/components/functional/date/date.js +3 -2
  4. package/core/components/functional/fetch/fetch.d.ts +27 -10
  5. package/core/components/functional/fetch/fetch.js +27 -12
  6. package/core/components/functional/functional.d.ts +1 -0
  7. package/core/components/functional/functional.js +1 -0
  8. package/core/components/functional/list/list.d.ts +11 -6
  9. package/core/components/functional/list/list.js +50 -20
  10. package/core/components/functional/sonic-scope/sonic-scope.d.ts +5 -0
  11. package/core/components/functional/sonic-scope/sonic-scope.js +20 -0
  12. package/core/components/functional/states/states.js +0 -2
  13. package/core/components/functional/submit/submit.d.ts +2 -0
  14. package/core/components/functional/submit/submit.js +23 -8
  15. package/core/components/ui/badge/badge.js +0 -1
  16. package/core/components/ui/button/button.d.ts +0 -1
  17. package/core/components/ui/button/button.js +1 -1
  18. package/core/components/ui/card/card-footer.d.ts +5 -0
  19. package/core/components/ui/card/card-footer.js +27 -0
  20. package/core/components/ui/card/card-header-descripton.d.ts +5 -0
  21. package/core/components/ui/card/card-header-descripton.js +33 -0
  22. package/core/components/ui/card/card-header.d.ts +8 -0
  23. package/core/components/ui/card/card-header.js +67 -0
  24. package/core/components/ui/card/card-main.d.ts +5 -0
  25. package/core/components/ui/card/card-main.js +29 -0
  26. package/core/components/ui/card/card.d.ts +12 -0
  27. package/core/components/ui/card/card.js +90 -0
  28. package/core/components/ui/form/checkbox/checkbox.d.ts +0 -2
  29. package/core/components/ui/form/checkbox/checkbox.js +3 -3
  30. package/core/components/ui/form/css/form-control.js +2 -0
  31. package/core/components/ui/form/fieldset/fieldset.js +1 -1
  32. package/core/components/ui/form/fieldset/legend-description.d.ts +5 -0
  33. package/core/components/ui/form/fieldset/legend-description.js +35 -0
  34. package/core/components/ui/form/fieldset/legend.d.ts +4 -5
  35. package/core/components/ui/form/fieldset/legend.js +21 -25
  36. package/core/components/ui/form/input/input.d.ts +1 -2
  37. package/core/components/ui/form/input/input.js +3 -3
  38. package/core/components/ui/form/textarea/textarea.d.ts +0 -1
  39. package/core/components/ui/form/textarea/textarea.js +2 -2
  40. package/core/components/ui/progress/progress.d.ts +7 -0
  41. package/core/components/ui/progress/progress.js +63 -0
  42. package/core/components/ui/table/table-caption.d.ts +5 -0
  43. package/core/components/ui/table/table-caption.js +24 -0
  44. package/core/components/ui/table/table-tbody.d.ts +5 -0
  45. package/core/components/ui/table/table-tbody.js +37 -0
  46. package/core/components/ui/table/table-td.d.ts +7 -0
  47. package/core/components/ui/table/table-td.js +45 -0
  48. package/core/components/ui/table/table-tfoot.d.ts +5 -0
  49. package/core/components/ui/table/table-tfoot.js +23 -0
  50. package/core/components/ui/table/table-th.d.ts +6 -0
  51. package/core/components/ui/table/table-th.js +43 -0
  52. package/core/components/ui/table/table-thead.d.ts +5 -0
  53. package/core/components/ui/table/table-thead.js +24 -0
  54. package/core/components/ui/table/table-tr.d.ts +5 -0
  55. package/core/components/ui/table/table-tr.js +24 -0
  56. package/core/components/ui/table/table.d.ts +16 -0
  57. package/core/components/ui/table/table.js +88 -0
  58. package/core/components/ui/theme/theme-collection/core-variables.js +1 -1
  59. package/core/components/ui/theme/theme-collection/dark.js +3 -2
  60. package/core/components/ui/theme/theme-collection/light.js +1 -0
  61. package/core/components/ui/ui.d.ts +3 -0
  62. package/core/components/ui/ui.js +3 -0
  63. package/core/mixins/Fetcher.d.ts +1 -4
  64. package/core/mixins/Fetcher.js +1 -1
  65. package/core/mixins/FormCheckable.d.ts +3 -2
  66. package/core/mixins/FormInput.d.ts +0 -1
  67. package/core/mixins/Subscriber.d.ts +0 -1
  68. package/core/mixins/Subscriber.js +0 -15
  69. package/core/utils/Objects.d.ts +2 -1
  70. package/core/utils/Objects.js +8 -2
  71. package/core/utils/PublisherProxy.mjs +42 -12
  72. package/core/utils/api.js +1 -1
  73. package/package.json +36 -1
@@ -0,0 +1,67 @@
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 { html, LitElement, css } from "lit";
8
+ import { customElement, property } from "lit/decorators.js";
9
+ import './card-header-descripton.ts';
10
+ let CardHeader = class CardHeader extends LitElement {
11
+ render() {
12
+ return html `
13
+ <div class="header">
14
+ <div class="header-content">
15
+ ${this.label}
16
+ ${this.description ? html `<sonic-card-header-description>${this.description}</sonic-card-header-description>` : ""}
17
+ <slot></slot>
18
+ </div>
19
+ <slot name="suffix"></slot>
20
+ </div>
21
+ `;
22
+ }
23
+ };
24
+ CardHeader.styles = [
25
+ css `
26
+
27
+ :host {
28
+ --sc-card-header-mb: 1rem;
29
+ --sc-card-header-font-size: 1.875rem;
30
+ --sc-card-header-font-weight: var(--sc-headings-font-weight);
31
+ --sc-card-header-font-style: var(--sc-headings-font-style);
32
+ --sc-card-header-family: var(--sc-headings-font-family);
33
+ --sc-card-header-line-height: var(--sc-headings-line-height);
34
+ }
35
+
36
+ .header {
37
+ display: flex;
38
+ align-items: flex-start;
39
+ gap: .5em 1em;
40
+ margin-bottom: var(--sc-card-header-mb);
41
+ line-height: var(--sc-card-header-line-height);
42
+ font-family: var(--sc-card-header-font-family);
43
+ font-size: var(--sc-card-header-font-size);
44
+ font-style: var(--sc-card-header-font-style);
45
+ font-weight: var(--sc-card-header-font-weight);
46
+ }
47
+
48
+ .header-content {
49
+ flex-grow: 1;
50
+ }
51
+
52
+ slot[name="suffix"] {
53
+ flex-shrink: 0;
54
+ }
55
+
56
+ `
57
+ ];
58
+ __decorate([
59
+ property()
60
+ ], CardHeader.prototype, "label", void 0);
61
+ __decorate([
62
+ property()
63
+ ], CardHeader.prototype, "description", void 0);
64
+ CardHeader = __decorate([
65
+ customElement("sonic-card-header")
66
+ ], CardHeader);
67
+ export { CardHeader };
@@ -0,0 +1,5 @@
1
+ import { LitElement } from "lit";
2
+ export declare class CardMain extends LitElement {
3
+ static styles: import("lit").CSSResult[];
4
+ render(): import("lit-html").TemplateResult<1>;
5
+ }
@@ -0,0 +1,29 @@
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 { html, LitElement, css } from "lit";
8
+ import { customElement } from "lit/decorators.js";
9
+ let CardMain = class CardMain extends LitElement {
10
+ render() {
11
+ return html `
12
+ <div>
13
+ <slot></slot>
14
+ </div>
15
+ `;
16
+ }
17
+ };
18
+ CardMain.styles = [
19
+ css `
20
+ :host {
21
+
22
+ }
23
+
24
+ `
25
+ ];
26
+ CardMain = __decorate([
27
+ customElement("sonic-card-main")
28
+ ], CardMain);
29
+ export { CardMain };
@@ -0,0 +1,12 @@
1
+ import { LitElement } from "lit";
2
+ import "./card-header.ts";
3
+ import "./card-main.ts";
4
+ import "./card-footer.ts";
5
+ export declare class Card extends LitElement {
6
+ static styles: import("lit").CSSResult[];
7
+ /**
8
+ * Le type change surtout la couleur composant
9
+ */
10
+ type: "default" | "primary" | "warning" | "danger" | "success" | "info" | "neutral" | "invert";
11
+ render(): import("lit-html").TemplateResult<1>;
12
+ }
@@ -0,0 +1,90 @@
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 { html, LitElement, css } from "lit";
8
+ import { customElement, property } from "lit/decorators.js";
9
+ import "./card-header.ts";
10
+ import "./card-main.ts";
11
+ import "./card-footer.ts";
12
+ let Card = class Card extends LitElement {
13
+ constructor() {
14
+ super(...arguments);
15
+ /**
16
+ * Le type change surtout la couleur composant
17
+ */
18
+ this.type = "default";
19
+ }
20
+ render() {
21
+ return html `
22
+ <div part="card" class="card">
23
+ <slot></slot>
24
+ </div>
25
+ `;
26
+ }
27
+ };
28
+ Card.styles = [
29
+ css `
30
+ :host {
31
+ --sc-card-padding: 1.5rem;
32
+ --sc-card-color: var(--sc-base-content);
33
+ --sc-card-bg: var(--sc-base);
34
+ --sc-card-rounded: var(--sc-rounded-lg);
35
+ --sc-card-shadow: var(--sc-shadow-lg);
36
+ }
37
+
38
+ .card {
39
+ padding: var(--sc-card-padding);
40
+ background-color: var(--sc-card-bg);
41
+ border-radius: var(--sc-card-rounded);
42
+ box-shadow: var(--sc-card-shadow);
43
+ color: var(--sc-card-color);
44
+ }
45
+
46
+ /*TYPES*/
47
+ :host([type="primary"]) {
48
+ --sc-card-color: var(--sc-primary-content);
49
+ --sc-badge-bg: var(--sc-primary);
50
+ }
51
+ :host([type="warning"]) {
52
+ --sc-card-color: var(--sc-warning-content);
53
+ --sc-card-bg: var(--sc-warning);
54
+ }
55
+ :host([type="danger"]) {
56
+ --sc-card-color: var(--sc-danger-content);
57
+ --sc-card-bg: var(--sc-danger);
58
+ }
59
+ :host([type="info"]) {
60
+ --sc-card-color: var(--sc-info-content);
61
+ --sc-card-bg: var(--sc-info);
62
+ }
63
+ :host([type="success"]) {
64
+ --sc-card-color: var(--sc-success-content);
65
+ --sc-card-bg: var(--sc-success);
66
+ }
67
+
68
+ :host([type="light"]) {
69
+ --sc-card-color: var(--sc-base-content);
70
+ --sc-card-bg: var(--sc-base-100);
71
+ }
72
+
73
+ :host([type="neutral"]) {
74
+ --sc-card-color: var(--sc-base);
75
+ --sc-card-bg: var(--sc-base-content);
76
+ }
77
+
78
+ :host([type="invert"]) {
79
+ --sc-card-color: var(--sc-base);
80
+ --sc-card-bg: var(--sc-base-900);
81
+ }
82
+ `,
83
+ ];
84
+ __decorate([
85
+ property({ type: String, reflect: true })
86
+ ], Card.prototype, "type", void 0);
87
+ Card = __decorate([
88
+ customElement("sonic-card")
89
+ ], Card);
90
+ export { Card };
@@ -31,7 +31,6 @@ declare const Checkbox_base: {
31
31
  noShadowDom: string | null;
32
32
  debug: HTMLElement | null;
33
33
  defferedDebug: boolean | null;
34
- makeShadow(props: Record<string, any>, value: any): any;
35
34
  dispatchEvent(event: Event): void;
36
35
  setAttribute(name: string, value: string): void;
37
36
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
@@ -71,7 +70,6 @@ declare const Checkbox_base: {
71
70
  noShadowDom: string | null;
72
71
  debug: HTMLElement | null;
73
72
  defferedDebug: boolean | null;
74
- makeShadow(props: Record<string, any>, value: any): any;
75
73
  dispatchEvent(event: Event): void;
76
74
  setAttribute(name: string, value: string): void;
77
75
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
@@ -55,9 +55,9 @@ let Checkbox = class Checkbox extends FormCheckable(FormInput(FormElement(Subscr
55
55
  <input
56
56
  type="${this.type}"
57
57
  @change=${this.handleChange}
58
- disabled="${ifDefined(this.disabled)}"
59
- .checked="${ifDefined(this.checked)}"
60
- required=${ifDefined(this.required)}
58
+ ?disabled=${this.disabled}
59
+ ?required=${this.required}
60
+ ?checked=${this.checked}
61
61
  .name=${this.name}
62
62
  .value=${this.value}
63
63
  autofocus=${ifDefined(this.autofocus)}
@@ -27,6 +27,7 @@ export const formControl = css `
27
27
  --sc-input-suffix-bg: var(--sc-input-bg);
28
28
  --sc-input-suffix-border-color: var(--sc-input-border-color);
29
29
  --sc-label-fs: var(--sc-input-fs);
30
+ --sc-label-fw: normal;
30
31
  }
31
32
 
32
33
  .form-element {
@@ -55,6 +56,7 @@ export const formControl = css `
55
56
 
56
57
  label {
57
58
  font-size: var(--sc-label-fs);
59
+ font-weight: var(--sc-label-fw);
58
60
  line-height: 1.2;
59
61
  }
60
62
 
@@ -39,7 +39,7 @@ Fieldset.styles = [
39
39
  margin-bottom: var(--sc-fieldset-mb);
40
40
  display: block;
41
41
  border: var(--sc-fieldset-border-width) solid var(--sc-fieldset-border-color) !important;
42
- padding: 1.25rem;
42
+ padding: 1.8rem 1.25rem;
43
43
  border-radius: var(--sc-rounded-lg);
44
44
  }
45
45
 
@@ -0,0 +1,5 @@
1
+ import { LitElement } from "lit";
2
+ export declare class LegendDescription extends LitElement {
3
+ static styles: import("lit").CSSResult[];
4
+ render(): import("lit-html").TemplateResult<1>;
5
+ }
@@ -0,0 +1,35 @@
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 { html, LitElement, css } from "lit";
8
+ import { customElement } from "lit/decorators.js";
9
+ let LegendDescription = class LegendDescription extends LitElement {
10
+ render() {
11
+ return html `<slot></slot>`;
12
+ }
13
+ };
14
+ LegendDescription.styles = [
15
+ css `
16
+ :host {
17
+ color: var(--sc-neutral-500);
18
+ font-size: 1.25rem;
19
+ line-height: 1.2;
20
+ display: block;
21
+ font-weight: var(--sc-font-weight-base);
22
+ font-style: var(--sc-font-style-base);
23
+ margin-top: 0.25em;
24
+ }
25
+ `,
26
+ ];
27
+ LegendDescription = __decorate([
28
+ customElement("sonic-legend-description")
29
+ ], LegendDescription);
30
+ export { LegendDescription };
31
+ //Ajout pour la creation du cem notamment pour Storybook
32
+ try {
33
+ customElements.define("sonic-legend-description", LegendDescription);
34
+ }
35
+ catch (e) { }
@@ -1,11 +1,10 @@
1
1
  import { LitElement } from "lit";
2
- declare const Legend_base: (new (...args: any[]) => import("@supersoniks/concorde/core/mixins/Subscriber").SubscriberInterface) & typeof LitElement;
3
- export declare class Legend extends Legend_base {
2
+ import './legend-description.ts';
3
+ export declare class Legend extends LitElement {
4
4
  static styles: import("lit").CSSResult[];
5
- iconName: string;
6
- iconPrefix: string;
7
5
  description: string;
8
6
  label: string;
7
+ iconName: string;
8
+ iconPrefix: string;
9
9
  render(): import("lit-html").TemplateResult<1>;
10
10
  }
11
- export {};
@@ -6,23 +6,27 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  };
7
7
  import { html, LitElement, css } from "lit";
8
8
  import { customElement, property } from "lit/decorators.js";
9
- import Subscriber from "@supersoniks/concorde/core/mixins/Subscriber";
10
- let Legend = class Legend extends Subscriber(LitElement) {
9
+ import './legend-description.ts';
10
+ let Legend = class Legend extends LitElement {
11
11
  constructor() {
12
12
  super(...arguments);
13
- this.iconName = "check";
14
- this.iconPrefix = "";
15
13
  this.description = "";
16
14
  this.label = "";
15
+ this.iconName = "";
16
+ this.iconPrefix = "";
17
17
  }
18
18
  render() {
19
19
  return html `<legend part="legend">
20
- <div class="legend-content">
21
- ${this.label}<slot></slot>
22
- <slot name="description" class="description"> ${this.description ? html `${this.description}` : ""}</slot>
23
- </div>
24
- <slot name="suffix"></slot>
25
- </legend>`;
20
+
21
+ ${this.iconName ? html `<div class="icon"><sonic-icon name=${this.iconName} prefix=${this.iconPrefix}></sonic-icon></div>` : ""}
22
+
23
+ <div class="legend-content">
24
+ ${this.label}
25
+ ${this.description ? html `<sonic-legend-description>${this.description}</sonic-legend-description>` : ""}
26
+ <slot></slot>
27
+ </div>
28
+ <slot name="suffix"></slot>
29
+ </legend>`;
26
30
  }
27
31
  };
28
32
  Legend.styles = [
@@ -46,24 +50,16 @@ Legend.styles = [
46
50
  padding: 0;
47
51
  display: flex;
48
52
  width: 100%;
49
- align-items: center;
53
+ align-items: flex-start;
54
+ gap: 0.5em;
50
55
  }
51
56
 
52
- slot[name="suffix"]:not(:empty) {
57
+ slot[name="suffix"] {
53
58
  display: block;
54
59
  margin-left: auto;
55
60
  flex-shrink: 0;
56
61
  }
57
62
 
58
- .description {
59
- color: var(--sc-neutral-500);
60
- font-size: 1.25rem;
61
- line-height: 1.2;
62
- display: block;
63
- font-weight: normal;
64
- font-style: normal;
65
- margin-top: 0.25eem;
66
- }
67
63
  .legend-content {
68
64
  flex-grow: 1;
69
65
  }
@@ -71,16 +67,16 @@ Legend.styles = [
71
67
  ];
72
68
  __decorate([
73
69
  property({ type: String })
74
- ], Legend.prototype, "iconName", void 0);
70
+ ], Legend.prototype, "description", void 0);
75
71
  __decorate([
76
72
  property({ type: String })
77
- ], Legend.prototype, "iconPrefix", void 0);
73
+ ], Legend.prototype, "label", void 0);
78
74
  __decorate([
79
75
  property({ type: String })
80
- ], Legend.prototype, "description", void 0);
76
+ ], Legend.prototype, "iconName", void 0);
81
77
  __decorate([
82
78
  property({ type: String })
83
- ], Legend.prototype, "label", void 0);
79
+ ], Legend.prototype, "iconPrefix", void 0);
84
80
  Legend = __decorate([
85
81
  customElement("sonic-legend")
86
82
  ], Legend);
@@ -26,7 +26,6 @@ declare const Input_base: {
26
26
  noShadowDom: string | null;
27
27
  debug: HTMLElement | null;
28
28
  defferedDebug: boolean | null;
29
- makeShadow(props: Record<string, any>, value: any): any;
30
29
  dispatchEvent(event: Event): void;
31
30
  setAttribute(name: string, value: string): void;
32
31
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
@@ -59,7 +58,7 @@ export declare class Input extends Input_base {
59
58
  size: "" | "xs" | "sm" | "lg";
60
59
  list: "" | null;
61
60
  placeholder: string;
62
- readonly: boolean | null;
61
+ readonly: boolean;
63
62
  pattern: string | null;
64
63
  min: string | null;
65
64
  max: string | null;
@@ -31,7 +31,7 @@ let Input = class Input extends FormInput(FormElement(Subscriber(LitElement))) {
31
31
  this.size = "";
32
32
  this.list = null;
33
33
  this.placeholder = "";
34
- this.readonly = null;
34
+ this.readonly = false;
35
35
  this.pattern = null;
36
36
  this.min = null;
37
37
  this.max = null;
@@ -79,9 +79,9 @@ let Input = class Input extends FormInput(FormElement(Subscriber(LitElement))) {
79
79
  class="form-element input"
80
80
  type=${this.type}
81
81
  @input=${this.handleChange}
82
- disabled="${ifDefined(this.disabled)}"
82
+ ?disabled=${this.disabled}
83
+ ?readonly=${this.readonly}
83
84
  list=${ifDefined(this.list)}
84
- readonly=${ifDefined(this.readonly)}
85
85
  autofocus=${ifDefined(this.autofocus)}
86
86
  required=${ifDefined(this.required)}
87
87
  tabindex=${ifDefined(this.tabindex)}
@@ -26,7 +26,6 @@ declare const Textarea_base: {
26
26
  noShadowDom: string | null;
27
27
  debug: HTMLElement | null;
28
28
  defferedDebug: boolean | null;
29
- makeShadow(props: Record<string, any>, value: any): any;
30
29
  dispatchEvent(event: Event): void;
31
30
  setAttribute(name: string, value: string): void;
32
31
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
@@ -56,14 +56,14 @@ let Textarea = class Textarea extends FormInput(FormElement(Subscriber(LitElemen
56
56
  <div class="form-control">
57
57
  <textarea
58
58
  @input=${this.handleChange}
59
- disabled=${ifDefined(this.disabled)}
59
+ ?disabled=${this.disabled}
60
60
  autocomplete=${ifDefined(this.autocomplete)}
61
61
  autofocus=${ifDefined(this.autofocus)}
62
62
  rows=${ifDefined(this.rows)}
63
63
  cols=${ifDefined(this.cols)}
64
64
  maxlength=${ifDefined(this.maxlength)}
65
65
  minlength=${ifDefined(this.minlength)}
66
- readonly=${ifDefined(this.readonly)}
66
+ ?readonly=${this.readonly}
67
67
  spellcheck=${ifDefined(this.spellcheck)}
68
68
  wrap=${ifDefined(this.wrap)}
69
69
  class="form-element textarea"
@@ -0,0 +1,7 @@
1
+ import { LitElement } from "lit";
2
+ export declare class Progress extends LitElement {
3
+ static styles: import("lit").CSSResult[];
4
+ value: number;
5
+ max: number;
6
+ render(): import("lit-html").TemplateResult<1>;
7
+ }
@@ -0,0 +1,63 @@
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 { html, LitElement, css } from "lit";
8
+ import { customElement, property } from "lit/decorators.js";
9
+ let Progress = class Progress extends LitElement {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.max = 100;
13
+ }
14
+ render() {
15
+ return html `
16
+ <progress value=${this.value} max=${this.max}></progress>
17
+ `;
18
+ }
19
+ };
20
+ Progress.styles = [
21
+ css `
22
+
23
+ :host {
24
+ --sc-progress-bg: var(--sc-input-bg, var(--sc-base, #fff));
25
+ --sc-progress-color: var(--sc-base-content, #1f2937);
26
+ --sc-progress-height: .6rem;
27
+ display: flex;
28
+ }
29
+
30
+ progress {
31
+ position: relative;
32
+ width: 100%;
33
+ -webkit-appearance: none;
34
+ appearance: none;
35
+ overflow: hidden;
36
+ height: var(--sc-progress-height);
37
+ border-radius: var(--rounded-box,1rem);
38
+ background-color: var(--sc-progress-bg);
39
+ color: var(--sc-progress-color);
40
+ border:none;
41
+ }
42
+ progress::-moz-progress-bar {
43
+ background-color: var(--sc-progress-color);
44
+ }
45
+ progress::-webkit-progress-bar {
46
+ background-color: var(--sc-progress-bg);
47
+ }
48
+ progress::-webkit-progress-value {
49
+ background-color: var(--sc-progress-color);
50
+ }
51
+
52
+ `
53
+ ];
54
+ __decorate([
55
+ property({ type: Number })
56
+ ], Progress.prototype, "value", void 0);
57
+ __decorate([
58
+ property({ type: Number })
59
+ ], Progress.prototype, "max", void 0);
60
+ Progress = __decorate([
61
+ customElement("sonic-progress")
62
+ ], Progress);
63
+ export { Progress };
@@ -0,0 +1,5 @@
1
+ import { LitElement } from "lit";
2
+ export declare class TableCaption extends LitElement {
3
+ static styles: import("lit").CSSResult[];
4
+ render(): import("lit-html").TemplateResult<1>;
5
+ }
@@ -0,0 +1,24 @@
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 { html, LitElement, css } from "lit";
8
+ import { customElement } from "lit/decorators.js";
9
+ let TableCaption = class TableCaption extends LitElement {
10
+ render() {
11
+ return html `<slot></slot>`;
12
+ }
13
+ };
14
+ TableCaption.styles = [
15
+ css `
16
+ :host {
17
+ display: table-caption;
18
+ }
19
+ `
20
+ ];
21
+ TableCaption = __decorate([
22
+ customElement("sonic-caption")
23
+ ], TableCaption);
24
+ export { TableCaption };
@@ -0,0 +1,5 @@
1
+ import { LitElement } from "lit";
2
+ export declare class TableTbody extends LitElement {
3
+ static styles: import("lit").CSSResult[];
4
+ render(): import("lit-html").TemplateResult<1>;
5
+ }
@@ -0,0 +1,37 @@
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 { html, LitElement, css } from "lit";
8
+ import { customElement } from "lit/decorators.js";
9
+ let TableTbody = class TableTbody extends LitElement {
10
+ render() {
11
+ return html `<tbody><slot></slot></tbody>`;
12
+ }
13
+ };
14
+ TableTbody.styles = [
15
+ css `
16
+ :host {
17
+ display: contents;
18
+ }
19
+
20
+ ::slotted(sonic-tr:nth-child(odd)){
21
+ background:var(--sc-base-50);
22
+ }
23
+
24
+ ::slotted(sonic-tr:hover) {
25
+ background:var(--sc-base-100);
26
+ }
27
+
28
+ ::slotted(sonic-tr:not(:last-child)){
29
+ border-bottom:var(--sc-form-border-width) solid var(--sc-base-200) !important;
30
+ }
31
+
32
+ `
33
+ ];
34
+ TableTbody = __decorate([
35
+ customElement("sonic-tbody")
36
+ ], TableTbody);
37
+ export { TableTbody };
@@ -0,0 +1,7 @@
1
+ import { LitElement } from "lit";
2
+ export declare class TableTd extends LitElement {
3
+ static styles: import("lit").CSSResult[];
4
+ colSpan: number | null;
5
+ rowSpan: number | null;
6
+ render(): import("lit-html").TemplateResult<1>;
7
+ }