profile-pane 3.2.3-0 → 3.2.3-2

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 (107) hide show
  1. package/lib/ProfileView.css +73 -236
  2. package/lib/ProfileView.d.ts +2 -1
  3. package/lib/ProfileView.d.ts.map +1 -1
  4. package/lib/ProfileView.js +19 -18
  5. package/lib/index.d.ts.map +1 -1
  6. package/lib/index.js +35 -35
  7. package/lib/profile-pane.js +17229 -25377
  8. package/lib/profile-pane.js.map +1 -1
  9. package/lib/profile-pane.min.js +809 -1579
  10. package/lib/profile-pane.min.js.map +1 -1
  11. package/lib/sections/bio/BioSection.css +16 -123
  12. package/lib/sections/bio/BioSection.d.ts +2 -2
  13. package/lib/sections/bio/BioSection.d.ts.map +1 -1
  14. package/lib/sections/bio/BioSection.js +23 -32
  15. package/lib/sections/contactInfo/ContactInfoEditDialog.css +33 -66
  16. package/lib/sections/contactInfo/ContactInfoEditDialog.d.ts.map +1 -1
  17. package/lib/sections/contactInfo/ContactInfoEditDialog.js +15 -39
  18. package/lib/sections/contactInfo/ContactInfoSection.css +7 -7
  19. package/lib/sections/contactInfo/ContactInfoSection.d.ts +2 -2
  20. package/lib/sections/contactInfo/ContactInfoSection.d.ts.map +1 -1
  21. package/lib/sections/contactInfo/ContactInfoSection.js +34 -49
  22. package/lib/sections/education/EducationSection.d.ts +1 -1
  23. package/lib/sections/education/EducationSection.d.ts.map +1 -1
  24. package/lib/sections/education/EducationSection.js +2 -3
  25. package/lib/sections/heading/HeadingEditDialog.d.ts.map +1 -1
  26. package/lib/sections/heading/HeadingEditDialog.js +1 -9
  27. package/lib/sections/heading/HeadingSection.css +122 -346
  28. package/lib/sections/heading/HeadingSection.d.ts +2 -3
  29. package/lib/sections/heading/HeadingSection.d.ts.map +1 -1
  30. package/lib/sections/heading/HeadingSection.js +13 -19
  31. package/lib/sections/languages/LanguageEditDialog.d.ts.map +1 -1
  32. package/lib/sections/languages/LanguageEditDialog.js +7 -8
  33. package/lib/sections/languages/LanguageSection.css +6 -6
  34. package/lib/sections/languages/LanguageSection.d.ts +2 -2
  35. package/lib/sections/languages/LanguageSection.d.ts.map +1 -1
  36. package/lib/sections/languages/LanguageSection.js +33 -49
  37. package/lib/sections/projects/ProjectEditDialog.d.ts +0 -1
  38. package/lib/sections/projects/ProjectEditDialog.d.ts.map +1 -1
  39. package/lib/sections/projects/ProjectEditDialog.js +2 -6
  40. package/lib/sections/projects/ProjectSection.css +36 -94
  41. package/lib/sections/projects/ProjectSection.d.ts +2 -2
  42. package/lib/sections/projects/ProjectSection.d.ts.map +1 -1
  43. package/lib/sections/projects/ProjectSection.js +28 -49
  44. package/lib/sections/resume/ResumeEditDialog.d.ts +0 -1
  45. package/lib/sections/resume/ResumeEditDialog.d.ts.map +1 -1
  46. package/lib/sections/resume/ResumeEditDialog.js +20 -40
  47. package/lib/sections/resume/ResumeSection.css +51 -133
  48. package/lib/sections/resume/ResumeSection.d.ts +3 -3
  49. package/lib/sections/resume/ResumeSection.d.ts.map +1 -1
  50. package/lib/sections/resume/ResumeSection.js +28 -42
  51. package/lib/sections/shared/sectionCardHelpers.js +15 -15
  52. package/lib/sections/skills/SkillsEditDialog.d.ts.map +1 -1
  53. package/lib/sections/skills/SkillsEditDialog.js +1 -3
  54. package/lib/sections/skills/SkillsSection.css +20 -67
  55. package/lib/sections/skills/SkillsSection.d.ts +2 -2
  56. package/lib/sections/skills/SkillsSection.d.ts.map +1 -1
  57. package/lib/sections/skills/SkillsSection.js +36 -55
  58. package/lib/sections/social/SocialEditDialog.d.ts.map +1 -1
  59. package/lib/sections/social/SocialEditDialog.js +4 -9
  60. package/lib/sections/social/SocialSection.css +19 -70
  61. package/lib/sections/social/SocialSection.d.ts +2 -2
  62. package/lib/sections/social/SocialSection.d.ts.map +1 -1
  63. package/lib/sections/social/SocialSection.js +37 -61
  64. package/lib/specialButtons/addMeToYourFriends.d.ts.map +1 -1
  65. package/lib/specialButtons/addMeToYourFriends.js +0 -2
  66. package/lib/styles/CollapsibleSection.css +39 -223
  67. package/lib/styles/EditDialogs.css +90 -284
  68. package/lib/styles/EditDialogs.responsive.css +72 -147
  69. package/lib/types.d.ts +1 -0
  70. package/lib/types.d.ts.map +1 -1
  71. package/lib/ui/dialog.css +18 -89
  72. package/lib/ui/dialog.d.ts.map +1 -1
  73. package/lib/ui/dialog.js +5 -9
  74. package/lib/ui/dialog.responsive.css +31 -34
  75. package/lib/ui/responsiveActionButton.d.ts +19 -0
  76. package/lib/ui/responsiveActionButton.d.ts.map +1 -0
  77. package/lib/ui/responsiveActionButton.js +34 -0
  78. package/lib/utils/resize.d.ts +2 -0
  79. package/lib/utils/resize.d.ts.map +1 -0
  80. package/lib/utils/resize.js +40 -0
  81. package/package.json +19 -19
  82. package/lib/303.profile-pane.js +0 -1362
  83. package/lib/303.profile-pane.js.map +0 -1
  84. package/lib/303.profile-pane.min.js +0 -2
  85. package/lib/303.profile-pane.min.js.map +0 -1
  86. package/lib/specialButtons/addContact/AddMeToYourContacts.css +0 -1118
  87. package/lib/specialButtons/addContact/ContactCreationDialog.d.ts +0 -10
  88. package/lib/specialButtons/addContact/ContactCreationDialog.d.ts.map +0 -1
  89. package/lib/specialButtons/addContact/ContactCreationDialog.js +0 -1123
  90. package/lib/specialButtons/addContact/addMeToYourContacts.d.ts +0 -16
  91. package/lib/specialButtons/addContact/addMeToYourContacts.d.ts.map +0 -1
  92. package/lib/specialButtons/addContact/addMeToYourContacts.js +0 -136
  93. package/lib/specialButtons/addContact/contactsErrors.d.ts +0 -8
  94. package/lib/specialButtons/addContact/contactsErrors.d.ts.map +0 -1
  95. package/lib/specialButtons/addContact/contactsErrors.js +0 -106
  96. package/lib/specialButtons/addContact/contactsTypes.d.ts +0 -43
  97. package/lib/specialButtons/addContact/contactsTypes.d.ts.map +0 -1
  98. package/lib/specialButtons/addContact/contactsTypes.js +0 -5
  99. package/lib/specialButtons/addContact/helpers.d.ts +0 -7
  100. package/lib/specialButtons/addContact/helpers.d.ts.map +0 -1
  101. package/lib/specialButtons/addContact/helpers.js +0 -103
  102. package/lib/specialButtons/addContact/mutations.d.ts +0 -16
  103. package/lib/specialButtons/addContact/mutations.d.ts.map +0 -1
  104. package/lib/specialButtons/addContact/mutations.js +0 -300
  105. package/lib/specialButtons/addContact/selectors.d.ts +0 -10
  106. package/lib/specialButtons/addContact/selectors.d.ts.map +0 -1
  107. package/lib/specialButtons/addContact/selectors.js +0 -163
