@atomic-ui/blocks 0.13.2 → 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.
- package/README.md +15 -15
- package/custom-elements.json +2961 -9573
- package/dist/{chunk-B6I3GVJ5.js → chunk-3G3NP4UC.js} +9 -4
- package/dist/chunk-3G3NP4UC.js.map +1 -0
- package/dist/{chunk-H262HKSL.js → chunk-7OFH762N.js} +53 -23
- package/dist/chunk-7OFH762N.js.map +1 -0
- package/dist/{chunk-WTVF3JRL.js → chunk-GDATDR2Q.js} +24 -7
- package/dist/chunk-GDATDR2Q.js.map +1 -0
- package/dist/chunk-GQ2I44OU.js +226 -0
- package/dist/chunk-GQ2I44OU.js.map +1 -0
- package/dist/chunk-HISF6RYK.js +199 -0
- package/dist/chunk-HISF6RYK.js.map +1 -0
- package/dist/{chunk-53V2GY6L.js → chunk-LJGOTYDJ.js} +76 -69
- package/dist/chunk-LJGOTYDJ.js.map +1 -0
- package/dist/{chunk-WIVKJL64.js → chunk-OBBPBN4S.js} +73 -164
- package/dist/chunk-OBBPBN4S.js.map +1 -0
- package/dist/chunk-OHXEZPBB.js +109 -0
- package/dist/chunk-OHXEZPBB.js.map +1 -0
- package/dist/{chunk-FNGN2F6Y.js → chunk-VOONXP5H.js} +30 -59
- package/dist/chunk-VOONXP5H.js.map +1 -0
- package/dist/chunk-XSKGWT2D.js +84 -0
- package/dist/chunk-XSKGWT2D.js.map +1 -0
- package/dist/components/changelog.d.ts +0 -288
- package/dist/components/changelog.js +3 -12
- package/dist/components/estimator.js +1 -1
- package/dist/components/g2-case.d.ts +8 -1
- package/dist/components/g2-case.js +1 -1
- package/dist/components/g2-site.d.ts +49 -41
- package/dist/components/g2-site.js +1 -3
- package/dist/components/journey.d.ts +13 -2
- package/dist/components/journey.js +1 -1
- package/dist/components/marketing.d.ts +0 -283
- package/dist/components/marketing.js +3 -13
- package/dist/components/organisms.d.ts +0 -489
- package/dist/components/organisms.js +3 -19
- package/dist/components/selling.d.ts +0 -255
- package/dist/components/selling.js +3 -15
- package/dist/components/site.d.ts +8 -53
- package/dist/components/site.js +3 -5
- package/dist/components/studio.d.ts +42 -98
- package/dist/components/studio.js +1 -3
- package/dist/index.d.ts +9 -13
- package/dist/index.js +25 -103
- package/dist/index.js.map +1 -1
- package/dist/standalone/atomic-ui-blocks.js +832 -1622
- package/dist/standalone/atomic-ui-blocks.js.map +4 -4
- package/dist/standalone/index.html +18 -26
- package/package.json +3 -3
- package/specimen/index.html +18 -26
- package/dist/chunk-53V2GY6L.js.map +0 -1
- package/dist/chunk-B6I3GVJ5.js.map +0 -1
- package/dist/chunk-FNGN2F6Y.js.map +0 -1
- package/dist/chunk-H262HKSL.js.map +0 -1
- package/dist/chunk-IT2NA25D.js +0 -571
- package/dist/chunk-IT2NA25D.js.map +0 -1
- package/dist/chunk-MMADM6OW.js +0 -782
- package/dist/chunk-MMADM6OW.js.map +0 -1
- package/dist/chunk-NHWD2LUR.js +0 -255
- package/dist/chunk-NHWD2LUR.js.map +0 -1
- package/dist/chunk-R7SSIE2E.js +0 -362
- package/dist/chunk-R7SSIE2E.js.map +0 -1
- package/dist/chunk-WIVKJL64.js.map +0 -1
- package/dist/chunk-WTVF3JRL.js.map +0 -1
- package/dist/chunk-XB6FD4SF.js +0 -438
- package/dist/chunk-XB6FD4SF.js.map +0 -1
- package/dist/chunk-YXMXLVK7.js +0 -230
- package/dist/chunk-YXMXLVK7.js.map +0 -1
- package/dist/chunk-ZD75GU6J.js +0 -75
- package/dist/chunk-ZD75GU6J.js.map +0 -1
- package/dist/chunk-ZODL5HD4.js +0 -535
- package/dist/chunk-ZODL5HD4.js.map +0 -1
- package/dist/components/card-grid.d.ts +0 -72
- package/dist/components/card-grid.js +0 -7
- package/dist/components/card-grid.js.map +0 -1
- package/dist/components/property.d.ts +0 -389
- package/dist/components/property.js +0 -17
- package/dist/components/property.js.map +0 -1
- package/dist/components/scene.d.ts +0 -138
- package/dist/components/scene.js +0 -7
- package/dist/components/scene.js.map +0 -1
- package/dist/components/scrubber.d.ts +0 -86
- package/dist/components/scrubber.js +0 -7
- 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
|
-
|
|
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
|
|
12
|
-
|
|
|
13
|
-
|
|
|
14
|
-
|
|
|
15
|
-
|
|
|
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
|
-
|
|
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-
|
|
32
|
-
<impakt-
|
|
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 {
|
|
50
|
+
import { SectionHead, WorkList, SiteHeader } from '@atomic-ui/ui-react/blocks';
|
|
52
51
|
|
|
53
|
-
<SiteHeader brand="
|
|
54
|
-
<
|
|
55
|
-
<
|
|
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 `
|
|
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
|
|