@atomic-ui/blocks 0.14.0 → 0.15.0

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 (69) hide show
  1. package/README.md +15 -15
  2. package/custom-elements.json +2978 -9654
  3. package/dist/chunk-GQ2I44OU.js +226 -0
  4. package/dist/chunk-GQ2I44OU.js.map +1 -0
  5. package/dist/chunk-HISF6RYK.js +199 -0
  6. package/dist/chunk-HISF6RYK.js.map +1 -0
  7. package/dist/{chunk-Q366ZM2X.js → chunk-LJGOTYDJ.js} +17 -41
  8. package/dist/chunk-LJGOTYDJ.js.map +1 -0
  9. package/dist/{chunk-BW5ZMKES.js → chunk-OBBPBN4S.js} +17 -144
  10. package/dist/chunk-OBBPBN4S.js.map +1 -0
  11. package/dist/chunk-OHXEZPBB.js +109 -0
  12. package/dist/chunk-OHXEZPBB.js.map +1 -0
  13. package/dist/{chunk-NZQZRBKV.js → chunk-VOONXP5H.js} +15 -57
  14. package/dist/chunk-VOONXP5H.js.map +1 -0
  15. package/dist/chunk-XSKGWT2D.js +84 -0
  16. package/dist/chunk-XSKGWT2D.js.map +1 -0
  17. package/dist/components/changelog.d.ts +0 -288
  18. package/dist/components/changelog.js +3 -12
  19. package/dist/components/g2-site.d.ts +27 -40
  20. package/dist/components/g2-site.js +1 -3
  21. package/dist/components/marketing.d.ts +0 -283
  22. package/dist/components/marketing.js +3 -13
  23. package/dist/components/organisms.d.ts +0 -489
  24. package/dist/components/organisms.js +3 -19
  25. package/dist/components/selling.d.ts +0 -255
  26. package/dist/components/selling.js +3 -15
  27. package/dist/components/site.d.ts +6 -52
  28. package/dist/components/site.js +3 -5
  29. package/dist/components/studio.d.ts +10 -95
  30. package/dist/components/studio.js +1 -3
  31. package/dist/index.d.ts +9 -13
  32. package/dist/index.js +23 -101
  33. package/dist/index.js.map +1 -1
  34. package/dist/standalone/atomic-ui-blocks.js +751 -1642
  35. package/dist/standalone/atomic-ui-blocks.js.map +4 -4
  36. package/dist/standalone/index.html +18 -26
  37. package/package.json +3 -3
  38. package/specimen/index.html +18 -26
  39. package/dist/chunk-BW5ZMKES.js.map +0 -1
  40. package/dist/chunk-GZTBAT6P.js +0 -574
  41. package/dist/chunk-GZTBAT6P.js.map +0 -1
  42. package/dist/chunk-NHWD2LUR.js +0 -255
  43. package/dist/chunk-NHWD2LUR.js.map +0 -1
  44. package/dist/chunk-NZQZRBKV.js.map +0 -1
  45. package/dist/chunk-Q366ZM2X.js.map +0 -1
  46. package/dist/chunk-R7SSIE2E.js +0 -362
  47. package/dist/chunk-R7SSIE2E.js.map +0 -1
  48. package/dist/chunk-XB6FD4SF.js +0 -438
  49. package/dist/chunk-XB6FD4SF.js.map +0 -1
  50. package/dist/chunk-YXMXLVK7.js +0 -230
  51. package/dist/chunk-YXMXLVK7.js.map +0 -1
  52. package/dist/chunk-ZD75GU6J.js +0 -75
  53. package/dist/chunk-ZD75GU6J.js.map +0 -1
  54. package/dist/chunk-ZM2HLQOG.js +0 -783
  55. package/dist/chunk-ZM2HLQOG.js.map +0 -1
  56. package/dist/chunk-ZODL5HD4.js +0 -535
  57. package/dist/chunk-ZODL5HD4.js.map +0 -1
  58. package/dist/components/card-grid.d.ts +0 -72
  59. package/dist/components/card-grid.js +0 -7
  60. package/dist/components/card-grid.js.map +0 -1
  61. package/dist/components/property.d.ts +0 -389
  62. package/dist/components/property.js +0 -17
  63. package/dist/components/property.js.map +0 -1
  64. package/dist/components/scene.d.ts +0 -138
  65. package/dist/components/scene.js +0 -7
  66. package/dist/components/scene.js.map +0 -1
  67. package/dist/components/scrubber.d.ts +0 -86
  68. package/dist/components/scrubber.js +0 -7
  69. package/dist/components/scrubber.js.map +0 -1
package/README.md CHANGED
@@ -6,16 +6,15 @@ This package builds on `@atomic-ui/ui`. Every block extends its `ImpaktElement`
6
6
 
7
7
  ## What is here
8
8
 
9
- Thirty-seven blocks.
9
+ Twenty-nine blocks, the ones Impakt's site and tools use. The rest were removed in 0.14.0 (#86); the CHANGELOG lists each with its replacement.
10
10
 