@@ -8,8 +8,9 @@
8
8
 
9
9
  .profile-grid [data-profile-section='bio'].profile__section,
10
10
  .profile-grid [data-profile-section='bio'].profile__section--empty {
11
- --bio-section-content-gap-desktop: var(--spacing-lg, 1.5625rem);
12
- --bio-section-content-gap-mobile: var(--spacing-sm, 0.9375rem);
11
+ --bio-section-content-gap-desktop: 25px;
12
+ --bio-section-content-gap-mobile: 15px;
13
+ --line-height: 1.5;
13
14
  }
14
15
 
15
16
  .bio-card__description-wrap {
@@ -20,15 +21,8 @@
20
21
  --bio-description-toggle-transform: translateY(7px);
21
22
  }
22
23
 
23
- .bio-section__edit-button,
24
- solid-ui-button.bio-section__edit-button {
25
- display: inline-flex;
26
- align-items: center;
27
- justify-content: center;
28
- }
29
-
30
24
  .bio-section--empty {
31
- border-radius: var(--border-radius-md, 0.5rem);
25
+ border-radius: 8px;
32
26
  gap: var(--bio-section-content-gap-desktop);
33
27
  }
34
28
 
@@ -37,7 +31,7 @@ solid-ui-button.bio-section__edit-button {
37
31
  }
38
32
 
39
33
  .profile-grid [data-profile-section='bio'].profile__section--empty .profile__empty-state-content {
40
- gap: var(--spacing-2xs, 0.625rem);
34
+ gap: 10px;
41
35
  }
42
36
 
