@supersoniks/concorde 1.1.42 → 1.1.44

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 (189) hide show
  1. package/components.js +2 -3
  2. package/concorde-core.bundle.js +37 -35
  3. package/concorde-core.es.js +5283 -4453
  4. package/core/_types/types.d.ts +31 -0
  5. package/core/_types/types.js +2 -0
  6. package/core/components/functional/date/date.d.ts +13 -5
  7. package/core/components/functional/date/date.js +57 -38
  8. package/core/components/functional/example/example.d.ts +1 -1
  9. package/core/components/functional/example/example.js +1 -1
  10. package/core/components/functional/fetch/fetch.d.ts +45 -6
  11. package/core/components/functional/fetch/fetch.js +2 -6
  12. package/core/components/functional/functional.d.ts +2 -0
  13. package/core/components/functional/functional.js +2 -0
  14. package/core/components/functional/if/if.d.ts +3 -0
  15. package/core/components/functional/if/if.js +6 -12
  16. package/core/components/functional/if/if.test.d.ts +1 -0
  17. package/core/components/functional/if/if.test.js +44 -0
  18. package/core/components/functional/list/list.d.ts +44 -12
  19. package/core/components/functional/list/list.js +54 -49
  20. package/core/components/functional/mix/mix.d.ts +22 -0
  21. package/core/components/functional/mix/mix.js +102 -0
  22. package/core/components/functional/queue/queue.d.ts +27 -5
  23. package/core/components/functional/queue/queue.js +88 -26
  24. package/core/components/functional/router/redirect.d.ts +11 -2
  25. package/core/components/functional/router/redirect.js +7 -12
  26. package/core/components/functional/router/router.d.ts +15 -1
  27. package/core/components/functional/router/router.js +11 -16
  28. package/core/components/functional/sdui/SDUIDescriptorTransformer.d.ts +1 -2
  29. package/core/components/functional/sdui/SDUIDescriptorTransformer.js +56 -45
  30. package/core/components/functional/sdui/default-library.json +108 -0
  31. package/core/components/functional/sdui/sdui-utils.d.ts +5 -0
  32. package/core/components/functional/sdui/sdui-utils.js +63 -0
  33. package/core/components/functional/sdui/sdui.d.ts +21 -13
  34. package/core/components/functional/sdui/sdui.js +70 -44
  35. package/core/components/functional/sdui/types.d.ts +10 -8
  36. package/core/components/functional/states/states.d.ts +20 -4
  37. package/core/components/functional/states/states.js +15 -20
  38. package/core/components/functional/submit/submit.d.ts +16 -1
  39. package/core/components/functional/submit/submit.js +95 -25
  40. package/core/components/functional/subscriber/subscriber.d.ts +4 -1
  41. package/core/components/functional/subscriber/subscriber.js +1 -6
  42. package/core/components/functional/value/value.d.ts +7 -0
  43. package/core/components/functional/value/value.js +26 -0
  44. package/core/components/ui/_css/scroll.js +6 -7
  45. package/core/components/ui/_css/size.d.ts +1 -0
  46. package/core/components/ui/_css/size.js +3 -1
  47. package/core/components/ui/alert/alert.d.ts +2 -2
  48. package/core/components/ui/alert/alert.js +11 -16
  49. package/core/components/ui/badge/badge.d.ts +3 -1
  50. package/core/components/ui/badge/badge.js +36 -22
  51. package/core/components/ui/button/button.d.ts +28 -23
  52. package/core/components/ui/button/button.js +60 -43
  53. package/core/components/ui/captcha/captcha.d.ts +14 -2
  54. package/core/components/ui/captcha/captcha.js +18 -13
  55. package/core/components/ui/card/card-footer.js +1 -8
  56. package/core/components/ui/card/card-header-descripton.js +3 -9
  57. package/core/components/ui/card/card-header.js +6 -7
  58. package/core/components/ui/card/card-main.js +0 -5
  59. package/core/components/ui/card/card.d.ts +1 -1
  60. package/core/components/ui/card/card.js +30 -12
  61. package/core/components/ui/divider/divider.d.ts +2 -0
  62. package/core/components/ui/divider/divider.js +43 -16
  63. package/core/components/ui/form/checkbox/checkbox.d.ts +86 -25
  64. package/core/components/ui/form/checkbox/checkbox.js +53 -28
  65. package/core/components/ui/form/css/form-control.d.ts +2 -0
  66. package/core/components/ui/form/css/form-control.js +145 -67
  67. package/core/components/ui/form/fieldset/fieldset.d.ts +8 -1
  68. package/core/components/ui/form/fieldset/fieldset.js +45 -8
  69. package/core/components/ui/form/fieldset/legend-description.js +0 -5
  70. package/core/components/ui/form/fieldset/legend.js +3 -6
  71. package/core/components/ui/form/form-actions/form-actions.d.ts +2 -0
  72. package/core/components/ui/form/form-actions/form-actions.js +26 -11
  73. package/core/components/ui/form/form-layout/form-layout.d.ts +5 -2
  74. package/core/components/ui/form/form-layout/form-layout.js +31 -9
  75. package/core/components/ui/form/input/input.d.ts +26 -24
  76. package/core/components/ui/form/input/input.js +87 -52
  77. package/core/components/ui/form/input/password-helper.d.ts +1 -1
  78. package/core/components/ui/form/input/password-helper.js +4 -3
  79. package/core/components/ui/form/input/same-value-helper.d.ts +1 -1
  80. package/core/components/ui/form/input/same-value-helper.js +3 -2
  81. package/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts +2 -3
  82. package/core/components/ui/form/input-autocomplete/input-autocomplete.js +2 -6
  83. package/core/components/ui/form/radio/radio.d.ts +6 -0
  84. package/core/components/ui/form/radio/radio.js +7 -12
  85. package/core/components/ui/form/select/select.d.ts +25 -8
  86. package/core/components/ui/form/select/select.js +72 -41
  87. package/core/components/ui/form/textarea/textarea.d.ts +21 -19
  88. package/core/components/ui/form/textarea/textarea.js +29 -36
  89. package/core/components/ui/group/group.d.ts +11 -1
  90. package/core/components/ui/group/group.js +79 -17
  91. package/core/components/ui/icon/icon.d.ts +10 -3
  92. package/core/components/ui/icon/icon.js +16 -15
  93. package/core/components/ui/icon/icons.js +25 -20
  94. package/core/components/ui/icon/icons.json +1 -1
  95. package/core/components/ui/image/image.js +0 -5
  96. package/core/components/ui/link/link.d.ts +1 -1
  97. package/core/components/ui/link/link.js +2 -6
  98. package/core/components/ui/loader/loader.d.ts +1 -1
  99. package/core/components/ui/loader/loader.js +3 -9
  100. package/core/components/ui/menu/menu-item.js +4 -9
  101. package/core/components/ui/menu/menu.d.ts +9 -1
  102. package/core/components/ui/menu/menu.js +182 -27
  103. package/core/components/ui/modal/modal-actions.js +1 -6
  104. package/core/components/ui/modal/modal-close.d.ts +1 -0
  105. package/core/components/ui/modal/modal-close.js +14 -10
  106. package/core/components/ui/modal/modal-content.js +0 -5
  107. package/core/components/ui/modal/modal-subtitle.js +2 -6
  108. package/core/components/ui/modal/modal-title.js +0 -5
  109. package/core/components/ui/modal/modal.d.ts +7 -7
  110. package/core/components/ui/modal/modal.js +37 -37
  111. package/core/components/ui/pop/pop.d.ts +6 -5
  112. package/core/components/ui/pop/pop.js +57 -57
  113. package/core/components/ui/progress/progress.js +34 -32
  114. package/core/components/ui/table/table-caption.js +5 -10
  115. package/core/components/ui/table/table-tbody.js +10 -14
  116. package/core/components/ui/table/table-td.d.ts +2 -0
  117. package/core/components/ui/table/table-td.js +8 -5
  118. package/core/components/ui/table/table-tfoot.js +5 -7
  119. package/core/components/ui/table/table-th.d.ts +2 -0
  120. package/core/components/ui/table/table-th.js +12 -9
  121. package/core/components/ui/table/table-thead.js +1 -6
  122. package/core/components/ui/table/table-tr.js +4 -6
  123. package/core/components/ui/table/table.d.ts +0 -3
  124. package/core/components/ui/table/table.js +14 -31
  125. package/core/components/ui/theme/theme-collection/core-variables.js +13 -11
  126. package/core/components/ui/theme/theme-collection/dark.js +1 -1
  127. package/core/components/ui/theme/theme.d.ts +1 -6
  128. package/core/components/ui/theme/theme.js +19 -46
  129. package/core/components/ui/toast/message-subscriber.d.ts +16 -7
  130. package/core/components/ui/toast/message-subscriber.js +10 -8
  131. package/core/components/ui/toast/toast-item.js +1 -1
  132. package/core/components/ui/toast/toast.d.ts +3 -2
  133. package/core/components/ui/toast/toast.js +33 -19
  134. package/core/components/ui/toast/types.d.ts +3 -2
  135. package/core/components/ui/tooltip/tooltip.d.ts +1 -0
  136. package/core/components/ui/tooltip/tooltip.js +36 -15
  137. package/core/components/ui/ui.d.ts +1 -1
  138. package/core/components/ui/ui.js +1 -4
  139. package/core/core.js +5 -6
  140. package/core/mixins/Fetcher.d.ts +20 -13
  141. package/core/mixins/Fetcher.js +44 -19
  142. package/core/mixins/FormCheckable.d.ts +25 -13
  143. package/core/mixins/FormCheckable.js +180 -23
  144. package/core/mixins/FormElement.d.ts +17 -9
  145. package/core/mixins/FormElement.js +56 -39
  146. package/core/mixins/FormInput.d.ts +22 -12
  147. package/core/mixins/FormInput.js +4 -3
  148. package/core/mixins/Subscriber.d.ts +12 -8
  149. package/core/mixins/Subscriber.js +51 -48
  150. package/core/mixins/TemplatesContainer.d.ts +2 -1
  151. package/core/mixins/TemplatesContainer.js +2 -2
  152. package/core/utils/Arrays.d.ts +15 -15
  153. package/core/utils/Arrays.js +12 -9
  154. package/core/utils/DataBindObserver.d.ts +18 -11
  155. package/core/utils/DataBindObserver.js +47 -54
  156. package/core/utils/Electron.d.ts +5 -1
  157. package/core/utils/Electron.js +4 -2
  158. package/core/utils/HTML.d.ts +9 -2
  159. package/core/utils/HTML.js +24 -5
  160. package/core/utils/LocationHandler.d.ts +6 -5
  161. package/core/utils/LocationHandler.js +27 -16
  162. package/core/utils/Objects.d.ts +7 -4
  163. package/core/utils/Objects.js +37 -9
  164. package/core/utils/{PublisherProxy.d.mts → PublisherProxy.d.ts} +49 -34
  165. package/core/utils/{PublisherProxy.mjs → PublisherProxy.js} +107 -77
  166. package/core/utils/Utils.d.ts +3 -0
  167. package/core/utils/Utils.js +18 -0
  168. package/core/utils/api.d.ts +26 -9
  169. package/core/utils/api.js +62 -45
  170. package/img/concorde-logo.svg +1 -0
  171. package/img/concorde.png +0 -0
  172. package/img/concorde_def.png +0 -0
  173. package/mixins.d.ts +53 -29
  174. package/mixins.js +3 -4
  175. package/package.json +51 -12
  176. package/svg/regular/plane.svg +1 -0
  177. package/svg/solid/plane.svg +1 -0
  178. package/test-utils/TestUtils.d.ts +4 -0
  179. package/test-utils/TestUtils.js +12 -0
  180. package/utils.d.ts +3 -1
  181. package/utils.js +7 -5
  182. package/core/components/functional/configuration/configuration.d.ts +0 -5
  183. package/core/components/functional/configuration/configuration.js +0 -22
  184. package/core/components/ui/tabs/tab.d.ts +0 -6
  185. package/core/components/ui/tabs/tab.js +0 -46
  186. package/core/components/ui/tabs/tabs.d.ts +0 -15
  187. package/core/components/ui/tabs/tabs.js +0 -129
  188. package/core/components/ui/taxonomy/taxonomy.d.ts +0 -41
  189. package/core/components/ui/taxonomy/taxonomy.js +0 -115
