@supersoniks/concorde 1.1.23 → 1.1.25

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 (101) hide show
  1. package/README.md +0 -0
  2. package/cli.js +0 -0
  3. package/concorde-core.bundle.js +25 -31
  4. package/concorde-core.es.js +25 -31
  5. package/core/components/functional/configuration/configuration.js +2 -1
  6. package/core/components/functional/date/date.js +2 -1
  7. package/core/components/functional/example/example.js +2 -1
  8. package/core/components/functional/fetch/fetch.d.ts +0 -31
  9. package/core/components/functional/fetch/fetch.js +3 -2
  10. package/core/components/functional/if/if.d.ts +0 -3
  11. package/core/components/functional/if/if.js +3 -2
  12. package/core/components/functional/list/list.d.ts +0 -17
  13. package/core/components/functional/list/list.js +4 -3
  14. package/core/components/functional/queue/queue.d.ts +1 -8
  15. package/core/components/functional/queue/queue.js +10 -2
  16. package/core/components/functional/router/redirect.d.ts +0 -9
  17. package/core/components/functional/router/redirect.js +3 -2
  18. package/core/components/functional/router/router.d.ts +0 -14
  19. package/core/components/functional/router/router.js +3 -2
  20. package/core/components/functional/sonic-scope/sonic-scope.js +2 -1
  21. package/core/components/functional/states/states.d.ts +0 -15
  22. package/core/components/functional/states/states.js +3 -2
  23. package/core/components/functional/submit/submit.d.ts +0 -11
  24. package/core/components/functional/submit/submit.js +3 -2
  25. package/core/components/functional/subscriber/subscriber.d.ts +0 -3
  26. package/core/components/functional/subscriber/subscriber.js +3 -2
  27. package/core/components/ui/alert/alert.js +11 -11
  28. package/core/components/ui/badge/badge.js +3 -2
  29. package/core/components/ui/button/button.d.ts +4 -8
  30. package/core/components/ui/button/button.js +16 -9
  31. package/core/components/ui/card/card-footer.js +7 -1
  32. package/core/components/ui/card/card-header-descripton.js +6 -1
  33. package/core/components/ui/card/card-header.js +7 -1
  34. package/core/components/ui/card/card-main.js +7 -1
  35. package/core/components/ui/card/card.js +7 -1
  36. package/core/components/ui/divider/divider.js +2 -1
  37. package/core/components/ui/form/checkbox/checkbox.d.ts +1 -20
  38. package/core/components/ui/form/checkbox/checkbox.js +4 -3
  39. package/core/components/ui/form/fieldset/fieldset.js +5 -3
  40. package/core/components/ui/form/fieldset/legend.d.ts +3 -2
  41. package/core/components/ui/form/fieldset/legend.js +24 -15
  42. package/core/components/ui/form/form-actions/form-actions.d.ts +5 -0
  43. package/core/components/ui/form/{form-layout → form-actions}/form-actions.js +13 -5
  44. package/core/components/ui/form/form-layout/form-layout.js +3 -2
  45. package/core/components/ui/form/input/input.d.ts +3 -10
  46. package/core/components/ui/form/input/input.js +3 -2
  47. package/core/components/ui/form/radio/radio.d.ts +0 -6
  48. package/core/components/ui/form/radio/radio.js +3 -2
  49. package/core/components/ui/form/select/select.d.ts +0 -7
  50. package/core/components/ui/form/select/select.js +4 -3
  51. package/core/components/ui/form/textarea/textarea.js +7 -1
  52. package/core/components/ui/group/group.js +3 -2
  53. package/core/components/ui/icon/icon.d.ts +0 -4
  54. package/core/components/ui/icon/icon.js +9 -5
  55. package/core/components/ui/icon/icons.js +43 -17
  56. package/core/components/ui/icon/icons.json +1 -1
  57. package/core/components/ui/image/image.js +3 -2
  58. package/core/components/ui/link/link.js +6 -1
  59. package/core/components/ui/loader/loader.js +3 -2
  60. package/core/components/ui/menu/menu-item.js +5 -4
  61. package/core/components/ui/menu/menu.d.ts +2 -1
  62. package/core/components/ui/menu/menu.js +18 -13
  63. package/core/components/ui/modal/modal-actions.js +3 -2
  64. package/core/components/ui/modal/modal-close.js +4 -3
  65. package/core/components/ui/modal/modal-content.js +3 -2
  66. package/core/components/ui/modal/modal-subtitle.js +3 -2
  67. package/core/components/ui/modal/modal-title.js +3 -2
  68. package/core/components/ui/modal/modal.js +5 -4
  69. package/core/components/ui/pop/pop.js +3 -2
  70. package/core/components/ui/progress/progress.js +29 -7
  71. package/core/components/ui/table/table-caption.js +20 -2
  72. package/core/components/ui/table/table-tbody.js +8 -2
  73. package/core/components/ui/table/table-td.d.ts +3 -2
  74. package/core/components/ui/table/table-td.js +19 -11
  75. package/core/components/ui/table/table-tfoot.js +7 -1
  76. package/core/components/ui/table/table-th.d.ts +3 -1
  77. package/core/components/ui/table/table-th.js +27 -13
  78. package/core/components/ui/table/table-thead.js +8 -2
  79. package/core/components/ui/table/table-tr.js +7 -1
  80. package/core/components/ui/table/table.js +15 -2
  81. package/core/components/ui/tabs/tabs.js +2 -3
  82. package/core/components/ui/taxonomy/taxonomy.js +2 -1
  83. package/core/components/ui/theme/css/tailwind.css +0 -0
  84. package/core/components/ui/theme/css/tailwind.d.ts +0 -0
  85. package/core/components/ui/theme/theme-collection/core-variables.js +9 -8
  86. package/core/components/ui/theme/theme-collection/dark.js +0 -4
  87. package/core/components/ui/theme/theme-collection/light.js +0 -1
  88. package/core/components/ui/theme/theme.d.ts +0 -1
  89. package/core/components/ui/theme/theme.js +3 -6
  90. package/core/components/ui/toast/message-subscriber.js +2 -1
  91. package/core/components/ui/toast/toast-item.d.ts +1 -0
  92. package/core/components/ui/toast/toast-item.js +61 -31
  93. package/core/components/ui/toast/toast.js +7 -6
  94. package/core/components/ui/tooltip/tooltip.js +7 -1
  95. package/core/components/ui/ui.d.ts +1 -0
  96. package/core/components/ui/ui.js +1 -0
  97. package/core/mixins/FormCheckable.d.ts +1 -0
  98. package/core/mixins/FormCheckable.js +12 -0
  99. package/mixins.d.ts +1 -0
  100. package/package.json +3 -3
  101. package/core/components/ui/form/form-layout/form-actions.d.ts +0 -6
