@swiftwc/ui 0.0.0-dev.92 → 0.0.0-dev.93

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 (62) hide show
  1. package/generated/components/alert-dialog.d.ts +1 -2
  2. package/generated/components/alert-dialog.js +1 -2
  3. package/generated/components/body-view.d.ts +3 -0
  4. package/generated/components/body-view.js +3 -0
  5. package/generated/components/bordered-button.d.ts +2 -2
  6. package/generated/components/bordered-button.js +2 -2
  7. package/generated/components/bordered-prominent-button.d.ts +2 -2
  8. package/generated/components/bordered-prominent-button.js +2 -2
  9. package/generated/components/borderless-button.d.ts +2 -2
  10. package/generated/components/borderless-button.js +2 -2
  11. package/generated/components/content-unavailable.d.ts +25 -0
  12. package/generated/components/{content-unavailable-view.js → content-unavailable.js} +8 -8
  13. package/generated/components/date-picker.d.ts +1 -1
  14. package/generated/components/date-picker.js +2 -2
  15. package/generated/components/glass-button.d.ts +2 -2
  16. package/generated/components/glass-button.js +2 -2
  17. package/generated/components/glass-prominent-button.d.ts +2 -2
  18. package/generated/components/glass-prominent-button.js +2 -2
  19. package/generated/components/h-stack.d.ts +1 -1
  20. package/generated/components/h-stack.js +1 -1
  21. package/generated/components/index.d.ts +1 -1
  22. package/generated/components/index.js +1 -1
  23. package/generated/components/label-view.d.ts +5 -2
  24. package/generated/components/label-view.js +7 -4
  25. package/generated/components/labeled-content.js +3 -3
  26. package/generated/components/list-view.js +0 -12
  27. package/generated/components/menu-view.d.ts +1 -1
  28. package/generated/components/menu-view.js +2 -8
  29. package/generated/components/navigation-stack.js +0 -2
  30. package/generated/components/navigation-title.js +0 -9
  31. package/generated/components/picker-view.d.ts +1 -0
  32. package/generated/components/picker-view.js +7 -6
  33. package/generated/components/progress-view.js +1 -1
  34. package/generated/components/scroll-view.js +0 -1
  35. package/generated/components/search-view.js +0 -3
  36. package/generated/components/section-view.d.ts +1 -1
  37. package/generated/components/section-view.js +3 -48
  38. package/generated/components/sheet-view.js +0 -20
  39. package/generated/components/sidebar-view.js +1 -1
  40. package/generated/components/tab-bar.js +0 -3
  41. package/generated/components/tab-view.js +0 -70
  42. package/generated/components/table-view.js +2 -2
  43. package/generated/components/text-field.d.ts +1 -1
  44. package/generated/components/text-field.js +2 -2
  45. package/generated/components/toggle-view.d.ts +2 -0
  46. package/generated/components/toggle-view.js +3 -1
  47. package/generated/components/v-stack.d.ts +1 -1
  48. package/generated/components/v-stack.js +1 -1
  49. package/generated/css/index.css +24 -17
  50. package/generated/events/scroll-view.js +0 -4
  51. package/generated/events/text-field.js +0 -3
  52. package/generated/events/toggle-view.js +0 -3
  53. package/generated/internal/utils/ensure-placeholder.js +0 -55
  54. package/package.json +1 -1
  55. package/scss/_components.scss +1 -1
  56. package/scss/components/{_content-unavailable-view.scss → _content-unavailable.scss} +1 -1
  57. package/scss/components/_index.scss +5 -4
  58. package/scss/components/_labeled-content.scss +8 -0
  59. package/scss/components/_navigation-title.scss +1 -1
  60. package/scss/components/_toggle-view.scss +1 -1
  61. package/web-components.html-data/en.json +27 -21
  62. package/generated/components/content-unavailable-view.d.ts +0 -25
@@ -9,10 +9,16 @@
9
9
  "url": "https://swiftwc.github.io/ui/web-components/alert-dialog"