@@ -21,8 +21,8 @@ let Progress = class Progress extends LitElement {
21
21
  return html `
22
22
  <progress value=${ifDefined(this.value)} max=${this.max}></progress>
23
23
  <div class="slot-container">
24
- <slot></slot>
25
- <slot name="remaining"></slot>
24
+ <slot></slot>
25
+ <slot name="remaining"></slot>
26
26
  </div>
27
27
  `;
28
28
  }
@@ -33,15 +33,14 @@ Progress.styles = [
33
33
  :host {
34
34
  --sc-progress-bg: var(--sc-input-bg, var(--sc-base-100, #f5f5f5));
35
35
  --sc-progress-color: var(--sc-base-content, #1f2937);
36
- --sc-progress-height: .6em;
36
+ --sc-progress-height: 0.6em;
37
37
  --sc-progress-fs: var(--sc-fs, 1rem);
38
38
  --sc-progress-fw: 500;
39
39
  --sc-progress-rounded: var(--sc-rounded-lg);
40
40
  display: block;
41
41
  line-height: 1.2;
42
- font-weight:var(--sc-progress-fw);
43
- font-size:var(--sc-progress-fs);
44
- color:var(--sc-progress-color);
42
+ font-weight: var(--sc-progress-fw);
43
+ font-size: var(--sc-progress-fs);
45
44
  }
46
45
 
47
46
  progress {
@@ -50,7 +49,7 @@ Progress.styles = [
50
49
  -webkit-appearance: none;
51
50
  appearance: none;
52
51
  overflow: hidden;
53
- border:none;
52
+ border: none;
54
53
  height: var(--sc-progress-height);
55
54
  border-radius: var(--sc-progress-rounded);
56
55
  background-color: var(--sc-progress-bg);
@@ -61,7 +60,7 @@ Progress.styles = [
61
60
  border-radius: var(--sc-progress-rounded);
62
61
  }
63
62
 
64
- progress:not([value])::-moz-progress-bar {
63
+ progress:not([value])::-moz-progress-bar {
65
64
  background-color: var(--sc-progress-bg);
66
65
  }
67
66
 
@@ -75,15 +74,15 @@ Progress.styles = [
75
74
 
76
75
  /* Indeterminate */
77
76
  progress:indeterminate:after {
78
- background-color: var(--sc-progress-color);
79
- content: "";
80
- position: absolute;
81
- top: 0;
82
- bottom: 0;
83
- left: -40%;
84
- width: 33.333333%;
85
- border-radius: var(--sc-progress-rounded);
86
- animation: progress-loading 3s infinite ease-in-out;
77
+ background-color: var(--sc-progress-color);
78
+ content: "";
79
+ position: absolute;
80
+ top: 0;
81
+ bottom: 0;
82
+ left: -40%;
83
+ width: 33.333333%;
84
+ border-radius: var(--sc-progress-rounded);
85
+ animation: progress-loading 3s infinite ease-in-out;
87
86
  }
88
87
 
89
88
  @keyframes progress-loading {
@@ -91,7 +90,7 @@ Progress.styles = [
91
90
  left: 107%;
92
91
  }
93
92
  }
94
-
93
+
95
94
  /* COLOR TYPES */
96
95
  :host([type="warning"]) {
97
96
  --sc-progress-color: var(--sc-warning);
@@ -107,26 +106,33 @@ Progress.styles = [
107
106
  }
108
107
 
109
108
  :host([invert]) {
110
- --sc-progress-bg: var(--sc-base-700);
109
+ --sc-progress-bg: rgba(200, 200, 200, 0.1);
111
110
  }
111
+
112
112
  :host([type="default"][invert]) {
113
113
  --sc-progress-color: var(--sc-base);
114
114
  }
115
115
 
116
116
  slot[name="remaining"] {
117
- font-weight:var(--sc-font-weight-base);
118
- color:var(--sc-base-400);
119
- font-size:.85em;
120
- margin-top:.5em;
117
+ font-weight: var(--sc-font-weight-base);
118
+ font-size: 0.85em;
119
+ margin-top: 0.5em;
120
+ }
121
+ slot[name="remaining"]::slotted(*) {
122
+ margin-left: auto;
121
123
  }
122
-
124
+
125
+ slot:not([name]) {
126
+ color: var(--sc-progress-color);
127
+ }
128
+
123
129
  .slot-container {
124
- display:flex;
130
+ display: flex;
125
131
  justify-content: space-between;
126
- gap:.5em;
127
- margin-top:.15em;
132
+ gap: 0.5em;
133
+ margin-top: 0.15em;
128
134
  }
129
- `
135
+ `,
130
136
  ];
131
137
  __decorate([
132
138
  property({ type: Number })
@@ -147,7 +153,3 @@ Progress = __decorate([
147
153
  customElement(tagName)
148
154
  ], Progress);
149
155
  export { Progress };
150
- try {
151
- customElements.define(tagName, Progress);
152
- }
153
- catch (e) { }
@@ -15,19 +15,14 @@ let TableCaption = class TableCaption extends LitElement {
15
15
  TableCaption.styles = [
16
16
  css `
17
17
  :host {
18
- display:table-caption;
19
- font-size:.75rem;
20
- color:var(--sc-table-caption-color);
21
- padding: var(--sc-table-td-py) var(--sc-table-td-px) calc(2 * var(--sc-table-td-py) );
18
+ display: table-caption;
19
+ font-size: 0.75rem;
20
+ color: var(--sc-table-caption-color);
21
+ padding: var(--sc-table-td-py) var(--sc-table-td-px) calc(2 * var(--sc-table-td-py));
22
22
  }
23
- `
23
+ `,
24
24
  ];
25
25
  TableCaption = __decorate([
26
26
  customElement(tagName)
27
27
  ], TableCaption);
28
28
  export { TableCaption };
29
- //Ajout pour la creation du cem notamment pour Storybook
30
- try {
31
- customElements.define(tagName, TableCaption);
32
- }
33
- catch (e) { }
@@ -9,7 +9,9 @@ import { customElement } from "lit/decorators.js";
9
9
  const tagName = "sonic-tbody";
10
10
  let TableTbody = class TableTbody extends LitElement {
11
11
  render() {
12
- return html `<tbody><slot></slot></tbody>`;
12
+ return html `<tbody part="tbody">
13
+ <slot></slot>
14
+ </tbody>`;
13
15
  }
14
16
  };
15
17
  TableTbody.styles = [
@@ -18,26 +20,20 @@ TableTbody.styles = [
18
20
  display: table-row-group;
19
21
  }
20
22
 
21
- ::slotted(sonic-tr:nth-child(odd)){
22
- background:var(--sc-base-50);
23
+ ::slotted(sonic-tr:nth-child(odd)) {
24
+ background: var(--sc-table-accent-bg);
23
25
  }
24
-
26
+
25
27
  ::slotted(sonic-tr:hover) {
26
- background:var(--sc-base-100);
28
+ background: var(--sc-table-hover-bg);
27
29
  }
28
30
 
29
- ::slotted(sonic-tr:not(:last-child)){
30
- border-bottom:var(--sc-form-border-width) solid var(--sc-base-200) !important;
31
+ ::slotted(sonic-tr:not(:last-child)) {
32
+ border-bottom: var(--sc-form-border-width) solid var(--sc-base-200) !important;
31
33
  }
32
-
33
- `
34
+ `,
34
35
  ];
35
36
  TableTbody = __decorate([
36
37
  customElement(tagName)
37
38
  ], TableTbody);
38
39
  export { TableTbody };
39
- //Ajout pour la creation du cem notamment pour Storybook
40
- try {
41
- customElements.define(tagName, TableTbody);
42
- }
43
- catch (e) { }
@@ -6,5 +6,7 @@ export declare class TableTd extends LitElement {
6
6
  align?: string;
7
7
  vAlign?: string;
8
8
  minWidth?: string;
9
+ maxWidth?: string;
10
+ width?: string;
9
11
  render(): import("lit-html").TemplateResult<1>;
10
12
  }
@@ -16,6 +16,8 @@ let TableTd = class TableTd extends LitElement {
16
16
  textAlign: this.align,
17
17
  verticalAlign: this.vAlign,
18
18
  minWidth: this.minWidth,
19
+ maxWidth: this.maxWidth,
20
+ width: this.width,
19
21
  };
20
22
  return html `<td
21
23
  part="td"
@@ -55,12 +57,13 @@ __decorate([
55
57
  __decorate([
56
58
  property({ type: String })
57
59
  ], TableTd.prototype, "minWidth", void 0);
60
+ __decorate([
61
+ property({ type: String })
62
+ ], TableTd.prototype, "maxWidth", void 0);
63
+ __decorate([
64
+ property({ type: String })
65
+ ], TableTd.prototype, "width", void 0);
58
66
  TableTd = __decorate([
59
67
  customElement(tagName)
60
68
  ], TableTd);
61
69
  export { TableTd };
62
- //Ajout pour la creation du cem notamment pour Storybook
63
- try {
64
- customElements.define(tagName, TableTd);
65
- }
66
- catch (e) { }
@@ -9,21 +9,19 @@ import { customElement } from "lit/decorators.js";
9
9
  const tagName = "sonic-tfoot";
10
10
  let TableTfoot = class TableTfoot extends LitElement {
11
11
  render() {
12
- return html `<tfoot><slot></slot></tfoot>`;
12
+ return html `<tfoot>
13
+ <slot></slot>
14
+ </tfoot>`;
13
15
  }
14
16
  };
15
17
  TableTfoot.styles = [
16
18
  css `
17
19
  :host {
18
20
  display: contents;
19
- }`
21
+ }
22
+ `,
20
23
  ];
21
24
  TableTfoot = __decorate([
22
25
  customElement(tagName)
23
26
  ], TableTfoot);
24
27
  export { TableTfoot };
25
- //Ajout pour la creation du cem notamment pour Storybook
26
- try {
27
- customElements.define(tagName, TableTfoot);
28
- }
29
- catch (e) { }
@@ -5,5 +5,7 @@ export declare class TableTh extends LitElement {
5
5
  rowSpan?: number;
6
6
  align?: string;
7
7
  minWidth?: string;
8
+ maxWidth?: string;
9
+ width?: string;
8
10
  render(): import("lit-html").TemplateResult<1>;
9
11
  }
@@ -15,6 +15,8 @@ let TableTh = class TableTh extends LitElement {
15
15
  const styles = {
16
16
  textAlign: this.align,
17
17
  minWidth: this.minWidth,
18
+ maxWidth: this.maxWidth,
19
+ width: this.width,
18
20
  };
19
21
  return html `<th
20
22
  part="th"
@@ -31,10 +33,10 @@ TableTh.styles = [
31
33
  css `
32
34
  :host {
33
35
  display: contents;
34
- background:var(--sc-table-bg);
35
- position:sticky;
36
- top:0;
37
- z-index:20;
36
+ background: var(--sc-table-bg);
37
+ position: sticky;
38
+ top: 0;
39
+ z-index: 20;
38
40
  }
39
41
 
40
42
  th {
@@ -60,12 +62,13 @@ __decorate([
60
62
  __decorate([
61
63
  property({ type: String })
62
64
  ], TableTh.prototype, "minWidth", void 0);
65
+ __decorate([
66
+ property({ type: String })
67
+ ], TableTh.prototype, "maxWidth", void 0);
68
+ __decorate([
69
+ property({ type: String })
70
+ ], TableTh.prototype, "width", void 0);
63
71
  TableTh = __decorate([
64
72
  customElement(tagName)
65
73
  ], TableTh);
66
74
  export { TableTh };
67
- //Ajout pour la creation du cem notamment pour Storybook
68
- try {
69
- customElements.define(tagName, TableTh);
70
- }
71
- catch (e) { }
@@ -17,14 +17,9 @@ TableThead.styles = [
17
17
  :host {
18
18
  display: table-header-group;
19
19
  }
20
- `
20
+ `,
21
21
  ];
22
22
  TableThead = __decorate([
23
23
  customElement(tagName)
24
24
  ], TableThead);
25
25
  export { TableThead };
26
- //Ajout pour la creation du cem notamment pour Storybook
27
- try {
28
- customElements.define(tagName, TableThead);
29
- }
30
- catch (e) { }
@@ -20,14 +20,12 @@ TableTr.styles = [
20
20
  display: table-row;
21
21
  }
22
22
 
23
- `
23
+ :host([odd]) {
24
+ background: var(--sc-table-accent-bg);
25
+ }
26
+ `,
24
27
  ];
25
28
  TableTr = __decorate([
26
29
  customElement(tagName)
27
30
  ], TableTr);
28
31
  export { TableTr };
29
- //Ajout pour la creation du cem notamment pour Storybook
30
- try {
31
- customElements.define(tagName, TableTr);
32
- }
33
- catch (e) { }
@@ -9,10 +9,7 @@ import "@supersoniks/concorde/core/components/ui/table/table-caption";
9
9
  export declare class Table extends LitElement {
10
10
  static styles: import("lit").CSSResult[];
11
11
  size?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
12
- striped: boolean;
13
- sticky: boolean;
14
12
  bordered: boolean;
15
- hover: boolean;
16
13
  maxHeight?: string;
17
14
  render(): import("lit-html").TemplateResult<1>;
18
15
  }
@@ -20,19 +20,15 @@ const tagName = "sonic-table";
20
20
  let Table = class Table extends LitElement {
21
21
  constructor() {
22
22
  super(...arguments);
23
- this.striped = false;
24
- this.sticky = false;
25
23
  this.bordered = false;
26
- this.hover = false;
27
24
  }
28
25
  render() {
29
26
  const containerStyles = {
30
27
  maxHeight: this.maxHeight,
31
28
  };
32
29
  return html `
33
-
34
- <div class="table-container custom-scroll" style=${styleMap(containerStyles)} >
35
- <div class="table" ?striped=${this.striped} ?hover=${this.hover} ?sticky=${this.sticky}>
30
+ <div class="table-container custom-scroll" style=${styleMap(containerStyles)}>
31
+ <div class="table">
36
32
  <slot></slot>
37
33
  </div>
38
34
  </div>
@@ -47,51 +43,43 @@ Table.styles = [
47
43
  --sc-table-fw: var(--sc-font-weight-base);
48
44
  --sc-table-fst: var(--sc-font-style-base);
49
45
  --sc-table-fs: 1rem;
50
- --sc-table-border-color: var(--sc-base-200);
51
- --sc-table-caption-color: var(--sc-base-400);
46
+ --sc-table-border-color: var(--sc-border-color);
47
+ --sc-table-caption-color: var(--sc-base-500);
52
48
  --sc-table-bg: var(--sc-base);
53
- --sc-table-th-fs: .85em;
49
+ --sc-table-accent-bg: var(--sc-base-50);
50
+ --sc-table-hover-bg: var(--sc-base-100);
51
+ --sc-table-th-fs: 0.85em;
54
52
  --sc-table-th-fw: bold;
55
53
  --sc-table-th-tt: uppercase;
56
54
  --sc-table-th-px: var(--sc-table-td-px);
57
- --sc-table-th-py: calc(1.8 * var(--sc-table-td-py) );
58
- --sc-table-td-px: .5em;
59
- --sc-table-td-py: .5em;
60
- display:block;
55
+ --sc-table-th-py: calc(1.8 * var(--sc-table-td-py));
56
+ --sc-table-td-px: 0.5em;
57
+ --sc-table-td-py: 0.5em;
58
+ display: block;
61
59
  }
62
60
 
63
61
  :host([maxHeight]) .table-container {
64
62
  overflow-x: auto;
65
63
  -webkit-overflow-scrolling: touch;
66
64
  }
67
-
65
+
68
66
  .table {
69
67
  width: 100%;
70
68
  display: table;
71
- box-sizing:border-box;
69
+ box-sizing: border-box;
72
70
  }
73
71
 
74
72
  :host([bordered]) .table-container {
75
- border:var(--sc-border-width) solid var(--sc-table-border-color) !important;
73
+ border: var(--sc-border-width) solid var(--sc-table-border-color) !important;
76
74
  }
77
-
78
75
  `,
79
76
  ];
80
77
  __decorate([
81
78
  property({ type: String, reflect: true })
82
79
  ], Table.prototype, "size", void 0);
83
- __decorate([
84
- property({ type: Boolean, reflect: true })
85
- ], Table.prototype, "striped", void 0);
86
- __decorate([
87
- property({ type: Boolean, reflect: true })
88
- ], Table.prototype, "sticky", void 0);
89
80
  __decorate([
90
81
  property({ type: Boolean, reflect: true })
91
82
  ], Table.prototype, "bordered", void 0);
92
- __decorate([
93
- property({ type: Boolean, reflect: true })
94
- ], Table.prototype, "hover", void 0);
95
83
  __decorate([
96
84
  property({ type: String })
97
85
  ], Table.prototype, "maxHeight", void 0);
@@ -99,8 +87,3 @@ Table = __decorate([
99
87
  customElement(tagName)
100
88
  ], Table);
101
89
  export { Table };
102
- //Ajout pour la creation du cem notamment pour Storybook
103
- try {
104
- customElements.define(tagName, Table);
105
- }
106
- catch (e) { }
@@ -2,7 +2,7 @@ import { css } from "lit";
2
2
  export const coreVariables = css `
3
3
  :host {
4
4
  /* polices*/
5
- --sc-font-family-base: "Inter var", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto,
5
+ --sc-font-family-base: "Inter var", "Inter", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto,
6
6
  "Helvetica Neue", Arial, sans-serif;
7
7
  --sc-font-weight-base: 400;
8
8
  --sc-font-style-base: normal;
@@ -22,14 +22,14 @@ export const coreVariables = css `
22
22
  --sc-rounded-sm: calc(var(--sc-rounded) * 0.5);
23
23
  --sc-rounded: 0.375rem;
24
24
  --sc-rounded-md: calc(var(--sc-rounded) * 1.8);
25
- --sc-rounded-lg: calc(var(--sc-rounded) * 3.5);
25
+ --sc-rounded-lg: calc(var(--sc-rounded) * 3);
26
26
  --sc-rounded-xl: calc(var(--sc-rounded) * 7);
27
- --sc-rounded-size-intensity: calc((1em - 1rem) * .4);
27
+ --sc-rounded-size-intensity: calc((1em - 1rem) * 0.4);
28
28
 
29
29
  /* 4 for rounded full*/
30
- --sc-btn-rounded-intensity : 1.4;
30
+ --sc-btn-rounded-intensity: 1.4;
31
31
  --sc-btn-font-weight: 500;
32
- --sc-btn-rounded: calc((var(--sc-rounded) + var(--sc-rounded-size-intensity)) * var(--sc-btn-rounded-intensity) );
32
+ --sc-btn-rounded: calc((var(--sc-rounded) + var(--sc-rounded-size-intensity)) * var(--sc-btn-rounded-intensity));
33
33
 
34
34
  /* Placeholder */
35
35
  --sc-placeholder-bg: rgba(17, 24, 39, 0.05);
@@ -37,18 +37,21 @@ export const coreVariables = css `
37
37
  /* OMBRES */
38
38
  --sc-shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
39
39
  --sc-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
40
- --sc-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
40
+ --sc-shadow-lg: 0 10px 15px 0px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
41
41
  --sc-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
42
42
  --sc-shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
43
43
 
44
44
  /* Forms */
45
45
  --sc-border-width: max(1px, 0.12rem);
46
- --sc-form-height : 2.5em;
46
+ --sc-border-color: var(--sc-base-200);
47
+ --sc-form-height: 2.5em;
47
48
  --sc-form-border-width: var(--sc-border-width);
48
49
  --sc-input-bg: var(--sc-base-100);
49
50
  --sc-input-border-color: var(--sc-input-bg);
50
- --sc-input-rounded-intensity : 1.4;
51
- --sc-input-rounded: calc((var(--sc-rounded) + var(--sc-rounded-size-intensity)) * var(--sc-input-rounded-intensity) );
51
+ --sc-input-rounded-intensity: 1.4;
52
+ --sc-input-rounded: calc(
53
+ (var(--sc-rounded) + var(--sc-rounded-size-intensity)) * var(--sc-input-rounded-intensity)
54
+ );
52
55
  --sc-label-font-weight: 500;
53
56
 
54
57
  /* Contrast -- ex : Text on images */
@@ -56,10 +59,9 @@ export const coreVariables = css `
56
59
  --sc-contrast: #11151f;
57
60
 
58
61
  /*Scrollbar*/
59
- --sc-scrollbar-bg : var(--sc-base-400);
62
+ --sc-scrollbar-bg: var(--sc-base-400);
60
63
 
61
64
  /*Body*/
62
65
  --sc-body-bg: var(--sc-base);
63
-
64
66
  }
65
67
  `;
@@ -14,7 +14,7 @@ const darkCss = css `
14
14
 
15
15
  --sc-base: var(--sc-dark-base, #1d2634);
16
16
  --sc-base-50: var(--sc-dark-base-50, #1f2937);
17
- --sc-base-100: var(--sc-dark-base-100, #252C36);
17
+ --sc-base-100: var(--sc-dark-base-100, #252c36);
18
18
  --sc-base-200: var(--sc-dark-base-200, #2c3543);
19
19
  --sc-base-300: var(--sc-dark-base-300, #38414e);
20
20
  --sc-base-400: var(--sc-dark-base-400, #515964);
@@ -1,18 +1,13 @@
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
  theme: string;
6
5
  background: boolean;
7
6
  color: boolean;
8
7
  font: boolean;
9
- contrastDarkMode: boolean;
10
8
  connectedCallback(): void;
11
- updated(): void;
12
9
  postCSSVars(): void;
13
- receiveMessage(event: any): void;
10
+ receiveMessage(event: MessageEvent): void;
14
11
  getCssVariables(): Record<string, string>;
15
- contrast(color: string, percent: number): string;
16
- contrastBg(): void;
17
12
  render(): import("lit-html").TemplateResult<1>;
18
13
  }