@@ -7,6 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  import { html, LitElement, css } from "lit";
8
8
  import { customElement, property } from "lit/decorators.js";
9
9
  import { ifDefined } from "lit/directives/if-defined.js";
10
+ const tagName = "sonic-progress";
10
11
  let Progress = class Progress extends LitElement {
11
12
  constructor() {
12
13
  super(...arguments);
@@ -17,13 +18,15 @@ let Progress = class Progress extends LitElement {
17
18
  render() {
18
19
  return html `
19
20
  <progress value=${ifDefined(this.value)} max=${this.max}></progress>
21
+ <div class="slot-container">
20
22
  <slot></slot>
23
+ <slot name="remaining"></slot>
24
+ </div>
21
25
  `;
22
26
  }
23
27
  };
24
28
  Progress.styles = [
25
29
  css `
26
-
27
30
  :host {
28
31
  --sc-progress-bg: var(--sc-input-bg, var(--sc-base-100, #f5f5f5));
29
32
  --sc-progress-color: var(--sc-base-content, #1f2937);
@@ -31,10 +34,9 @@ Progress.styles = [
31
34
  --sc-progress-fs: 1rem;
32
35
  --sc-progress-fw: 500;
33
36
  --sc-progress-rounded: var(--sc-rounded-lg);
34
- font-weight:var(--sc-progress-fw);
35
- display: flex;
36
- flex-wrap: wrap;
37
+ display: block;
37
38
  line-height: 1.2;
39
+ font-weight:var(--sc-progress-fw);
38
40
  font-size:var(--sc-progress-fs);
39
41
  color:var(--sc-progress-color);
40
42
  }
@@ -45,17 +47,21 @@ Progress.styles = [
45
47
  -webkit-appearance: none;
46
48
  appearance: none;
47
49
  overflow: hidden;
50
+ border:none;
48
51
  height: var(--sc-progress-height);
49
52
  border-radius: var(--sc-progress-rounded);
50
53
  background-color: var(--sc-progress-bg);
51
54
  color: var(--sc-progress-color);
52
- border:none;
53
55
  }
54
56
  progress::-moz-progress-bar {
55
57
  background-color: var(--sc-progress-color);
56
58
  border-radius: var(--sc-progress-rounded);
57
59
  }
58
60
 
61
+ progress:not([value])::-moz-progress-bar {
62
+ background-color: var(--sc-progress-bg);
63
+ }
64
+
59
65
  progress::-webkit-progress-bar {
60
66
  background-color: var(--sc-progress-bg);
61
67
  }
@@ -64,6 +70,7 @@ Progress.styles = [
64
70
  border-radius: var(--sc-progress-rounded);
65
71
  }
66
72
 
73
+ /* Indeterminate */
67
74
  progress:indeterminate:after {
68
75
  background-color: var(--sc-progress-color);
69
76
  content: "";
@@ -117,7 +124,18 @@ Progress.styles = [
117
124
  --sc-progress-fs: 1.5rem;
118
125
  }
119
126
 
120
-
127
+ slot[name="remaining"] {
128
+ font-weight:var(--sc-font-weight-base);
129
+ color:var(--sc-base-400);
130
+ font-size:.85em;
131
+ margin-top:.5em;
132
+ }
133
+
134
+ .slot-container {
135
+ display:flex;
136
+ justify-content: space-between;
137
+ gap:.5em;
138
+ }
121
139
  `
122
140
  ];
123
141
  __decorate([
@@ -133,6 +151,10 @@ __decorate([
133
151
  property({ type: String, reflect: true })
134
152
  ], Progress.prototype, "size", void 0);
135
153
  Progress = __decorate([
136
- customElement("sonic-progress")
154
+ customElement(tagName)
137
155
  ], Progress);
138
156
  export { Progress };
157
+ try {
158
+ customElements.define(tagName, Progress);
159
+ }
160
+ catch (e) { }
@@ -6,6 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  };
7
7
  import { html, LitElement, css } from "lit";
8
8
  import { customElement } from "lit/decorators.js";
9
+ const tagName = "sonic-caption";
9
10
  let TableCaption = class TableCaption extends LitElement {
10
11
  render() {
11
12
  return html `<slot></slot>`;
@@ -14,11 +15,28 @@ let TableCaption = class TableCaption extends LitElement {
14
15
  TableCaption.styles = [
15
16
  css `
16
17
  :host {
17
- display: table-caption;
18
+ display:table-caption;
19
+ font-size:.75rem;
20
+ color:var(--sc-base-400);
21
+ text-align:center;
22
+ }
23
+
24
+ :host:before{
25
+ content:"—";
26
+ margin-right:.25em;
27
+ }
28
+ :host:after{
29
+ content:"—";
30
+ margin-left:.25em;
18
31
  }
19
32
  `
20
33
  ];
21
34
  TableCaption = __decorate([
22
- customElement("sonic-caption")
35
+ customElement(tagName)
23
36
  ], TableCaption);
24
37
  export { TableCaption };
38
+ //Ajout pour la creation du cem notamment pour Storybook
39
+ try {
40
+ customElements.define(tagName, TableCaption);
41
+ }
42
+ catch (e) { }
@@ -6,6 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  };
7
7
  import { html, LitElement, css } from "lit";
8
8
  import { customElement } from "lit/decorators.js";
9
+ const tagName = "sonic-tbody";
9
10
  let TableTbody = class TableTbody extends LitElement {
10
11
  render() {
11
12
  return html `<tbody><slot></slot></tbody>`;
@@ -14,7 +15,7 @@ let TableTbody = class TableTbody extends LitElement {
14
15
  TableTbody.styles = [
15
16
  css `
16
17
  :host {
17
- display: contents;
18
+ display: table-row-group;
18
19
  }
19
20
 
20
21
  ::slotted(sonic-tr:nth-child(odd)){
@@ -32,6 +33,11 @@ TableTbody.styles = [
32
33
  `
33
34
  ];
34
35
  TableTbody = __decorate([
35
- customElement("sonic-tbody")
36
+ customElement(tagName)
36
37
  ], TableTbody);
37
38
  export { TableTbody };
39
+ //Ajout pour la creation du cem notamment pour Storybook
40
+ try {
41
+ customElements.define(tagName, TableTbody);
42
+ }
43
+ catch (e) { }
@@ -1,7 +1,8 @@
1
1
  import { LitElement } from "lit";
2
2
  export declare class TableTd extends LitElement {
3
3
  static styles: import("lit").CSSResult[];
4
- colSpan: number | null;
5
- rowSpan: number | null;
4
+ colSpan?: number;
5
+ rowSpan?: number;
6
+ align?: string;
6
7
  render(): import("lit-html").TemplateResult<1>;
7
8
  }
@@ -7,17 +7,18 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  import { html, LitElement, css } from "lit";
8
8
  import { customElement, property } from "lit/decorators.js";
9
9
  import { ifDefined } from "lit/directives/if-defined.js";
10
+ import { styleMap } from "lit/directives/style-map.js";
11
+ const tagName = "sonic-td";
10
12
  let TableTd = class TableTd extends LitElement {
11
- constructor() {
12
- super(...arguments);
13
- this.colSpan = null;
14
- this.rowSpan = null;
15
- }
16
13
  render() {
14
+ const styles = {
15
+ textAlign: this.align,
16
+ };
17
17
  return html `<td
18
+ part="td"
19
+ style=${styleMap(styles)}
18
20
  colspan=${ifDefined(this.colSpan)}
19
21
  rowspan=${ifDefined(this.rowSpan)}
20
- part="td"
21
22
  ><slot></slot></td>`;
22
23
  }
23
24
  };
@@ -26,11 +27,10 @@ TableTd.styles = [
26
27
  :host {
27
28
  display: contents;
28
29
  }
29
-
30
30
  td {
31
- text-transform:var(--sc-th-tt);
32
- text-align:inherit;
33
- padding:.3em .5em;
31
+ all:inherit;
32
+ display:table-cell;
33
+ padding: var(--sc-table-td-py) var(--sc-table-td-px);
34
34
  }`
35
35
  ];
36
36
  __decorate([
@@ -39,7 +39,15 @@ __decorate([
39
39
  __decorate([
40
40
  property({ type: Number })
41
41
  ], TableTd.prototype, "rowSpan", void 0);
42
+ __decorate([
43
+ property({ type: String })
44
+ ], TableTd.prototype, "align", void 0);
42
45
  TableTd = __decorate([
43
- customElement("sonic-td")
46
+ customElement(tagName)
44
47
  ], TableTd);
45
48
  export { TableTd };
49
+ //Ajout pour la creation du cem notamment pour Storybook
50
+ try {
51
+ customElements.define(tagName, TableTd);
52
+ }
53
+ catch (e) { }
@@ -6,6 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  };
7
7
  import { html, LitElement, css } from "lit";
8
8
  import { customElement } from "lit/decorators.js";
9
+ const tagName = "sonic-tfoot";
9
10
  let TableTfoot = class TableTfoot extends LitElement {
10
11
  render() {
11
12
  return html `<tfoot><slot></slot></tfoot>`;
@@ -18,6 +19,11 @@ TableTfoot.styles = [
18
19
  }`
19
20
  ];
20
21
  TableTfoot = __decorate([
21
- customElement("sonic-tfoot")
22
+ customElement(tagName)
22
23
  ], TableTfoot);
23
24
  export { TableTfoot };
25
+ //Ajout pour la creation du cem notamment pour Storybook
26
+ try {
27
+ customElements.define(tagName, TableTfoot);
28
+ }
29
+ catch (e) { }
@@ -1,6 +1,8 @@
1
1
  import { LitElement } from "lit";
2
2
  export declare class TableTh extends LitElement {
3
3
  static styles: import("lit").CSSResult[];
4
- align: "left" | "right" | "left" | "center";
4
+ colSpan?: number;
5
+ rowSpan?: number;
6
+ align?: string;
5
7
  render(): import("lit-html").TemplateResult<1>;
6
8
  }
@@ -6,38 +6,52 @@ 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 { ifDefined } from "lit/directives/if-defined.js";
9
10
  import { styleMap } from "lit/directives/style-map.js";
11
+ const tagName = "sonic-th";
10
12
  let TableTh = class TableTh extends LitElement {
11
- constructor() {
12
- super(...arguments);
13
- this.align = "left";
14
- }
15
13
  render() {
16
14
  const styles = {
17
15
  textAlign: this.align,
18
16
  };
19
- return html `<th part="th" style=${styleMap(styles)} ><slot></slot></th>
20
- `;
17
+ return html `<th part="th"
18
+ style=${styleMap(styles)}
19
+ colspan=${ifDefined(this.colSpan)}
20
+ rowspan=${ifDefined(this.rowSpan)}
21
+ ><slot></slot></th> `;
21
22
  }
22
23
  };
23
24
  TableTh.styles = [
24
25
  css `
25
26
  :host {
26
27
  display: contents;
27
- --sc-th-tt:uppercase;
28
28
  }
29
29
 
30
30
  th {
31
- text-transform:var(--sc-th-tt);
32
- text-align:inherit;
33
- padding:.3em .5em;
31
+ all:inherit;
32
+ display:table-cell;
33
+ text-transform: var(--sc-table-th-tt);
34
+ font-weight:var(--sc-table-th-fw);
35
+ font-size:var(--sc-table-th-fs);
36
+ padding: var(--sc-table-th-py) var(--sc-table-th-px);
34
37
  }
35
- `
38
+ `,
36
39
  ];
37
40
  __decorate([
38
- property({ type: String, reflect: true })
41
+ property({ type: Number })
42
+ ], TableTh.prototype, "colSpan", void 0);
43
+ __decorate([
44
+ property({ type: Number })
45
+ ], TableTh.prototype, "rowSpan", void 0);
46
+ __decorate([
47
+ property({ type: String })
39
48
  ], TableTh.prototype, "align", void 0);
40
49
  TableTh = __decorate([
41
- customElement("sonic-th")
50
+ customElement(tagName)
42
51
  ], TableTh);
43
52
  export { TableTh };
53
+ //Ajout pour la creation du cem notamment pour Storybook
54
+ try {
55
+ customElements.define(tagName, TableTh);
56
+ }
57
+ catch (e) { }
@@ -6,6 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  };
7
7
  import { html, LitElement, css } from "lit";
8
8
  import { customElement } from "lit/decorators.js";
9
+ const tagName = "sonic-thead";
9
10
  let TableThead = class TableThead extends LitElement {
10
11
  render() {
11
12
  return html `<slot></slot>`;
@@ -14,11 +15,16 @@ let TableThead = class TableThead extends LitElement {
14
15
  TableThead.styles = [
15
16
  css `
16
17
  :host {
17
- display: table-row-group;
18
+ display: table-header-group;
18
19
  }
19
20
  `
20
21
  ];
21
22
  TableThead = __decorate([
22
- customElement("sonic-thead")
23
+ customElement(tagName)
23
24
  ], TableThead);
24
25
  export { TableThead };
26
+ //Ajout pour la creation du cem notamment pour Storybook
27
+ try {
28
+ customElements.define(tagName, TableThead);
29
+ }
30
+ catch (e) { }
@@ -6,6 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  };
7
7
  import { html, LitElement, css } from "lit";
8
8
  import { customElement } from "lit/decorators.js";
9
+ const tagName = "sonic-tr";
9
10
  let TableTr = class TableTr extends LitElement {
10
11
  render() {
11
12
  return html `<slot></slot>`;
@@ -19,6 +20,11 @@ TableTr.styles = [
19
20
  `
20
21
  ];
21
22
  TableTr = __decorate([
22
- customElement("sonic-tr")
23
+ customElement(tagName)
23
24
  ], TableTr);
24
25
  export { TableTr };
26
+ //Ajout pour la creation du cem notamment pour Storybook
27
+ try {
28
+ customElements.define(tagName, TableTr);
29
+ }
30
+ catch (e) { }
@@ -13,6 +13,7 @@ import "./table-thead";
13
13
  import "./table-tbody";
14
14
  import "./table-tfoot";
15
15
  import "./table-caption";
16
+ const tagName = "sonic-table";
16
17
  let Table = class Table extends LitElement {
17
18
  constructor() {
18
19
  super(...arguments);
@@ -37,7 +38,14 @@ Table.styles = [
37
38
  --sc-table-fw: var(--sc-font-weight-base);
38
39
  --sc-table-fst: var(--sc-font-style-base);
39
40
  --sc-table-fs: 1rem;
41
+ --sc-table-th-fs: .85em;
40
42
  --sc-table-th-fw: bold;
43
+ --sc-table-th-tt: uppercase;
44
+ --sc-table-th-px: var(--sc-table-td-px);
45
+ --sc-table-th-py: var(--sc-table-td-py);
46
+ --sc-table-td-px: .5rem;
47
+ --sc-table-td-py: .3rem;
48
+ display:block;
41
49
  }
42
50
 
43
51
  .table-container {
@@ -51,7 +59,7 @@ Table.styles = [
51
59
  display: table;
52
60
  }
53
61
 
54
- /*SIZE*/
62
+ /*SIZES*/
55
63
  :host([size="2xs"]) {
56
64
  --sc-table-fs: 0.6rem;
57
65
  }
@@ -83,6 +91,11 @@ __decorate([
83
91
  property({ type: Boolean, reflect: true })
84
92
  ], Table.prototype, "hover", void 0);
85
93
  Table = __decorate([
86
- customElement("sonic-table")
94
+ customElement(tagName)
87
95
  ], Table);
88
96
  export { Table };
97
+ //Ajout pour la creation du cem notamment pour Storybook
98
+ try {
99
+ customElements.define(tagName, Table);
100
+ }
101
+ catch (e) { }
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  import { html, LitElement, css } from "lit";
8
8
  import { customElement, property, query } from "lit/decorators.js";
9
9
  import { ResizeController } from "@lit-labs/observers/resize_controller.js";
10
- import { tailwind } from "../theme/theme";
10
+ // import { tailwind } from "../theme/theme";
11
11
  let Tabs = class Tabs extends LitElement {
12
12
  constructor() {
13
13
  super(...arguments);
@@ -64,7 +64,7 @@ let Tabs = class Tabs extends LitElement {
64
64
  ><slot></slot>
65
65
  <sonic-pop class="flex" >
66
66
  <sonic-menu-item shape="square">
67
- <sonic-icon prefix="iconoir" class="my-auto" size="xl" name="more-vert"></sonic-icon>
67
+ <sonic-icon class="my-auto" size="xl" name="more-vert"></sonic-icon>
68
68
  </sonic-menu-item>
69
69
  <sonic-menu slot="content"></sonic-menu>
70
70
  <sonic-pop>
@@ -72,7 +72,6 @@ let Tabs = class Tabs extends LitElement {
72
72
  }
73
73
  };
74
74
  Tabs.styles = [
75
- tailwind,
76
75
  css `
77
76
  :host {
78
77
  display: block;
@@ -10,6 +10,7 @@ import { repeat } from "lit/directives/repeat.js";
10
10
  import "../icon/icon";
11
11
  import "../badge/badge";
12
12
  import { unsafeHTML } from "lit/directives/unsafe-html.js";
13
+ const tagName = "sonic-taxonomy";
13
14
  /**
14
15
  * Le composant taxonomy crée un badge (*sonic-badge*) contenant une liste de termes préfixés par une icone (*sonic-icon*) optionelle séparées par une chaine html séparatrice (*separator*)
15
16
  */
@@ -103,7 +104,7 @@ __decorate([
103
104
  property({ type: String, reflect: true })
104
105
  ], Taxonomy.prototype, "size", void 0);
105
106
  Taxonomy = __decorate([
106
- customElement("sonic-taxonomy")
107
+ customElement(tagName)
107
108
  ], Taxonomy);
108
109
  export { Taxonomy };
109
110
  //Ajout pour la creation du cem notamment pour Storybook
File without changes
File without changes
@@ -1,8 +1,6 @@
1
1
  import { css } from "lit";
2
2
  export const coreVariables = css `
3
3
  :host {
4
- /* --sc-rfs: 16px; */
5
-
6
4
  /* polices*/
7
5
  --sc-font-family-base: "Inter var", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto,
8
6
  "Helvetica Neue", Arial, sans-serif;
@@ -10,7 +8,7 @@ export const coreVariables = css `
10
8
  --sc-font-style-base: normal;
11
9
 
12
10
  --sc-headings-font-family: var(--sc-font-family-base);
13
- --sc-headings-font-style: var(--sc-font-family-base);
11
+ --sc-headings-font-style: var(--sc-font-style-base);
14
12
  --sc-headings-line-height: 1.1;
15
13
  --sc-headings-font-weight: 700;
16
14
  --sc-headings-text-transform: none;
@@ -18,18 +16,17 @@ export const coreVariables = css `
18
16
  /* Button*/
19
17
  --sc-btn-font-weight: var(--sc-font-weight-base);
20
18
  --sc-btn-font-family: var(--sc-font-family-base);
21
- --sc-btn-font-style: var(--sc-font-weight-base);
19
+ --sc-btn-font-style: var(--sc-font-style-base);
22
20
 
23
21
  /* ROUNDED*/
24
- --sc-btn-rounded: 0.38em;
25
- --sc-input-rounded: 0.38em;
26
-
27
22
  --sc-rounded-sm: calc(var(--sc-rounded) * 0.5);
28
23
  --sc-rounded: 0.35rem;
29
24
  --sc-rounded-md: calc(var(--sc-rounded) * 1.8);
30
25
  --sc-rounded-lg: calc(var(--sc-rounded) * 3.5);
31
26
  --sc-rounded-xl: calc(var(--sc-rounded) * 7);
32
27
 
28
+ --sc-btn-rounded: calc(var(--sc-rounded) * 1.2);
29
+
33
30
  /* Placeholder */
34
31
  --sc-placeholder-bg: rgba(17, 24, 39, 0.05);
35
32
 
@@ -41,7 +38,11 @@ export const coreVariables = css `
41
38
  --sc-shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
42
39
 
43
40
  /* formulaires*/
44
- --sc-form-border-width: 0.1rem;
41
+ --sc-border-width: max(1px, 0.1rem);
42
+ --sc-form-border-width: var(--sc-border-width);
43
+ --sc-input-bg: var(--sc-base-100);
44
+ --sc-input-border-color: var(--sc-input-bg);
45
+ --sc-input-rounded: calc(var(--sc-rounded) * 1.2);
45
46
 
46
47
  /*Couleurs -- textes sur images*/
47
48
  --sc-contrast-content: #fff;
@@ -24,10 +24,6 @@ const darkCss = css `
24
24
  --sc-base-800: var(--sc-dark-base-800, #d9dce0);
25
25
  --sc-base-900: var(--sc-dark-base-900, #e5e7eb);
26
26
  --sc-base-content: var(--sc-dark-base-content, #e5e7eb);
27
-
28
- --sc-input-border-color: var(--sc-dark-input-border-color, var(--sc-base-100));
29
- --sc-input-bg: var(--sc-dark-input-bg, var(--sc-base-100));
30
- --sc-input-color: var(--sc-dark-input-color, var(--sc-base-content));
31
27
  `;
32
28
  export const dark = css `
33
29
  :host([theme="dark"]) {
@@ -29,7 +29,6 @@ export const light = css `
29
29
  --sc-base-content: var(--sc-base-700);
30
30
 
31
31
  /*formulaires*/
32
- --sc-input-border-color: var(--sc-base-100);
33
32
  --sc-input-bg: var(--sc-base-100);
34
33
  --sc-input-color: var(--sc-base-content);
35
34
  }
@@ -1,5 +1,4 @@
1
1
  import { LitElement } from "lit";
2
- export declare const tailwind: import("lit").CSSResult;
3
2
  export declare class Theme extends LitElement {
4
3
  static styles: import("lit").CSSResult[];
5
4
  connectedCallback(): void;
@@ -5,15 +5,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
7
  var Theme_1;
8
- import { html, LitElement, css, unsafeCSS } from "lit";
8
+ import { html, LitElement, css } from "lit";
9
9
  import { customElement, property } from "lit/decorators.js";
10
10
  import { coreVariables } from "./theme-collection/core-variables";
11
11
  import { light } from "./theme-collection/light";
12
12
  import { dark } from "./theme-collection/dark";
13
- import tailwindImport from "./css/tailwind.css?inline";
14
- export const tailwind = css `
15
- ${unsafeCSS(tailwindImport)}
16
- `;
13
+ const tagName = "sonic-theme";
17
14
  let Theme = Theme_1 = class Theme extends LitElement {
18
15
  constructor() {
19
16
  super(...arguments);
@@ -100,6 +97,6 @@ __decorate([
100
97
  property({ type: String, reflect: true })
101
98
  ], Theme.prototype, "theme", void 0);
102
99
  Theme = Theme_1 = __decorate([
103
- customElement("sonic-theme")
100
+ customElement(tagName)
104
101
  ], Theme);
105
102
  export { Theme };
@@ -8,6 +8,7 @@ import { LitElement, nothing } from "lit";
8
8
  import { customElement, property } from "lit/decorators.js";
9
9
  import Subscriber from "@supersoniks/concorde/core/mixins/Subscriber";
10
10
  import { SonicToast } from "./toast";
11
+ const tagName = "sonic-toast-message-subscriber";
11
12
  //Superbe mix de multples versions d'api.
12
13
  let MessageSubscriber = class MessageSubscriber extends Subscriber(LitElement) {
13
14
  constructor() {
@@ -80,6 +81,6 @@ __decorate([
80
81
  property()
81
82
  ], MessageSubscriber.prototype, "data", null);
82
83
  MessageSubscriber = __decorate([
83
- customElement("sonic-toast-message-subscriber")
84
+ customElement(tagName)
84
85
  ], MessageSubscriber);
85
86
  export { MessageSubscriber };
@@ -8,6 +8,7 @@ export declare class SonicToastItem extends LitElement {
8
8
  status: ToastStatus;
9
9
  ghost: boolean;
10
10
  preserve: boolean;
11
+ maxHeight: string;
11
12
  visible: boolean;
12
13
  render(): import("lit-html").TemplateResult<1> | typeof nothing;
13
14
  hide(): void;