10
10
  }
11
11
  ],
12
- "description": "A representation of an alert presentation.\nUse it from the client module like `void alert('Save failed.')`.\n---"
12
+ "description": ""
13
13
  },
14
14
  {
15
15
  "name": "body-view",
16
+ "references": [
17
+ {
18
+ "name": "Documentation",
19
+ "url": "https://swiftwc.github.io/ui/web-components/body-view"
20
+ }
21
+ ],
16
22
  "description": ""
17
23
  },
18
24
  {
@@ -23,7 +29,7 @@
23
29
  "url": "https://swiftwc.github.io/ui/web-components/bordered-button"
24
30
  }
25
31
  ],
26
- "description": "### **Slots:**\n- **overlay**\n\n### **Examples:**\n**Creating a menu from a configuration:**\n```html\n<button is=\"bordered-button\">\n <label-view system-image=\"hand-tap\" title=\"Tap Me\"></label-view>\n</button>\n\n```",
32
+ "description": "### **Slots:**\n- **overlay**\n\n### **Examples:**\n**Creating a bordered button:**\n```html\n<button is=\"bordered-button\">\n <label-view system-image=\"hand-tap\" title=\"Tap Me\"></label-view>\n</button>\n\n```",
27
33
  "attributes": [
28
34
  {
29
35
  "name": "role",
@@ -50,7 +56,7 @@
50
56
  "url": "https://swiftwc.github.io/ui/web-components/bordered-prominent-button"
51
57
  }
52
58
  ],
53
- "description": "### **Slots:**\n- **overlay**\n\n### **Examples:**\n**Example:**\n```html\n<button is=\"bordered-prominent-button\">\n <label-view system-image=\"hand-tap\" title=\"Tap Me\"></label-view>\n</button>\n\n```",
59
+ "description": "### **Slots:**\n- **overlay**\n\n### **Examples:**\n**Creating a prominent bordered button:**\n```html\n<button is=\"bordered-prominent-button\">\n <label-view system-image=\"hand-tap\" title=\"Tap Me\"></label-view>\n</button>\n\n```",
54
60
  "attributes": [
55
61
  {
56
62
  "name": "role",
@@ -77,7 +83,7 @@
77
83
  "url": "https://swiftwc.github.io/ui/web-components/borderless-button"
78
84
  }
79
85
  ],