43
37
  :is(.profile-pane-host, .profile-pane-root)[data-layout='mobile'] .bio-section--empty {
@@ -53,33 +47,6 @@ solid-ui-button.bio-section__edit-button {
53
47
  gap: var(--bio-section-content-gap-mobile);
54
48
  }
55
49
 
56
- :is(.profile-pane-host, .profile-pane-root)[data-layout='mobile'] .bio-section__edit-button.profile-section-collapsible__edit-button,
57
- :is(.profile-pane-host, .profile-pane-root)[data-layout='mobile'] solid-ui-button.bio-section__edit-button.profile-section-collapsible__edit-button {
58
- min-width: var(--min-touch-target, 44px);
59
- min-height: var(--min-touch-target, 44px);
60
- --button-width-sm: var(--min-touch-target, 44px);
61
- --button-height-sm: var(--min-touch-target, 44px);
62
- --button-background: transparent;
63
- --button-border-width: 0;
64
- --button-border: transparent;
65
- --button-text: var(--profile-section-collapsible-action-button-text, var(--color-primary, #7C4DFF));
66
- --button-hover-background: var(--profile-section-collapsible-action-button-hover-background, var(--color-surface-accent-subtle, var(--lavender-300, #e6dcff)));
67
- --button-hover-border: transparent;
68
- --button-hover-text: var(--profile-section-collapsible-action-button-text, var(--color-primary, #7C4DFF));
69
- }
70
-
71
- :is(.profile-pane-host, .profile-pane-root)[data-layout='mobile'] solid-ui-button.bio-section__edit-button.profile-section-collapsible__edit-button::part(button) {
72
- width: var(--min-touch-target, 44px);
73
- min-width: var(--min-touch-target, 44px);
74
- }
75
-
76
- :is(.profile-pane-host, .profile-pane-root)[data-layout='mobile'] solid-ui-button.bio-section__edit-button.profile-section-collapsible__edit-button::part(button):hover,
77
- :is(.profile-pane-host, .profile-pane-root)[data-layout='mobile'] solid-ui-button.bio-section__edit-button.profile-section-collapsible__edit-button::part(button):focus,
78
- :is(.profile-pane-host, .profile-pane-root)[data-layout='mobile'] solid-ui-button.bio-section__edit-button.profile-section-collapsible__edit-button::part(button):focus-visible {
79
- background: var(--profile-section-collapsible-action-button-hover-background, var(--color-surface-accent-subtle, var(--lavender-300, #e6dcff)));
80
- text-decoration: none;
81
- }
82
-
83
50
  .bio-card__description-text {
84
51
  margin: 0;
85
52
  width: 100%;
@@ -88,7 +55,7 @@ solid-ui-button.bio-section__edit-button {
88
55
  -webkit-box-orient: vertical;
89
56
  -webkit-line-clamp: 2;
90
57
  line-clamp: 2;
91
- line-height: var(--line-height-base, 1.5);
58
+ line-height: var(--line-height);
92
59
  overflow: hidden;
93
60
  }
94
61
 
@@ -104,6 +71,7 @@ solid-ui-button.bio-section__edit-button {
104
71
  overflow: visible;
105
72
  }
106
73
 
74
+
107
75
  .bio-card__description-toggle,
108
76
  solid-ui-button.bio-card__description-toggle {
109
77
  margin: 0;
@@ -111,43 +79,26 @@ solid-ui-button.bio-card__description-toggle {
111
79
  position: absolute;
112
80
  right: 0;
113
81
  bottom: 0;
114
- background-color: var(--color-card-bg, #FFFFFF);
82
+ background-color: var(--color-card-bg, #FFF);
115
83
  white-space: nowrap;
116
84
  z-index: 0;
117
85
  }
118
86
 
119
87
  .bio-card__description-toggle {
120
88
  border: 0;
121
- background: none;
89
+ background: transparent;
122
90
  color: var(--color-primary, #7C4DFF);
123
- cursor: var(--profile-interactive-cursor, pointer);
124
91
  font: inherit;
125
92
  font-size: var(--font-size-sm, 0.875rem);
126
93
  line-height: var(--line-height-base, 1.5);
127
94
  min-height: auto;
128
95
  min-width: auto;
129
- padding-left: 0;
130
- padding-right: 0;
131
- padding-top: 0;
132
- padding-bottom: 0;
133
- margin-left: 0;
134
- margin-right: 0;
96
+ cursor: var(--profile-interactive-cursor, pointer);
135
97
  }
136
98
 
137
- solid-ui-button.bio-card__description-toggle {
138
- min-height: 0;
139
- min-width: 0;
140
- --button-height-sm: 0;
141
- --button-padding-sm: 0;
142
- --button-font-size-sm: var(--font-size-sm, 0.875rem);
143
- --button-line-height: var(--line-height-base, 1.5);
144
- --button-background: none;
145
- --button-border-width: 0;
146
- --button-border: transparent;
147
- --button-text: var(--color-primary, #7C4DFF);
148
- --button-hover-background: none;
149
- --button-hover-border: transparent;
150
- --button-hover-text: var(--color-primary, #7C4DFF);
99
+ solid-ui-button.bio-card__description-toggle[hidden],
100
+ .bio-card__description-toggle[hidden] {
101
+ display: none !important;
151
102
  }
152
103
 
153
104
  .bio-card__description-wrap .bio-card__description-text:not(.bio-card__description-text--expanded) + .bio-card__description-toggle {
@@ -179,7 +130,7 @@ solid-ui-button.bio-card__description-toggle {
179
130
 
180
131
  :is(.profile-pane-host, .profile-pane-root)[data-layout='mobile'] .bio-card__description-text {
181
132
  font-size: var(--font-size-sm, 0.875rem);
182
- line-height: var(--line-height-base, 1.5);
133
+ line-height: var(--line-height);
183
134
  -webkit-line-clamp: 2;
184
135
  line-clamp: 2;
185
136
  }
@@ -199,7 +150,7 @@ solid-ui-button.bio-card__description-toggle {
199
150
 
200
151
  .bio-card__description-text {
201
152
  font-size: var(--font-size-sm, 0.875rem);
202
- line-height: var(--line-height-base, 1.5);
153
+ line-height: var(--line-height);
203
154
  -webkit-line-clamp: 2;
204
155
  line-clamp: 2;
205
156
  }
@@ -230,7 +181,7 @@ solid-ui-button.bio-card__description-toggle {
230
181
 
231
182
  .bio-card__description-text {
232
183
  font-size: var(--font-size-sm, 0.875rem);
233
- line-height: var(--line-height-base, 1.5);
184
+ line-height: var(--line-height);
234
185
  -webkit-line-clamp: 2;
235
186
  line-clamp: 2;
236
187
  }
@@ -240,61 +191,3 @@ solid-ui-button.bio-card__description-toggle {
240
191
  --bio-description-toggle-transform: none;
241
192
  }
242
193
  }
243
-
244
- @media (max-width: 768px) {
245
- .bio-section__edit-button.profile-section-collapsible__edit-button,
246
- solid-ui-button.bio-section__edit-button.profile-section-collapsible__edit-button {
247
- min-width: var(--min-touch-target, 44px);
248
- min-height: var(--min-touch-target, 44px);
249
- --button-width-sm: var(--min-touch-target, 44px);
250
- --button-height-sm: var(--min-touch-target, 44px);
251
- --button-background: transparent;
252
- --button-border-width: 0;
253
- --button-border: transparent;
254
- --button-text: var(--profile-section-collapsible-action-button-text, var(--color-primary, #7C4DFF));
255
- --button-hover-background: var(--profile-section-collapsible-action-button-hover-background, var(--color-surface-accent-subtle, var(--lavender-300, #e6dcff)));
256
- --button-hover-border: transparent;
257
- --button-hover-text: var(--profile-section-collapsible-action-button-text, var(--color-primary, #7C4DFF));
258
- }
259
-
260
- solid-ui-button.bio-section__edit-button.profile-section-collapsible__edit-button::part(button) {
261
- width: var(--min-touch-target, 44px);
262
- min-width: var(--min-touch-target, 44px);
263
- }
264
-
265
- solid-ui-button.bio-section__edit-button.profile-section-collapsible__edit-button::part(button):hover,
266
- solid-ui-button.bio-section__edit-button.profile-section-collapsible__edit-button::part(button):focus,
267
- solid-ui-button.bio-section__edit-button.profile-section-collapsible__edit-button::part(button):focus-visible {
268
- background: var(--profile-section-collapsible-action-button-hover-background, var(--color-surface-accent-subtle, var(--lavender-300, #e6dcff)));
269
- text-decoration: none;
270
- }
271
- }
272
-
273
- @container profile-pane (max-width: 768px) {
274
- .bio-section__edit-button.profile-section-collapsible__edit-button,
275
- solid-ui-button.bio-section__edit-button.profile-section-collapsible__edit-button {
276
- min-width: var(--min-touch-target, 44px);
277
- min-height: var(--min-touch-target, 44px);
278
- --button-width-sm: var(--min-touch-target, 44px);
279
- --button-height-sm: var(--min-touch-target, 44px);
280
- --button-background: transparent;
281
- --button-border-width: 0;
282
- --button-border: transparent;
283
- --button-text: var(--profile-section-collapsible-action-button-text, var(--color-primary, #7C4DFF));
284
- --button-hover-background: var(--profile-section-collapsible-action-button-hover-background, var(--color-surface-accent-subtle, var(--lavender-300, #e6dcff)));
285
- --button-hover-border: transparent;
286
- --button-hover-text: var(--profile-section-collapsible-action-button-text, var(--color-primary, #7C4DFF));
287
- }
288
-
289
- solid-ui-button.bio-section__edit-button.profile-section-collapsible__edit-button::part(button) {
290
- width: var(--min-touch-target, 44px);
291
- min-width: var(--min-touch-target, 44px);
292
- }
293
-
294
- solid-ui-button.bio-section__edit-button.profile-section-collapsible__edit-button::part(button):hover,
295
- solid-ui-button.bio-section__edit-button.profile-section-collapsible__edit-button::part(button):focus,
296
- solid-ui-button.bio-section__edit-button.profile-section-collapsible__edit-button::part(button):focus-visible {
297
- background: var(--profile-section-collapsible-action-button-hover-background, var(--color-surface-accent-subtle, var(--lavender-300, #e6dcff)));
298
- text-decoration: none;
299
- }
300
- }
@@ -1,8 +1,8 @@
1
1
  import 'solid-ui/components/button';
2
2
  import { BioDetails } from './types';
3
- import { ViewerMode } from '../../types';
3
+ import { Layout, ViewerMode } from '../../types';
4
4
  import './BioSection.css';
5
5
  import { LiveStore, NamedNode } from 'rdflib';
6
6
  export declare const BioCard: (bioData: BioDetails) => import("lit-html").TemplateResult<1>;
7
- export declare function renderBioSection(store: LiveStore, subject: NamedNode, bioData: BioDetails, viewerMode: ViewerMode, onSaved?: () => Promise<void> | void): import("lit-html").TemplateResult<1> | "";
7
+ export declare function renderBioSection(store: LiveStore, subject: NamedNode, bioData: BioDetails, viewerMode: ViewerMode, layout: Layout, onSaved?: () => Promise<void> | void): import("lit-html").TemplateResult<1>;
8
8
  //# sourceMappingURL=BioSection.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BioSection.d.ts","sourceRoot":"","sources":["../../../src/sections/bio/BioSection.ts"],"names":[],"mappings":"AACA,OAAO,4BAA4B,CAAA;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,kBAAkB,CAAA;AAEzB,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAwC7C,eAAO,MAAM,OAAO,GAClB,SAAS,UAAU,yCASpB,CAAA;AA4HD,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,UAAU,EACnB,UAAU,EAAE,UAAU,EACtB,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,6CAcrC"}
1
+ {"version":3,"file":"BioSection.d.ts","sourceRoot":"","sources":["../../../src/sections/bio/BioSection.ts"],"names":[],"mappings":"AACA,OAAO,4BAA4B,CAAA;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACpC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,kBAAkB,CAAA;AAEzB,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAsC7C,eAAO,MAAM,OAAO,GAClB,SAAS,UAAU,yCASpB,CAAA;AAgHD,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,UAAU,EACnB,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,wCAYrC"}
@@ -12,6 +12,7 @@ var _texts = require("../../texts");
12
12
  var _sectionCardHelpers = require("../shared/sectionCardHelpers");
13
13
  var _BioEditDialog = require("./BioEditDialog");
14
14
  var _profileIcons = require("../../icons-svg/profileIcons");
15
+ var _responsiveActionButton = require("../../ui/responsiveActionButton");
15
16
  function renderBio(bioData) {
16
17
  if (!bioData) return (0, _litHtml.html)``;
17
18
  const bioDescriptionId = 'bio-description';
@@ -20,10 +21,7 @@ function renderBio(bioData) {
20
21
  <div class="bio-card__description-wrap">
21
22
  <p class="bio-card__description-text" id=${bioDescriptionId}>${bioData.description}</p>
22
23
  <solid-ui-button
23
- type="button"
24
- variant="secondary"
25
- size="sm"
26
- label="...more"
24
+ variant="tertiary"
27
25
  class="bio-card__description-toggle"
28
26
  aria-controls=${bioDescriptionId}
29
27
  aria-expanded="false"
@@ -49,35 +47,31 @@ const BioCard = bioData => {
49
47
  `;
50
48
  };
51
49
  exports.BioCard = BioCard;
52
- function renderBioSectionContent(store, subject, bioData, viewerMode, onSaved) {
50
+ function renderBioSectionContent(store, subject, bioData, viewerMode, layout, onSaved) {
53
51
  const bio = BioCard(bioData);
54
52
  const bioDetails = bioData;
55
53
  const isOwner = viewerMode === 'owner';
56
54
  return (0, _litHtml.html)`
57
55
  <header class="profile__section-header profile-section-collapsible__header">
58
56
  <h2 id="bio-heading" tabindex="-1">${_texts.bioHeadingText}</h2>
59
- ${isOwner ? (0, _litHtml.html)`
60
- <solid-ui-button
61
- type="button"
62
- variant="secondary"
63
- size="sm"
64
- class="profile__action-button profile-action-text bio-section__edit-button profile-section-collapsible__edit-button"
65
- aria-label="Edit bio details"
66
- @click=${event => {
67
- return (0, _BioEditDialog.createBioEditDialog)(event, store, subject, bioDetails, viewerMode, onSaved);
68
- }}
69
- >
70
- <span class="profile-section-collapsible__edit-label profile__action-icon">${_profileIcons.editIcon} Edit</span>
71
- <span class="profile-section-collapsible__edit-icon profile__action-icon" aria-hidden="true">${_profileIcons.editIcon}</span>
72
- </solid-ui-button>
73
- ` : (0, _litHtml.html)``}
57
+ ${isOwner ? (0, _litHtml.html)`
58
+ ${(0, _responsiveActionButton.renderResponsiveActionButton)({
59
+ layout,
60
+ className: 'profile-section-collapsible__edit-button',
61
+ ariaLabel: 'Edit bio',
62
+ onClick: event => (0, _BioEditDialog.createBioEditDialog)(event, store, subject, bioDetails, viewerMode, onSaved),
63
+ desktopIcon: (0, _litHtml.html)`<span slot="left-icon" class="profile-section-collapsible__action-label profile__add-more-icon" aria-hidden="true">${_profileIcons.editIcon}</span>`,
64
+ desktopLabel: 'Edit',
65
+ mobileIcon: (0, _litHtml.html)`<span slot="icon" class="profile-section-collapsible__edit-icon" aria-hidden="true">${_profileIcons.editIcon}</span>`
66
+ })}
67
+ ` : _litHtml.nothing}
74
68
  </header>
75
69
  <div class="profile-section-collapsible__content">
76
70
  ${bio}
77
71
  </div>
78
72
  `;
79
73
  }
80
- function renderBioSectionDefault(store, subject, bioData, viewerMode, onSaved) {
74
+ function renderBioSectionDefault(store, subject, bioData, viewerMode, layout, onSaved) {
81
75
  return (0, _litHtml.html)`
82
76
  <section
83
77
  aria-labelledby="bio-heading"
@@ -86,7 +80,7 @@ function renderBioSectionDefault(store, subject, bioData, viewerMode, onSaved) {
86
80
  role="region"
87
81
  tabindex="-1"
88
82
  >
89
- ${renderBioSectionContent(store, subject, bioData, viewerMode, onSaved)}
83
+ ${renderBioSectionContent(store, subject, bioData, viewerMode, layout, onSaved)}
90
84
  </section>
91
85
  `;
92
86
  }
@@ -100,18 +94,15 @@ function renderOwnerEmptyBioContent(store, subject, bioData, viewerMode, onSaved
100
94
  </p>
101
95
  </div>
102
96
  <solid-ui-button
103
- type="button"
104
97
  variant="secondary"
105
- size="sm"
106
98
  class="profile__action-button--empty"
107
- aria-label="Add bio details"
108
99
  @click=${event => {
109
100
  return (0, _BioEditDialog.createBioEditDialog)(event, store, subject, bioDetails, viewerMode, onSaved);
110
101
  }}
111
102
  >
112
- <span class="profile__action-icon" aria-hidden="true">${_profileIcons.plusDarkIcon} Add Bio</span>
103
+ <span slot="left-icon" class="profile__action-icon" aria-hidden="true">${_profileIcons.plusDarkIcon}</span>
104
+ <span class="profile__action-icon">Add Bio</span>
113
105
  </solid-ui-button>
114
-
115
106
  `;
116
107
  }
117
108
  function renderOwnerEmptyBioSection(store, subject, bioData, viewerMode, onSaved) {
@@ -127,12 +118,12 @@ function renderOwnerEmptyBioSection(store, subject, bioData, viewerMode, onSaved
127
118
  </section>
128
119
  `;
129
120
  }
130
- function renderBioSection(store, subject, bioData, viewerMode, onSaved) {
121
+ function renderBioSection(store, subject, bioData, viewerMode, layout, onSaved) {
131
122
  (0, _sectionCardHelpers.scheduleDescriptionOverflowCheck)();
123
+ const currentLayout = layout || 'desktop';
132
124
  const hasBio = hasBioContent(bioData);
133
125
  const showOwnerEmptyBio = !hasBio && viewerMode === 'owner';
134
- const showSection = true;
135
- return showSection ? (0, _litHtml.html)`
136
- ${showOwnerEmptyBio ? renderOwnerEmptyBioSection(store, subject, bioData, viewerMode, onSaved) : renderBioSectionDefault(store, subject, bioData, viewerMode, onSaved)}
137
- ` : '';
126
+ return (0, _litHtml.html)`
127
+ ${showOwnerEmptyBio ? renderOwnerEmptyBioSection(store, subject, bioData, viewerMode, onSaved) : renderBioSectionDefault(store, subject, bioData, viewerMode, currentLayout, onSaved)}
128
+ `;
138
129
  }
@@ -1,10 +1,10 @@
1
1
  .profile__edit-form--contact-info .profile-edit-dialog__section {
2
- --contact-info-dialog-contact-point-row-gap: var(--spacing-sm, 0.9375rem);
2
+ --contact-info-dialog-contact-point-row-gap: 15px;
3
3
  --contact-info-dialog-contact-point-row-align: flex-start;
4
4
  --contact-info-dialog-contact-point-row-direction: row;
5
5
  --contact-info-dialog-contact-point-row-wrap: wrap;
6
6
  --contact-info-dialog-contact-point-field-flex: 1 1 auto;
7
- --contact-info-dialog-contact-point-type-width: 6.5rem;
7
+ --contact-info-dialog-contact-point-type-width: 104px;
8
8
  --contact-info-dialog-contact-point-type-max-width: none;
9
9
  --contact-info-dialog-contact-point-actions-flex: 0 1 auto;
10
10
  --contact-info-dialog-contact-point-actions-margin-left: auto;
@@ -15,26 +15,26 @@
15
15
  }
16
16
 
17
17
  .profile__edit-form--contact-info .profile-edit-dialog__section + .profile-edit-dialog__section {
18
- border-top: var(--border-width-sm, 0.1rem) solid var(--color-border-lighter, var(--slate-200, #E2E8F0));
19
- padding-top: var(--spacing-xs, 0.75rem);
18
+ border-top: 1px solid var(--solid-ui-color-slate-200, #E2E8F0);
19
+ padding-top: 12px;
20
20
  }
21
21
 
22
22
  .profile__edit-form--contact-info .profile-edit-dialog__contact-section-header {
23
23
  padding: 0;
24
- gap: 1.875rem;
24
+ gap: 30px;
25
25
  margin-bottom: 0;
26
26
  }
27
27
 
28
28
  .profile__edit-form--contact-info .profile-edit-dialog__section fieldset {
29
- margin-top: 0.25rem;
30
- gap: var(--spacing-xs, 0.75rem);
29
+ margin-top: 4px;
30
+ gap: 12px;
31
31
  }
32
32
 
33
33
  .profile__edit-form--contact-info .profile-edit-dialog__section-heading {
34
34
  margin: 0;
35
- color: var(--gray-700, #364153);
36
- font-size: var(--font-size-md, 1rem); /* 16px */
37
- font-weight: var(--font-weight-md, 500);
35
+ color: var(--solid-ui-color-gray-700, #364153);
36
+ font-size: var(--solid-ui-font-size-md, 1rem);
37
+ font-weight: 500;
38
38
  line-height: normal;
39
39
  }
40
40
 
@@ -65,11 +65,11 @@
65
65
  }
66
66
 
67
67
  .profile-edit-dialog__section fieldset > .profile-edit-dialog__row--contact-point {
68
- margin-bottom: var(--spacing-xs, 0.75rem);
68
+ margin-bottom: 12px;
69
69
  }
70
70
 
71
71
  .profile-edit-dialog__section fieldset > .profile-edit-dialog__row--contact-point:last-child {
72
- margin-bottom: var(--spacing-sm, 0.9375rem);
72
+ margin-bottom: 15px;
73
73
  }
74
74
 
75
75
  .profile-edit-dialog__row--contact-point > .profile-edit-dialog__field,
@@ -143,16 +143,11 @@
143
143
  align-self: center;
144
144
  }
145
145
 
146
- .profile-edit-dialog__row--address-header.profile-edit-dialog__row--full .profile-edit-dialog__delete-button {
147
- min-height: 1.75rem;
148
- min-width: 1.75rem;
149
- }
150
-
151
146
  .profile-edit-dialog__address-title {
152
147
  margin: 0;
153
- font-size: var(--font-size-sm, 0.875rem);
154
- font-weight: var(--font-weight-medium, 500);
155
- line-height: var(--line-height-base, 1.5);
148
+ font-size: var(--solid-ui-font-size-sm, 0.875rem);
149
+ font-weight: 500;
150
+ line-height: 1.5;
156
151
  }
157
152
 
158
153
  /* layout = mobile */
@@ -161,8 +156,8 @@ html[data-layout='mobile'] #profile-modal .modal .profile__edit-form--contact-in
161
156
  }
162
157
 
163
158
  html[data-layout='mobile'] #profile-modal .modal .profile__edit-form--contact-info .profile-edit-dialog__section-heading{
164
- font-size: var(--font-size-md, 1rem);
165
- line-height: var(--line-height-base, 1.5);
159
+ font-size: var(--solid-ui-font-size-md, 1rem);
160
+ line-height: 1.5;
166
161
  }
167
162
 
168
163
  /* Media and container rules are needed so that the phone and email rows
@@ -170,8 +165,8 @@ stay as one row instead of wrapping */
170
165
  @media (max-width: 768px) {
171
166
  #profile-modal .modal .profile__edit-form--contact-info .profile-edit-dialog__section-heading,
172
167
  .profile__edit-form--contact-info .profile-edit-dialog__section-heading {
173
- font-size: var(--font-size-md, 1rem);
174
- line-height: var(--line-height-base, 1.5);
168
+ font-size: var(--solid-ui-font-size-md, 1rem);
169
+ line-height: 1.5;
175
170
  }
176
171
 
177
172
  #profile-modal .modal .profile__edit-form--contact-info .profile-edit-dialog__row--contact-point,
@@ -182,7 +177,7 @@ stay as one row instead of wrapping */
182
177
  minmax(var(--contact-info-dialog-contact-point-type-width), var(--contact-info-dialog-contact-point-type-width))
183
178
  minmax(var(--min-touch-target, 44px), auto);
184
179
  align-items: start;
185
- column-gap: var(--spacing-2xs, 0.625rem);
180
+ column-gap: 10px;
186
181
  }
187
182
 
188
183
  #profile-modal .modal .profile__edit-form--contact-info .profile-edit-dialog__row--contact-point > .profile-edit-dialog__field,
@@ -213,26 +208,26 @@ stay as one row instead of wrapping */
213
208
  }
214
209
 
215
210
  .profile__edit-form--contact-info .profile-edit-dialog__section {
216
- --contact-info-dialog-contact-point-row-gap: var(--spacing-2xs, 0.625rem);
211
+ --contact-info-dialog-contact-point-row-gap: 10px;
217
212
  --contact-info-dialog-contact-point-row-align: center;
218
213
  --contact-info-dialog-contact-point-row-direction: row;
219
214
  --contact-info-dialog-contact-point-row-wrap: nowrap;
220
215
  --contact-info-dialog-contact-point-field-flex: 1 1 0;
221
- --contact-info-dialog-contact-point-type-width: 5.5rem;
222
- --contact-info-dialog-contact-point-type-max-width: 5.5rem;
216
+ --contact-info-dialog-contact-point-type-width: 88px;
217
+ --contact-info-dialog-contact-point-type-max-width: 88px;
223
218
  --contact-info-dialog-contact-point-actions-flex: 0 0 auto;
224
219
  --contact-info-dialog-contact-point-actions-margin-left: 0;
225
220
  --contact-info-dialog-contact-point-actions-justify: flex-end;
226
- --contact-info-dialog-contact-point-select-font-size: var(--font-size-xxs, 0.75rem);
227
- --contact-info-dialog-contact-point-select-line-height: var(--line-height-base, 1.5);
221
+ --contact-info-dialog-contact-point-select-font-size: 0.75rem;
222
+ --contact-info-dialog-contact-point-select-line-height: 1.5;
228
223
  }
229
224
  }
230
225
 
231
226
  @container profile-pane (max-width: 768px) {
232
227
  #profile-modal .modal .profile__edit-form--contact-info .profile-edit-dialog__section-heading,
233
228
  .profile__edit-form--contact-info .profile-edit-dialog__section-heading {
234
- font-size: var(--font-size-md, 1rem);
235
- line-height: var(--line-height-base, 1.5);
229
+ font-size: var(--solid-ui-font-size-md, 1rem);
230
+ line-height: 1.5;
236
231
  }
237
232
 
238
233
  #profile-modal .modal .profile__edit-form--contact-info .profile-edit-dialog__row--contact-point,
@@ -243,7 +238,7 @@ stay as one row instead of wrapping */
243
238
  minmax(var(--contact-info-dialog-contact-point-type-width), var(--contact-info-dialog-contact-point-type-width))
244
239
  minmax(var(--min-touch-target, 44px), auto);
245
240
  align-items: start;
246
- column-gap: var(--spacing-2xs, 0.625rem);
241
+ column-gap: 10px;
247
242
  }
248
243
 
249
244
  #profile-modal .modal .profile__edit-form--contact-info .profile-edit-dialog__row--contact-point > .profile-edit-dialog__field,
@@ -274,18 +269,18 @@ stay as one row instead of wrapping */
274
269
  }
275
270
 
276
271
  .profile__edit-form--contact-info .profile-edit-dialog__section {
277
- --contact-info-dialog-contact-point-row-gap: var(--spacing-2xs, 0.625rem);
272
+ --contact-info-dialog-contact-point-row-gap: 10px;
278
273
  --contact-info-dialog-contact-point-row-align: center;
279
274
  --contact-info-dialog-contact-point-row-direction: row;
280
275
  --contact-info-dialog-contact-point-row-wrap: nowrap;
281
276
  --contact-info-dialog-contact-point-field-flex: 1 1 0;
282
- --contact-info-dialog-contact-point-type-width: 5.5rem;
283
- --contact-info-dialog-contact-point-type-max-width: 5.5rem;
277
+ --contact-info-dialog-contact-point-type-width: 88px;
278
+ --contact-info-dialog-contact-point-type-max-width: 88px;
284
279
  --contact-info-dialog-contact-point-actions-flex: 0 0 auto;
285
280
  --contact-info-dialog-contact-point-actions-margin-left: 0;
286
281
  --contact-info-dialog-contact-point-actions-justify: flex-end;
287
- --contact-info-dialog-contact-point-select-font-size: var(--font-size-xxs, 0.75rem);
288
- --contact-info-dialog-contact-point-select-line-height: var(--line-height-base, 1.5);
282
+ --contact-info-dialog-contact-point-select-font-size: 0.75rem;
283
+ --contact-info-dialog-contact-point-select-line-height: 1.5;
289
284
  }
290
285
  }
291
286
 
@@ -294,22 +289,8 @@ stay as one row instead of wrapping */
294
289
  padding: 0;
295
290
  }
296
291
 
297
- #profile-modal .modal .profile__edit-form--contact-info .profile-edit-dialog__contact-section-header .profile-edit-dialog__section-title-icon {
298
- width: 0.8333rem;
299
- height: 0.8333rem;
300
- flex-basis: 0.8333rem;
301
- flex-shrink: 0;
302
- aspect-ratio: 1 / 1;
303
- }
304
-
305
- #profile-modal .modal .profile__edit-form--contact-info .profile-edit-dialog__contact-section-header .profile__add-more-content {
306
- font-size: var(--font-size-sm, 0.875rem);
307
- }
308
-
309
292
  #profile-modal .modal .profile__edit-form--contact-info .profile-edit-dialog__contact-section-header .profile__add-more-icon {
310
293
  display: inline-flex;
311
- width: var(--font-size-xxs, 0.75rem);
312
- height: var(--font-size-xxs, 0.75rem);
313
294
  flex-shrink: 0;
314
295
  aspect-ratio: 1 / 1;
315
296
  padding: 0;
@@ -326,22 +307,8 @@ stay as one row instead of wrapping */
326
307
  padding: 0;
327
308
  }
328
309
 
329
- #profile-modal .modal .profile__edit-form--contact-info .profile-edit-dialog__contact-section-header .profile-edit-dialog__section-title-icon {
330
- width: 0.8333rem;
331
- height: 0.8333rem;
332
- flex-basis: 0.8333rem;
333
- flex-shrink: 0;
334
- aspect-ratio: 1 / 1;
335
- }
336
-
337
- #profile-modal .modal .profile__edit-form--contact-info .profile-edit-dialog__contact-section-header .profile__add-more-content {
338
- font-size: var(--font-size-sm, 0.875rem);
339
- }
340
-
341
310
  #profile-modal .modal .profile__edit-form--contact-info .profile-edit-dialog__contact-section-header .profile__add-more-icon {
342
311
  display: inline-flex;
343
- width: var(--font-size-xxs, 0.75rem);
344
- height: var(--font-size-xxs, 0.75rem);
345
312
  flex-shrink: 0;
346
313
  aspect-ratio: 1 / 1;
347
314
  padding: 0;
@@ -1 +1 @@
1
- {"version":3,"file":"ContactInfoEditDialog.d.ts","sourceRoot":"","sources":["../../../src/sections/contactInfo/ContactInfoEditDialog.ts"],"names":[],"mappings":"AAEA,OAAO,4BAA4B,CAAA;AACnC,OAAO,4BAA4B,CAAA;AACnC,OAAO,EAAqB,WAAW,EAAwC,MAAM,SAAS,CAAA;AAC9F,OAAO,8BAA8B,CAAA;AACrC,OAAO,6BAA6B,CAAA;AACpC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAE7C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AA0vBxC,wBAAsB,2BAA2B,CAC/C,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,SAAS,EAClB,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,EACtB,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,iBA0DrC"}
1
+ {"version":3,"file":"ContactInfoEditDialog.d.ts","sourceRoot":"","sources":["../../../src/sections/contactInfo/ContactInfoEditDialog.ts"],"names":[],"mappings":"AAEA,OAAO,4BAA4B,CAAA;AACnC,OAAO,4BAA4B,CAAA;AACnC,OAAO,EAAqB,WAAW,EAAwC,MAAM,SAAS,CAAA;AAC9F,OAAO,8BAA8B,CAAA;AACrC,OAAO,6BAA6B,CAAA;AACpC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAE7C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAkuBxC,wBAAsB,2BAA2B,CAC/C,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,SAAS,EAClB,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,EACtB,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,iBA0DrC"}