@masterteam/components 0.0.333 → 0.0.335

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 (45) hide show
  1. package/assets/common.css +2 -2
  2. package/fesm2022/masterteam-components-client-page.mjs +10 -4
  3. package/fesm2022/masterteam-components-client-page.mjs.map +1 -1
  4. package/fesm2022/masterteam-components-dynamic-drawer.mjs +112 -112
  5. package/fesm2022/masterteam-components-dynamic-drawer.mjs.map +1 -1
  6. package/fesm2022/masterteam-components-entities.mjs +8 -3
  7. package/fesm2022/masterteam-components-entities.mjs.map +1 -1
  8. package/fesm2022/masterteam-components-formula.mjs +4 -4
  9. package/fesm2022/masterteam-components-formula.mjs.map +1 -1
  10. package/fesm2022/masterteam-components-select-field.mjs +2 -2
  11. package/fesm2022/masterteam-components-select-field.mjs.map +1 -1
  12. package/fesm2022/masterteam-components-slider-field.mjs +2 -2
  13. package/fesm2022/masterteam-components-slider-field.mjs.map +1 -1
  14. package/fesm2022/masterteam-components-table.mjs +4 -4
  15. package/fesm2022/masterteam-components-table.mjs.map +1 -1
  16. package/fesm2022/masterteam-components-tooltip.mjs +11 -3
  17. package/fesm2022/masterteam-components-tooltip.mjs.map +1 -1
  18. package/fesm2022/masterteam-components.mjs +3 -662
  19. package/fesm2022/masterteam-components.mjs.map +1 -1
  20. package/package.json +1 -1
  21. package/types/masterteam-components-client-page.d.ts +7 -2
  22. package/types/masterteam-components-entities.d.ts +3 -0
  23. package/types/masterteam-components-tooltip.d.ts +1 -0
  24. package/types/masterteam-components.d.ts +2 -174
  25. package/assets/ds-components/button.css +0 -385
  26. package/assets/ds-components/content-switcher.css +0 -124
  27. package/assets/ds-components/feedback.css +0 -220
  28. package/assets/ds-components/field.css +0 -526
  29. package/assets/ds-components/misc.css +0 -252
  30. package/assets/ds-components/overlay.css +0 -268
  31. package/assets/ds-components/pagination.css +0 -140
  32. package/assets/ds-components/selection-controls.css +0 -245
  33. package/assets/ds-components/surfaces.css +0 -173
  34. package/assets/ds-components/table.css +0 -142
  35. package/assets/ds-components/tabs.css +0 -331
  36. package/assets/ds-identity.css +0 -275
  37. package/assets/fonts/IBMPlexSansArabic-400-arabic.woff2 +0 -0
  38. package/assets/fonts/IBMPlexSansArabic-400-latin.woff2 +0 -0
  39. package/assets/fonts/IBMPlexSansArabic-500-arabic.woff2 +0 -0
  40. package/assets/fonts/IBMPlexSansArabic-500-latin.woff2 +0 -0
  41. package/assets/fonts/IBMPlexSansArabic-600-arabic.woff2 +0 -0
  42. package/assets/fonts/IBMPlexSansArabic-600-latin.woff2 +0 -0
  43. package/assets/fonts/IBMPlexSansArabic-700-arabic.woff2 +0 -0
  44. package/assets/fonts/IBMPlexSansArabic-700-latin.woff2 +0 -0
  45. package/assets/ibm-plex-sans-arabic.css +0 -100