80
- "description": "### **Slots:**\n- **overlay**\n\n### **Examples:**\n**Example:**\n```html\n<button is=\"borderless-button\">\n <label-view system-image=\"hand-tap\" title=\"Tap Me\"></label-view>\n</button>\n\n```",
86
+ "description": "### **Slots:**\n- **overlay**\n\n### **Examples:**\n**Use the `is` attribute to style a `button` as a `borderless-button`:**\n```html\n<button is=\"borderless-button\">\n <label-view system-image=\"hand-tap\" title=\"Tap Me\"></label-view>\n</button>\n\n```",
81
87
  "attributes": [
82
88
  {
83
89
  "name": "role",
@@ -121,14 +127,14 @@
121
127
  "description": "A representation of a confirmation presentation.\nUse it from the client module like `await confirmation(trigger, 'Permanently erase the items in the Trash?')`.\n---"
122
128
  },
123
129
  {
124
- "name": "content-unavailable-view",
130
+ "name": "content-unavailable",
125
131
  "references": [
126
132
  {
127
133
  "name": "Documentation",
128
- "url": "https://swiftwc.github.io/ui/web-components/content-unavailable-view"
134
+ "url": "https://swiftwc.github.io/ui/web-components/content-unavailable"
129
135
  }
130
136
  ],
131
- "description": "### **Slots:**\n- _default_ — The default slot.\n- **description**\n- **actions**\n\n### **Examples:**\n**Example:**\n```html\n<content-unavailable-view search></content-unavailable-view>\n\n```\n**Example:**\n```html\n<content-unavailable-view search=\"foo\"></content-unavailable-view>\n\n```\n**Example:**\n```html\n<content-unavailable-view padding>\n <label-view title=\"No Mail\">\n <i class=\"ph ph-tray\" slot=\"icon\" foreground=\"secondary\"></i>\n </label-view>\n <label-view\n title=\"New mails you receive will appear here.\"\n foreground=\"secondary\"\n slot=\"description\"\n ></label-view>\n <button is=\"borderless-button\" type=\"button\" tabindex=\"0\" slot=\"actions\">\n <label-view title=\"Switch Account\"></label-view>\n </button>\n</content-unavailable-view>\n\n```\n**Example:**\n```html\n<content-unavailable-view padding>\n <label-view title=\"No Mail\">\n <svg slot=\"icon\" foreground=\"secondary\" ...>...</svg>\n </label-view>\n <label-view\n title=\"New mails you receive will appear here.\"\n foreground=\"secondary\"\n slot=\"description\"\n ></label-view>\n <button is=\"borderless-button\" type=\"button\" tabindex=\"0\" slot=\"actions\">\n <label-view title=\"Switch Account\"></label-view>\n </button>\n</content-unavailable-view>\n\n```",
137
+ "description": "### **Slots:**\n- _default_ — The default slot.\n- **description**\n- **actions**\n\n### **Examples:**\n**Example:**\n```html\n<content-unavailable search></content-unavailable>\n\n```\n**Example:**\n```html\n<content-unavailable search=\"foo\"></content-unavailable>\n\n```\n**Example:**\n```html\n<content-unavailable padding>\n <label-view title=\"No Mail\">\n <i class=\"ph ph-tray\" slot=\"icon\" foreground=\"secondary\"></i>\n </label-view>\n <label-view\n title=\"New mails you receive will appear here.\"\n foreground=\"secondary\"\n slot=\"description\"\n ></label-view>\n <button is=\"borderless-button\" type=\"button\" tabindex=\"0\" slot=\"actions\">\n <label-view title=\"Switch Account\"></label-view>\n </button>\n</content-unavailable>\n\n```\n**Example:**\n```html\n<content-unavailable padding>\n <label-view title=\"No Mail\">\n <svg slot=\"icon\" foreground=\"secondary\" ...>...</svg>\n </label-view>\n <label-view\n title=\"New mails you receive will appear here.\"\n foreground=\"secondary\"\n slot=\"description\"\n ></label-view>\n <button is=\"borderless-button\" type=\"button\" tabindex=\"0\" slot=\"actions\">\n <label-view title=\"Switch Account\"></label-view>\n </button>\n</content-unavailable>\n\n```",
132
138
  "attributes": [
133
139
  {
134
140
  "name": "search"
@@ -235,7 +241,7 @@
235
241
  "url": "https://swiftwc.github.io/ui/web-components/glass-button"
236
242
  }
237
243
  ],
238
- "description": "### **Slots:**\n- **overlay**\n\n### **Examples:**\n**Example:**\n```html\n<button is=\"glass-button\">\n <label-view system-image=\"hand-tap\" title=\"Tap Me\"></label-view>\n</button>\n\n```",
244
+ "description": "### **Slots:**\n- **overlay**\n\n### **Examples:**\n**Creating a glass button:**\n```html\n<button is=\"glass-button\">\n <label-view system-image=\"hand-tap\" title=\"Tap Me\"></label-view>\n</button>\n\n```",
239
245
  "attributes": [
240
246
  {
241
247
  "name": "role",
@@ -262,7 +268,7 @@
262
268
  "url": "https://swiftwc.github.io/ui/web-components/glass-prominent-button"
263
269
  }
264
270
  ],
265
- "description": "### **Slots:**\n- **overlay**\n\n### **Examples:**\n**Example:**\n```html\n<button is=\"glass-prominent-button\">\n <label-view system-image=\"hand-tap\" title=\"Tap Me\"></label-view>\n</button>\n\n```",
271
+ "description": "### **Slots:**\n- **overlay**\n\n### **Examples:**\n**Creating a prominent glass button:**\n```html\n<button is=\"glass-prominent-button\">\n <label-view system-image=\"hand-tap\" title=\"Tap Me\"></label-view>\n</button>\n\n```",
266
272
  "attributes": [
267
273
  {
268
274
  "name": "role",
@@ -282,11 +288,11 @@
282
288
  ]
283
289
  },
284
290
  {
285
- "name": "hstack",
291
+ "name": "h-stack",
286
292
  "references": [
287
293
  {
288
294
  "name": "Documentation",
289
- "url": "https://swiftwc.github.io/ui/web-components/hstack"
295
+ "url": "https://swiftwc.github.io/ui/web-components/h-stack"
290
296
  }
291
297
  ],
292
298
  "description": "",
@@ -338,6 +344,7 @@
338
344
  "url": "https://swiftwc.github.io/ui/web-components/label-view"
339
345
  }
340
346
  ],
347
+ "description": "### **Slots:**\n- _default_ — Place children without a `slot` attribute inside the main block of the label.\n- **icon** — Place children with a `slot=\"icon\"` attribute in the icon block of the label.\n\n### **Examples:**\n**Creating a label with an icon image and a title:**\n```html\n<label-view system-image=\"hand-tap\"><span>Hello</span></label-view>\n\n```",
341
348
  "attributes": [
342
349
  {
343
350
  "name": "font",
@@ -356,8 +363,7 @@
356
363
  {
357
364
  "name": "truncation-mode"
358
365
  }
359
- ],
360
- "description": "### **Slots:**\n- _default_ — The default slot.\n- **icon**"
366
+ ]
361
367
  },