11
- | Group | Blocks |
12
- | ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
13
- | Marketing | `impakt-hero`, `impakt-feature-list`, `impakt-quote`, `impakt-stat`, `impakt-announcement`, `impakt-search-bar`, `impakt-media-split`, `impakt-cta-banner`, `impakt-reviews`, `impakt-newsletter`, `impakt-carousel`, `impakt-gallery`, `impakt-logo-cloud`, `impakt-steps`, `impakt-card-grid`, `impakt-video`, `impakt-before-after`, `impakt-sticky-bar` |
14
- | Property and selling | `impakt-site-plan`, `impakt-mortgage-calculator`, `impakt-stamp-duty-calculator`, `impakt-affordability-calculator`, `impakt-plan-comparison`, `impakt-regulatory-notice`, `impakt-contact-block`, `impakt-location-card`, `impakt-estimator` |
15
- | The site frame and scenes | `impakt-site-header`, `impakt-site-footer`, `impakt-wordmark`, `impakt-scene`, `impakt-scrubber` |
16
- | Changelog | `impakt-release-card`, `impakt-release-list`, `impakt-branch-list`, `impakt-check-list`, `impakt-branch-timeline` |
11
+ | Group | Blocks |
12
+ | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
13
+ | Site | `impakt-site-header`, `impakt-site-footer`, `impakt-section-head`, `impakt-stage-tag`, `impakt-highlight`, `impakt-cursor`, `impakt-journey-button`, `impakt-service-card`, `impakt-work-list`, `impakt-stat-row`, `impakt-steps`, `impakt-feature-list`, `impakt-faq`, `impakt-offer`, `impakt-post-card`, `impakt-office-card`, `impakt-column-list`, `impakt-numbered-list`, `impakt-facts`, `impakt-branch-list`, `impakt-estimator`, `impakt-plan-comparison`, `impakt-video` |
14
+ | Case study | `impakt-browser-frame`, `impakt-callout`, `impakt-hypothesis-card`, `impakt-process-line`, `impakt-week-strip` |
15
+ | Tools | `impakt-flow` |
17
16
 
18
- The page frame itself, `impakt-page` and `impakt-section`, and the parts a block is built from, such as `impakt-chip`, `impakt-badge` and `impakt-tabs`, are product components and stay in `@atomic-ui/ui`.
17
+ `impakt-section` and the parts a block is built from, such as `impakt-chip`, `impakt-badge` and `impakt-tabs`, are product components and stay in `@atomic-ui/ui`.
19
18
 
20
19
  ## How each kind of product uses it
21
20
 
@@ -28,8 +27,8 @@ A product with no build step copies two files into its `public` folder beside th
28
27
  <script type="module" src="/atomic-ui.js"></script>
29
28
  <script type="module" src="/atomic-ui-blocks.js"></script>
30
29
 
31
- <impakt-hero heading="Homes made for the way you live" lead="Two, three and four bedroom homes."></impakt-hero>
32
- <impakt-card-grid items='[{"heading":"Larkfield Meadows","href":"/meadows"}]'></impakt-card-grid>
30
+ <impakt-section-head label="Services" heading="Six ways we help."></impakt-section-head>
31
+ <impakt-work-list label="Selected work" items='[{"name":"Harbour","meta":"Web platform · Vehicle import","href":"/work/harbour"}]'></impakt-work-list>
33
32
  ```
34
33
 
35
34
  The file is `dist/standalone/atomic-ui-blocks.js`, also exported as `@atomic-ui/blocks/standalone`. It is one minified ES module that defines every block when it loads, with its source map beside it. It does not bundle `@atomic-ui/ui` or Lit. It imports both from `./atomic-ui.js`, which `@atomic-ui/ui`'s standalone file exports for it, so the two files must sit in the same folder. A page therefore carries one copy of Lit and of the base, and each product component is defined once, by the file that owns it. At 0.5.0 it is about 150 KB, or 35 KB gzipped, on top of `atomic-ui.js`.
@@ -48,14 +47,15 @@ pnpm add @atomic-ui/ui @atomic-ui/blocks @atomic-ui/ui-react
48
47
 
49
48
  ```tsx
50
49
  import { Button } from '@atomic-ui/ui-react';
51
- import { Hero, CardGrid, SiteHeader } from '@atomic-ui/ui-react/blocks';
50
+ import { SectionHead, WorkList, SiteHeader } from '@atomic-ui/ui-react/blocks';
52
51
 
53
- <SiteHeader brand="Larkfield" links={links} actionText="Book a visit" onAction={book} />
54
- <Hero heading="Homes made for the way you live"><Button slot="actions" href="/homes">See the homes</Button></Hero>
55
- <CardGrid items={developments} />
52
+ <SiteHeader brand="Impakt" links={links} actionText="Book a call" onAction={book} />
53
+ <SectionHead label="Services" heading="Six ways we help." />
54
+ <WorkList label="Selected work" items={work} />
55
+ <Button href="/contact">Start a project</Button>
56
56
  ```
57
57
 
58
- A Vue app imports the components from `@atomic-ui/ui-vue/blocks`, such as `ImpaktHero` and `ImpaktCardGrid`, and can register them all with `app.use(AtomicUIBlocks)`. The `isCustomElement` setting that treats every `impakt-` tag as a custom element covers the blocks too. Importing either entry also types the blocks' tags, for React 19's JSX and for Vue's `GlobalComponents`. `@atomic-ui/blocks` is an optional peer dependency of both binding packages, so it is installed only by an app that uses the blocks.
58
+ A Vue app imports the components from `@atomic-ui/ui-vue/blocks`, such as `ImpaktSectionHead` and `ImpaktWorkList`, and can register them all with `app.use(AtomicUIBlocks)`. The `isCustomElement` setting that treats every `impakt-` tag as a custom element covers the blocks too. Importing either entry also types the blocks' tags, for React 19's JSX and for Vue's `GlobalComponents`. `@atomic-ui/blocks` is an optional peer dependency of both binding packages, so it is installed only by an app that uses the blocks.
59
59
 
60
60
  An Angular app imports this package once and writes the tags under `CUSTOM_ELEMENTS_SCHEMA`. The blocks need no value accessors, because the form fields that do are product components.
61
61