@@ -1,124 +0,0 @@
1
- /* ==========================================================================
2
- Content Switcher — transcribed from DS `ContentSwitcher/ContentSwitcher.module.css`
3
- (Figma nodes 4157:86138 + 4157:85806)
4
- --------------------------------------------------------------------------
5
- `mt-tabs` in its default `horizontal` mode renders a PrimeNG
6
- `p-selectbutton`, which is a content switcher rather than a tab strip — so
7
- that is the DS component it maps to, and the DS Tabs spec deliberately does
8
- not apply. `mt-tabs mode="underline"` is the DS Line Tab (see tabs.css).
9
-
10
- Track #F3F4F6, item dividers #E5E7EB, text #000B36
11
- Selected #1849A9 fill, #F9FAFB text
12
- Hover #E5E7EB
13
- Sizes sm 32px/16px · md 40px/18px · lg 48px/20px · min-width 76px
14
- Radius 8px on the outer corners only, square between items
15
-
16
- PrimeNG splits a togglebutton into a root plus a `.p-togglebutton-content`
17
- span, and by default paints the *checked* fill on the inner span with its
18
- own radius and padding — which reads as a pill floating inside a track. The
19
- DS fills the whole item edge to edge, so the fill moves to the root and the
20
- inner span is flattened to a transparent layout box.
21
- ========================================================================== */
22
-
23
- html.mt-ds .p-selectbutton {
24
- display: inline-flex;
25
- align-items: stretch;
26
- gap: 0;
27
- padding: 0;
28
- border: none;
29
- border-radius: 8px;
30
- background: #f3f4f6;
31
- overflow: hidden;
32
- font-family: var(--ds-font-sans);
33
- }
34
-
35
- html.mt-ds .p-selectbutton .p-togglebutton {
36
- height: 32px;
37
- min-width: 76px;
38
- padding: 0;
39
- border: none;
40
- border-radius: 0;
41
- background: #f3f4f6;
42
- color: #000b36;
43
- font-weight: 400;
44
- white-space: nowrap;
45
- transition:
46
- background-color 120ms ease,
47
- color 120ms ease;
48
- }
49
-
50
- html.mt-ds .p-selectbutton .p-togglebutton .p-togglebutton-content {
51
- width: 100%;
52
- height: 100%;
53
- padding: 0 8px;
54
- background: transparent;
55
- border-radius: 0;
56
- box-shadow: none;
57
- color: inherit;
58
- font-size: 14px;
59
- line-height: 20px;
60
- font-weight: inherit;
61
- }
62
-
63
- /* Dividers sit between items only — inline-start auto-flips under RTL. */
64
- html.mt-ds .p-selectbutton .p-togglebutton + .p-togglebutton {
65
- border-inline-start: 1px solid #e5e7eb;
66
- }
67
-
68
- html.mt-ds
69
- .p-selectbutton
70
- .p-togglebutton:not(.p-togglebutton-checked, .p-disabled):hover {
71
- background: #e5e7eb;
72
- color: #000b36;
73
- }
74
-
75
- html.mt-ds .p-selectbutton .p-togglebutton.p-togglebutton-checked {
76
- background: #1849a9;
77
- color: #f9fafb;
78
- }
79
-
80
- html.mt-ds
81
- .p-selectbutton
82
- .p-togglebutton.p-togglebutton-checked
83
- .p-togglebutton-content {
84
- background: transparent;
85
- box-shadow: none;
86
- color: #f9fafb;
87
- }
88
-
89
- html.mt-ds .p-selectbutton .p-togglebutton:focus-visible {
90
- z-index: 1;
91
- background: #1849a9;
92
- color: #f9fafb;
93
- outline: 2px solid #1849a9;
94
- outline-offset: 1px;
95
- box-shadow: inset 0 0 0 2px #1849a9;
96
- }
97
-
98
- html.mt-ds .p-selectbutton .p-togglebutton:is(:disabled, .p-disabled) {
99
- background: #f3f4f6;
100
- color: #6c7c96;
101
- opacity: 1;
102
- }
103
-
104
- /* ── Sizes — PrimeNG offers sm / default / lg; the DS ramp maps onto them ── */
105
-
106
- html.mt-ds .p-selectbutton .p-togglebutton-sm {
107
- height: 32px;
108
- }
109
-
110
- html.mt-ds .p-selectbutton .p-togglebutton-sm .p-togglebutton-content {
111
- padding: 0 8px;
112
- font-size: 16px;
113
- line-height: 24px;
114
- }
115
-
116
- html.mt-ds .p-selectbutton .p-togglebutton-lg {
117
- height: 40px;
118
- }
119
-
120
- html.mt-ds .p-selectbutton .p-togglebutton-lg .p-togglebutton-content {
121
- padding: 0 12px;
122
- font-size: 16px;
123
- line-height: 24px;
124
- }
@@ -1,220 +0,0 @@
1
- /* ==========================================================================
2
- Feedback — Toast · Inline notification · Tooltip
3
- --------------------------------------------------------------------------
4
- Toast DS `NotificationToast` (Figma 4399:21638)
5
- Notification DS `Notification` (Figma 4399:21418)
6
- Tooltip DS `Tooltip` (Figma 4404:4368)
7
-
8
- The DS builds both notification surfaces around a coloured accent strip
9
- rather than a tinted card: the toast is white with an 8px bar down its
10
- leading edge, the inline banner is tinted with a 2px bar along its bottom.
11
- ========================================================================== */
12
-
13
- /* ══ Toast ══════════════════════════════════════════════════════════════ */
14
-
15
- html.mt-ds .p-toast {
16
- max-width: 484px;
17
- width: 484px;
18
- }
19
-
20
- html.mt-ds .p-toast-message {
21
- position: relative;
22
- overflow: hidden;
23
- border: none;
24
- border-radius: 8px;
25
- background: #ffffff;
26
- box-shadow: 0 32px 64px -12px rgb(16 24 40 / 0.14);
27
- font-family: var(--ds-font-sans);
28
- }
29
-
30
- /* 8px accent strip on the inline-start edge — mirrors under RTL for free. */
31
- html.mt-ds .p-toast-message::before {
32
- content: "";
33
- position: absolute;
34
- inset-block: 0;
35
- inset-inline-start: 0;
36
- width: 8px;
37
- opacity: 0.7;
38
- background: #d2d6db;
39
- }
40
-
41
- html.mt-ds .p-toast-message-content {
42
- align-items: flex-start;
43
- gap: 12px;
44
- padding: 16px 24px;
45
- }
46
-
47
- html.mt-ds .p-toast-message-icon {
48
- display: flex;
49
- align-items: center;
50
- justify-content: center;
51
- width: 40px;
52
- height: 40px;
53
- min-width: 40px;
54
- border-radius: 9999px;
55
- background: #f3f4f6;
56
- color: #374151;
57
- }
58
-
59
- html.mt-ds .p-toast-summary {
60
- font-size: 16px;
61
- font-weight: 700;
62
- line-height: 24px;
63
- color: #000b36;
64
- }
65
-
66
- html.mt-ds .p-toast-detail {
67
- margin-top: 4px;
68
- font-size: 14px;
69
- font-weight: 400;
70
- line-height: 20px;
71
- color: #3c5073;
72
- }
73
-
74
- html.mt-ds .p-toast-close-button {
75
- width: 32px;
76
- height: 32px;
77
- border-radius: 4px;
78
- color: #3c5073;
79
- }
80
-
81
- html.mt-ds .p-toast-close-button:hover {
82
- background: rgb(0 0 0 / 0.06);
83
- }
84
-
85
- /* Per-severity accent + icon disc. */
86
- html.mt-ds .p-toast-message-success::before {
87
- background: rgb(0 97 33 / 0.7);
88
- }
89
- html.mt-ds .p-toast-message-success .p-toast-message-icon {
90
- background: #e6f4ee;
91
- color: #006121;
92
- }
93
-
94
- html.mt-ds .p-toast-message-error::before {
95
- background: rgb(163 0 0 / 0.7);
96
- }
97
- html.mt-ds .p-toast-message-error .p-toast-message-icon {
98
- background: #fdeceb;
99
- color: #a30000;
100
- }
101
-
102
- html.mt-ds .p-toast-message-warn::before {
103
- background: rgb(221 118 0 / 0.7);
104
- }
105
- html.mt-ds .p-toast-message-warn .p-toast-message-icon {
106
- background: #fef4e6;
107
- color: #dd7600;
108
- }
109
-
110
- html.mt-ds .p-toast-message-info::before {
111
- background: rgb(24 73 169 / 0.7);
112
- }
113
- html.mt-ds .p-toast-message-info .p-toast-message-icon {
114
- background: #eff8ff;
115
- color: #1849a9;
116
- }
117
-
118
- /* ══ Inline notification banner ═════════════════════════════════════════ */
119
- /* PrimeNG `p-message` is the closest surface to the DS Notification. */
120
-
121
- html.mt-ds .p-message {
122
- position: relative;
123
- min-height: 56px;
124
- padding: 8px 24px;
125
- border: none;
126
- border-radius: 4px;
127
- overflow: hidden;
128
- font-family: var(--ds-font-sans);
129
- font-size: 16px;
130
- line-height: 24px;
131
- }
132
-
133
- html.mt-ds .p-message::after {
134
- content: "";
135
- position: absolute;
136
- inset-inline: 0;
137
- bottom: 0;
138
- height: 2px;
139
- }
140
-
141
- html.mt-ds .p-message-content {
142
- gap: 8px;
143
- padding: 0;
144
- }
145
-
146
- html.mt-ds .p-message-text {
147
- font-size: 16px;
148
- line-height: 24px;
149
- }
150
-
151
- html.mt-ds .p-message-error {
152
- background: #fdeceb;
153
- color: #a30000;
154
- }
155
- html.mt-ds .p-message-error::after {
156
- background: rgb(163 0 0 / 0.7);
157
- }
158
-
159
- html.mt-ds .p-message-warn {
160
- background: #fffbf6;
161
- color: #dd7600;
162
- }
163
- html.mt-ds .p-message-warn::after {
164
- background: rgb(221 118 0 / 0.6);
165
- }
166
-
167
- html.mt-ds .p-message-success {
168
- background: #e6f4ee;
169
- color: #006121;
170
- }
171
- html.mt-ds .p-message-success::after {
172
- background: rgb(0 97 33 / 0.6);
173
- }
174
-
175
- html.mt-ds .p-message-info {
176
- background: #eff8ff;
177
- color: #1849a9;
178
- }
179
- html.mt-ds .p-message-info::after {
180
- background: rgb(24 73 169 / 0.6);
181
- }
182
-
183
- html.mt-ds .p-message-secondary {
184
- background: #f5faff;
185
- color: #3c5073;
186
- }
187
- html.mt-ds .p-message-secondary::after {
188
- background: rgb(210 214 219 / 0.6);
189
- }
190
-
191
- /* ══ Tooltip ════════════════════════════════════════════════════════════ */
192
- /* DS dark tooltip: #1F2A37 surface, 4px content radius, 8px padding,
193
- 12/18 text, layered drop-shadows. Note this is #1F2A37 — the #1A2236 in the
194
- chart tokens is the *chart* tooltip and a different surface.
195
-
196
- A bare PrimeNG tooltip is a single string, which is the DS tooltip's primary
197
- text, so it takes the primary-on-dark colour (#F9FAFB) rather than the
198
- secondary body colour the DS uses under a title. */
199
-
200
- html.mt-ds .p-tooltip .p-tooltip-text {
201
- max-width: 240px;
202
- padding: 8px;
203
- border-radius: 4px;
204
- background: #1f2a37;
205
- color: #f9fafb;
206
- font-family: var(--ds-font-sans);
207
- font-size: 12px;
208
- font-weight: 400;
209
- line-height: 18px;
210
- box-shadow:
211
- 0 2px 4px rgb(16 24 40 / 0.08),
212
- 0 8px 20px rgb(16 24 40 / 0.14);
213
- }
214
-
215
- html.mt-ds .p-tooltip .p-tooltip-arrow {
216
- border-top-color: #1f2a37;
217
- border-bottom-color: #1f2a37;
218
- border-left-color: #1f2a37;
219
- border-right-color: #1f2a37;
220
- }