362
368
  {
363
369
  "name": "labeled-content",
@@ -475,6 +481,7 @@
475
481
  "url": "https://swiftwc.github.io/ui/web-components/picker-view"
476
482
  }
477
483
  ],
484
+ "description": "### **Slots:**\n- _default_ — The default slot.\n- **label**\n- **list**\n- **validity-options**\n\n### **Properties:**\n- **selection** — string\n- readonly **template** — DocumentFragment\n- readonly **pickerStyle** — \"automatic\" | \"menu\" | \"inline\" | \"navigation-link\" | \"sheet\"\n- readonly **name** — string Form participation property",
478
485
  "attributes": [
479
486
  {
480
487
  "name": "picker-style",
@@ -530,8 +537,7 @@
530
537
  }
531
538
  ]
532
539
  }
533
- ],
534
- "description": "### **Slots:**\n- _default_ — The default slot.\n- **label**\n- **list**\n- **validity-options**\n\n### **Properties:**\n- **selection** — string\n- readonly **template** — DocumentFragment\n- readonly **pickerStyle** — \"automatic\" | \"menu\" | \"inline\" | \"navigation-link\" | \"sheet\"\n- readonly **name** — string Form participation property"
540
+ ]
535
541
  },
536
542
  {
537
543
  "name": "plain-button",
@@ -751,6 +757,7 @@
751
757
  "url": "https://swiftwc.github.io/ui/web-components/toggle-view"
752
758
  }
753
759
  ],
760
+ "description": "### **Slots:**\n- **label**\n- **validity-options**\n\n### **Properties:**\n- readonly **toggleStyle** — \"button\" | \"switch\"\n- **isOn** — boolean\n- readonly **name** — string Form participation property\n- **value** — string | null",
754
761
  "attributes": [
755
762
  {
756
763
  "name": "label"
@@ -773,8 +780,7 @@
773
780
  {
774
781
  "name": "disabled"
775
782
  }
776
- ],
777
- "description": "### **Slots:**\n- **label**\n- **validity-options**\n\n### **Properties:**\n- readonly **toggleStyle** — \"button\" | \"switch\"\n- **isOn** — boolean\n- readonly **name** — string Form participation property\n- **value** — string | null"
783
+ ]
778
784
  },
779
785
  {
780
786
  "name": "tool-bar-item-group",
@@ -818,11 +824,11 @@
818
824
  "description": "### **Slots:**\n- **cancellation-action** — The item represents a cancellation action for a modal interface. Places the item in the leading edge of the top bar and on the trailing edge of the bottom bar when fine modal\n- **primary-action** — The item represents a primary action. Places the item in the trailing edge of the top bar and on the trailing edge of the bottom bar when fine modal\n- **confirmation-action** — The item represents a confirmation action for a modal interface. Places the item in the trailing edge of the top bar and on the trailing edge of the bottom bar when fine modal\n- **destructive-action** — The item represents a destructive action for a modal interface. Places the item in the leading edge of the top bar and on the leading edge of the bottom bar when fine modal\n- **top-bar-leading** — Places the item in the leading edge of the top bar\n- **top-bar-principal** — Places the item in the middle of the top bar\n- **top-bar-trailing** — Places the item in the trailing edge of the top bar\n- **bottom-bar-leading** — Places the item in the leading edge of the bottom bar\n- **bottom-bar-principal** — Places the item in the middle of the bottom bar\n- **bottom-bar-trailing** — Places the item in the trailing edge of the bottom bar"
819
825
  },
820
826
  {
821
- "name": "vkeyboard",
827
+ "name": "v-keyboard",
822
828
  "references": [
823
829
  {
824
830
  "name": "Documentation",
825
- "url": "https://swiftwc.github.io/ui/web-components/vkeyboard"
831
+ "url": "https://swiftwc.github.io/ui/web-components/v-keyboard"
826
832
  }
827
833
  ],
828
834
  "description": "BUG: Safari on IOS reports inaccurate innerHeight (which is what we really want) on orientationchange.\nSo we live with a pescy body-scrollbar that shows up on resize on desktops.\n---",
@@ -839,11 +845,11 @@
839
845
  ]
840
846
  },
841
847
  {
842
- "name": "vstack",
848
+ "name": "v-stack",
843
849
  "references": [
844
850
  {
845
851
  "name": "Documentation",
846
- "url": "https://swiftwc.github.io/ui/web-components/vstack"
852
+ "url": "https://swiftwc.github.io/ui/web-components/v-stack"
847
853
  }
848
854
  ],
849
855
  "description": "",
@@ -1,25 +0,0 @@
1
- /**
2
- * @summary A message with a title and extra information that you show when part of your app can’t be used.
3
- *
4
- * @example <content-unavailable-view search></content-unavailable-view>
5
- *
6
- * @example <content-unavailable-view search="foo"></content-unavailable-view>
7
- *
8
- * @example <content-unavailable-view padding><label-view title="No Mail"><i class="ph ph-tray" slot="icon" foreground="secondary"></i></label-view><label-view title="New mails you receive will appear here." foreground="secondary" slot="description"></label-view><button is="borderless-button" type="button" tabindex="0" slot="actions"><label-view title="Switch Account"></label-view></button></content-unavailable-view>
9
- *
10
- * @example <content-unavailable-view padding><label-view title="No Mail"><svg slot="icon" foreground="secondary" ...>...</svg></label-view><label-view title="New mails you receive will appear here." foreground="secondary" slot="description"></label-view><button is="borderless-button" type="button" tabindex="0" slot="actions"><label-view title="Switch Account"></label-view></button></content-unavailable-view>
11
- *
12
- * @slot — The default slot.
13
- * @slot description
14
- * @slot actions
15
- *
16
- */
17
- export declare class ContentUnavailableView extends HTMLElement {
18
- #private;
19
- static get observedAttributes(): string[];
20
- static get template(): DocumentFragment;
21
- constructor();
22
- attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
23
- disconnectedCallback(): void;
24
- connectedCallback(): void;
25
- }