craft-library 0.7.1 → 0.7.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.
- package/dist/card-load.js +1 -1
- package/dist/card-mount.js +1 -1
- package/dist/card.cdn.js +1 -1
- package/dist/card.js +1 -1
- package/dist/cdn.js +1 -1
- package/dist/elements.js +1 -1
- package/dist/glassnav.js +1 -1
- package/dist/index.js +1 -1
- package/dist/like.js +1 -1
- package/dist/magnet.js +1 -1
- package/dist/panorama-assets.js +2 -2
- package/dist/panorama-mount.js +1 -1
- package/dist/panorama.js +1 -1
- package/dist/piggy-load.js +1 -1
- package/dist/piggy-mount.js +1 -1
- package/dist/piggy.cdn.js +1 -1
- package/dist/piggy.js +1 -1
- package/dist/pin-load.js +1 -1
- package/dist/pin-mount.js +1 -1
- package/dist/pin.cdn.js +1 -1
- package/dist/pin.js +1 -1
- package/dist/sign.js +1 -1
- package/dist/style.js +1 -1
- package/dist/thinking.js +1 -1
- package/dist/tokens-load.js +1 -1
- package/dist/tokens-mount.js +1 -1
- package/dist/tokens.cdn.js +1 -1
- package/dist/tokens.js +1 -1
- package/package.json +5 -1
package/dist/card-load.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! Sara Lobo Library · craft-library 0.7.
|
|
1
|
+
/*! Sara Lobo Library · craft-library 0.7.2 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
|
|
2
2
|
// where the card comes from: for bundlers, the package's card.js (it imports the `three` dependency)
|
|
3
3
|
export const loadCard = () => import('./card.js');
|
package/dist/card-mount.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Sara Lobo Library · craft-library 0.7.
|
|
1
|
+
/*! Sara Lobo Library · craft-library 0.7.2 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
|
|
2
2
|
// Iridescent card: the mount around the library's card.js. card.js, and three.js with it, loads only when a card is
|
|
3
3
|
// mounted, so the other pieces stay light.
|
|
4
4
|
import { loadCard } from './card-load.js';
|
package/dist/card.cdn.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Sara Lobo Library · craft-library 0.7.
|
|
1
|
+
/*! Sara Lobo Library · craft-library 0.7.2 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
|
|
2
2
|
// Iridescent card · Sara Lobo Library
|
|
3
3
|
// A metal credit card in 3D: brushed iridescent plate, a fine struck frame along the edge, a chip and the Visa mark.
|
|
4
4
|
// It arrives with a slow half turn, from its back to its face, and a tap turns it over to show the numbers.
|
package/dist/card.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Sara Lobo Library · craft-library 0.7.
|
|
1
|
+
/*! Sara Lobo Library · craft-library 0.7.2 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
|
|
2
2
|
// Iridescent card · Sara Lobo Library
|
|
3
3
|
// A metal credit card in 3D: brushed iridescent plate, a fine struck frame along the edge, a chip and the Visa mark.
|
|
4
4
|
// It arrives with a slow half turn, from its back to its face, and a tap turns it over to show the numbers.
|
package/dist/cdn.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Sara Lobo Library · craft-library 0.7.
|
|
1
|
+
/*! Sara Lobo Library · craft-library 0.7.2 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
|
|
2
2
|
// the one-file build for a <script> tag: registers the ten tags and exposes the mount functions (the 3D pieces' scenes
|
|
3
3
|
// are fetched from next to this file the first time one is mounted, and so are the Panorama's clip and pictures)
|
|
4
4
|
import { mountLike, mountMagnet, mountGlassNav, mountIridescentCard, mountPiggyBank, mountThinking, mountPanoramaReel, mountMapPin, mountTokenWheel } from './elements.js';
|
package/dist/elements.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Sara Lobo Library · craft-library 0.7.
|
|
1
|
+
/*! Sara Lobo Library · craft-library 0.7.2 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
|
|
2
2
|
// <glass-nav>, <like-button>, <magnetic-icon>, <iridescent-card>, <piggy-bank>, <magic-sphere>, <sweep-sphere>, <panorama-reel>, <map-pin> and <token-wheel>: the
|
|
3
3
|
// pieces as HTML tags, for pages without React. They render into the page itself (no shadow root), so the glass can
|
|
4
4
|
// blend with what is behind it.
|
package/dist/glassnav.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Sara Lobo Library · craft-library 0.7.
|
|
1
|
+
/*! Sara Lobo Library · craft-library 0.7.2 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
|
|
2
2
|
// Liquid glass nav bar · Craft Library, by Sara Lobo. The bar's CSS, markup and engine from the library, unchanged,
|
|
3
3
|
// around a mount.
|
|
4
4
|
import { css } from './style.js';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Sara Lobo Library · craft-library 0.7.
|
|
1
|
+
/*! Sara Lobo Library · craft-library 0.7.2 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
|
|
2
2
|
// The pieces as React components. Each renders an empty host and mounts the library's own piece into it, so what
|
|
3
3
|
// shows is the same markup, CSS and motion as on the site.
|
|
4
4
|
import { createElement, useEffect, useRef } from 'react';
|
package/dist/like.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Sara Lobo Library · craft-library 0.7.
|
|
1
|
+
/*! Sara Lobo Library · craft-library 0.7.2 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
|
|
2
2
|
// Bursting heart · Craft Library, by Sara Lobo. like.css and like.js from the library, unchanged, around a mount.
|
|
3
3
|
import { css } from './style.js';
|
|
4
4
|
const CSS = "/* Bursting heart · Sara Lobo Library\n The heart eases out of sight, a disc grows and hollows into a ring, 14 dots and 2 or 3 small hearts fly out,\n and the heart springs back full. Every motion runs on its own property with its own curve; where two curves\n meet, both are at rest there, so nothing hitches. Unliking only takes the colour away. Pairs with like.js. */\n\n:root {\n --like-heart: #FF6767; /* the liked heart, filled (Figma: General / Heart) */\n --like-color: #F91880; /* the disc */\n --like-ring: #CC8EF5; /* the ring as it opens */\n --like-spring: cubic-bezier(.34, 1.4, .64, 1); /* fallback for browsers without linear() */\n}\n\n/* a damped spring (damping .55, 700 ms): about 12% over, a short settle, at rest at the end */\n@supports (animation-timing-function: linear(0, 1)) {\n :root {\n --like-spring: linear(0, 0.034, 0.12, 0.24, 0.378, 0.52, 0.655, 0.778, 0.883, 0.968, 1.033, 1.079, 1.108, 1.123, 1.126, 1.12, 1.108, 1.092, 1.075, 1.057, 1.04, 1.025, 1.012, 1.002, 0.994, 0.989, 0.986, 0.984, 0.984, 0.985, 0.987, 0.989, 0.991, 0.993, 0.995, 0.997, 0.999, 1, 1.001, 1.001, 1);\n }\n}\n\n/* lets the ring's hole open smoothly (without it, the ring leaves at once) */\n@property --like-hole {\n syntax: '<percentage>';\n inherits: false;\n initial-value: 0%;\n}\n\n/* the button: a 40px circle in black at 60%, made to sit over images */\n.like {\n all: unset;\n box-sizing: border-box;\n position: relative;\n display: inline-block;\n flex: none;\n width: 40px;\n height: 40px;\n border-radius: 50%;\n background: rgba(0, 0, 0, .6);\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n transition: background .2s ease, transform .22s cubic-bezier(.2, .8, .2, 1);\n}\n.like:hover {\n background: rgba(0, 0, 0, .72);\n}\n.like:active {\n transform: scale(.94);\n}\n.like:focus-visible {\n outline: 2px solid #fff;\n outline-offset: 2px;\n}\n.like-icon {\n position: absolute;\n left: 8px;\n top: 9px;\n width: 24px;\n height: 24px;\n}\n.like-icon svg {\n display: block;\n overflow: visible;\n}\n.like-line {\n fill: none;\n stroke: #fff;\n stroke-width: 2;\n stroke-linecap: round;\n stroke-linejoin: round;\n transition: stroke .24s cubic-bezier(.4, 0, .2, 1);\n}\n.like-fill {\n fill: var(--like-heart);\n opacity: 0;\n transition: opacity .24s cubic-bezier(.4, 0, .2, 1);\n}\n.like[aria-pressed=\"true\"] .like-line {\n stroke: var(--like-heart);\n}\n.like[aria-pressed=\"true\"] .like-fill {\n opacity: 1;\n}\n/* the colour swaps while the heart is out of sight */\n.like.is-liking .like-line,\n.like.is-liking .like-fill {\n transition-duration: 0s;\n transition-delay: .3s;\n}\n/* everything that flies out starts from the heart's centre */\n.like-fx {\n position: absolute;\n left: 20px;\n top: 21px;\n width: 0;\n height: 0;\n pointer-events: none;\n}\n\n/* the heart: out of sight in 120 ms, waits inside the disc, then the spring brings it back full */\n.like.is-liking .like-icon {\n animation: like-vanish .12s cubic-bezier(.5, 0, .75, 0) both, like-return .7s var(--like-spring) .32s forwards;\n}\n@keyframes like-vanish {\n from {\n scale: 1;\n opacity: 1;\n }\n to {\n scale: .15;\n opacity: 0;\n }\n}\n@keyframes like-return {\n from {\n scale: .15;\n opacity: 0;\n }\n to {\n scale: 1;\n opacity: 1;\n }\n}\n\n/* unliking: a soft dip and back while the colour leaves, at rest at both ends */\n.like.is-unliking .like-icon {\n animation: like-dip .34s cubic-bezier(.37, 0, .63, 1);\n}\n@keyframes like-dip {\n 0% {\n scale: 1;\n }\n 40% {\n scale: .86;\n }\n 100% {\n scale: 1;\n }\n}\n\n/* the ring: one long ease-out growth (to 110%), the tint, and a hole that opens before the growth ends */\n.like-ring {\n position: absolute;\n left: -23px;\n top: -23px;\n width: 46px;\n height: 46px;\n border-radius: 50%;\n background: var(--like-color);\n scale: 0;\n -webkit-mask: radial-gradient(circle closest-side, transparent var(--like-hole), #000 calc(var(--like-hole) + 2%));\n mask: radial-gradient(circle closest-side, transparent var(--like-hole), #000 calc(var(--like-hole) + 2%));\n}\n.like.is-liking .like-ring {\n animation: like-ring-grow .56s cubic-bezier(.22, 1, .36, 1) .06s both, like-ring-tint .3s ease-out .06s both, like-ring-open .36s cubic-bezier(.33, 1, .68, 1) .28s both;\n}\n@keyframes like-ring-grow {\n from {\n scale: 0;\n }\n to {\n scale: 1.1;\n }\n}\n@keyframes like-ring-tint {\n from {\n background-color: var(--like-color);\n }\n to {\n background-color: var(--like-ring);\n }\n}\n@keyframes like-ring-open {\n from {\n --like-hole: 0%;\n }\n to {\n --like-hole: 100%;\n }\n}\n\n/* the dots: 7 pairs around the ring. They fly out on a long ease-out, swell and shrink on their own clock,\n and the whole spray turns 12° as it goes */\n.like-dots i {\n position: absolute;\n left: 0;\n top: 0;\n width: 0;\n height: 0;\n transform: rotate(var(--a));\n}\n.like-dots b {\n position: absolute;\n left: -2.5px;\n top: -2.5px;\n width: 5px;\n height: 5px;\n border-radius: 50%;\n background: var(--d1);\n scale: 0;\n}\n.like-dots b + b {\n left: -1.75px;\n top: -1.75px;\n width: 3.5px;\n height: 3.5px;\n background: var(--d2);\n}\n.like-dots i:nth-child(1) { --a: 0deg; --d1: #F91880; --d2: #FF7AB6; }\n.like-dots i:nth-child(2) { --a: 51.43deg; --d1: #FFAD1F; --d2: #FFD166; }\n.like-dots i:nth-child(3) { --a: 102.86deg; --d1: #1D9BF0; --d2: #7CC6FE; }\n.like-dots i:nth-child(4) { --a: 154.29deg; --d1: #A78BFA; --d2: #C4B5FD; }\n.like-dots i:nth-child(5) { --a: 205.71deg; --d1: #00BA7C; --d2: #6EE7B7; }\n.like-dots i:nth-child(6) { --a: 257.14deg; --d1: #F97316; --d2: #FDBA74; }\n.like-dots i:nth-child(7) { --a: 308.57deg; --d1: #F91880; --d2: #CC8EF5; }\n.like.is-liking .like-dots i {\n animation: like-swirl .9s cubic-bezier(.22, 1, .36, 1) .34s both;\n}\n.like.is-liking .like-dots b {\n animation: like-fly .62s cubic-bezier(.16, 1, .3, 1) .34s both, like-dot .62s .34s both;\n}\n.like.is-liking .like-dots b + b {\n animation-name: like-fly-2, like-dot;\n animation-delay: .38s;\n}\n@keyframes like-swirl {\n from {\n rotate: 0deg;\n }\n to {\n rotate: 12deg;\n }\n}\n@keyframes like-fly {\n from {\n translate: 0 -20px;\n }\n to {\n translate: 0 -33px;\n }\n}\n@keyframes like-fly-2 {\n from {\n translate: 4.5px -18px;\n }\n to {\n translate: 8px -29px;\n }\n}\n@keyframes like-dot {\n 0% {\n scale: 0;\n animation-timing-function: cubic-bezier(.33, 1, .68, 1);\n }\n 24% {\n scale: 1;\n animation-timing-function: cubic-bezier(.32, 0, .67, 0);\n }\n 100% {\n scale: 0;\n }\n}\n\n/* the small hearts (like.js adds them): the rise is one unbroken ease-out, the sway a sine that rests at its turns,\n and size and fade keep their own clocks */\n.like-float {\n position: absolute;\n left: 0;\n top: -6px;\n opacity: 0;\n animation: like-rise var(--dur) cubic-bezier(.33, 1, .68, 1) var(--dl) both, like-fade var(--dur) var(--dl) both;\n}\n.like-float span {\n display: block;\n animation: like-sway var(--dur) cubic-bezier(.37, 0, .63, 1) var(--dl) both, like-grow var(--dur) var(--dl) both;\n}\n.like-float svg {\n display: block;\n width: var(--s);\n height: var(--s);\n margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);\n fill: var(--fc);\n}\n@keyframes like-rise {\n from {\n translate: 0 0;\n }\n to {\n translate: 0 var(--dy);\n }\n}\n@keyframes like-fade {\n 0% {\n opacity: 0;\n animation-timing-function: cubic-bezier(.33, 1, .68, 1);\n }\n 14% {\n opacity: 1;\n animation-timing-function: linear;\n }\n 50% {\n opacity: 1;\n animation-timing-function: cubic-bezier(.37, 0, .63, 1);\n }\n 100% {\n opacity: 0;\n }\n}\n@keyframes like-sway {\n 0% {\n translate: 0 0;\n rotate: 0deg;\n }\n 33% {\n translate: var(--dx) 0;\n rotate: var(--r);\n }\n 70% {\n translate: calc(var(--dx) * -.6) 0;\n rotate: calc(var(--r) * -.6);\n }\n 100% {\n translate: calc(var(--dx) * .25) 0;\n rotate: 0deg;\n }\n}\n@keyframes like-grow {\n 0% {\n scale: .3;\n animation-timing-function: cubic-bezier(.34, 1.56, .64, 1);\n }\n 24% {\n scale: 1;\n animation-timing-function: cubic-bezier(.32, 0, .67, 0);\n }\n 100% {\n scale: .8;\n }\n}\n\n/* less motion: only the colour changes */\n@media (prefers-reduced-motion: reduce) {\n .like,\n .like * {\n animation: none !important;\n }\n}\n";
|
package/dist/magnet.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Sara Lobo Library · craft-library 0.7.
|
|
1
|
+
/*! Sara Lobo Library · craft-library 0.7.2 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
|
|
2
2
|
// Magnetic icon · Craft Library, by Sara Lobo. magnet.css and magnet.js from the library, unchanged, around a mount.
|
|
3
3
|
import { css } from './style.js';
|
|
4
4
|
const CSS = "/* Magnetic icon · Sara Lobo Library\n A dark disc with a brushed-metal rim and a search glyph (Figma: 40×40). Near the cursor the rim acts like metal\n near a strong magnet: the disc is drawn toward the pointer, the strained rim creases and trembles, its tip cracks\n into shards, and small voxels break off and fly to the pointer. Pairs with magnet.js.\n Everything is drawn in a 40-unit box, so --mag-size scales the whole piece, the pull included. */\n\n.mag {\n all: unset;\n position: relative;\n display: inline-grid;\n place-items: center;\n width: var(--mag-size, 40px);\n height: var(--mag-size, 40px);\n border-radius: 50%;\n color: #fff;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n transition: transform .2s cubic-bezier(.2, .8, .2, 1);\n}\n.mag:active {\n transform: scale(.94);\n}\n.mag:focus-visible {\n outline: 2px solid #9DB8FF;\n outline-offset: 4px;\n}\n/* the disc and its rim, redrawn by magnet.js; the stretch reaches past the button */\n.mag-ring {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n overflow: visible;\n pointer-events: none;\n}\n/* the shards and voxels: 46 units of room on every side of the 40-unit button (46 / 40 = 115%) */\n.mag-dust {\n position: absolute;\n left: -115%;\n top: -115%;\n width: 330%;\n height: 330%;\n pointer-events: none;\n}\n.mag-icon {\n position: relative;\n display: block;\n width: 50%;\n height: 50%;\n}\n";
|
package/dist/panorama-assets.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! Sara Lobo Library · craft-library 0.7.
|
|
1
|
+
/*! Sara Lobo Library · craft-library 0.7.2 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
|
|
2
2
|
// where the Panorama's own clip and pictures are: jsDelivr, at this version of the package
|
|
3
|
-
export const ASSETS = 'https://cdn.jsdelivr.net/npm/craft-library@0.7.
|
|
3
|
+
export const ASSETS = 'https://cdn.jsdelivr.net/npm/craft-library@0.7.2/dist/panorama/';
|
package/dist/panorama-mount.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Sara Lobo Library · craft-library 0.7.
|
|
1
|
+
/*! Sara Lobo Library · craft-library 0.7.2 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
|
|
2
2
|
// Panorama: the mount around the library's panorama.js. With no video and no stills it shows the library's own clip
|
|
3
3
|
// and pictures, which ship with the package in dist/panorama/ (see panorama-assets.js for where they are read from).
|
|
4
4
|
import { mountPanorama } from './panorama.js';
|
package/dist/panorama.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Sara Lobo Library · craft-library 0.7.
|
|
1
|
+
/*! Sara Lobo Library · craft-library 0.7.2 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
|
|
2
2
|
// Panorama · Sara Lobo Library
|
|
3
3
|
// A hero for moving pictures. A clip opens full-bleed under letterbox bars while the title tracks in; then the clip shrinks
|
|
4
4
|
// into one screen of a dome of monitors that surrounds you, and the other screens arrive in a wave around it. The pointer
|
package/dist/piggy-load.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! Sara Lobo Library · craft-library 0.7.
|
|
1
|
+
/*! Sara Lobo Library · craft-library 0.7.2 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
|
|
2
2
|
// where the piggy bank comes from: for bundlers, the package's piggy.js (it imports the `three` dependency)
|
|
3
3
|
export const loadPiggy = () => import('./piggy.js');
|
package/dist/piggy-mount.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Sara Lobo Library · craft-library 0.7.
|
|
1
|
+
/*! Sara Lobo Library · craft-library 0.7.2 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
|
|
2
2
|
// Glass piggy bank: the mount around the library's piggy.js. piggy.js, and three.js with it, loads only when a piggy
|
|
3
3
|
// bank is mounted, so the other pieces stay light.
|
|
4
4
|
import { loadPiggy } from './piggy-load.js';
|
package/dist/piggy.cdn.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Sara Lobo Library · craft-library 0.7.
|
|
1
|
+
/*! Sara Lobo Library · craft-library 0.7.2 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
|
|
2
2
|
// Piggy bank · Sara Lobo Library
|
|
3
3
|
// A congratulations moment in 3D: a frosted glass piggy bank hops in from the right with a full turn, lands on its hind
|
|
4
4
|
// feet, nearly tips over and clacks back down, rocking like the rigid glass it is. Coins pop into the air above it and
|
package/dist/piggy.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Sara Lobo Library · craft-library 0.7.
|
|
1
|
+
/*! Sara Lobo Library · craft-library 0.7.2 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
|
|
2
2
|
// Piggy bank · Sara Lobo Library
|
|
3
3
|
// A congratulations moment in 3D: a frosted glass piggy bank hops in from the right with a full turn, lands on its hind
|
|
4
4
|
// feet, nearly tips over and clacks back down, rocking like the rigid glass it is. Coins pop into the air above it and
|
package/dist/pin-load.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! Sara Lobo Library · craft-library 0.7.
|
|
1
|
+
/*! Sara Lobo Library · craft-library 0.7.2 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
|
|
2
2
|
// where the map pin comes from: for bundlers, the package's pin.js (it imports the `three` dependency)
|
|
3
3
|
export const loadPin = () => import('./pin.js');
|
package/dist/pin-mount.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Sara Lobo Library · craft-library 0.7.
|
|
1
|
+
/*! Sara Lobo Library · craft-library 0.7.2 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
|
|
2
2
|
// Map pin: the mount around the library's pin.js. pin.js, and three.js with it, loads only when a map pin is mounted,
|
|
3
3
|
// so the other pieces stay light.
|
|
4
4
|
import { loadPin } from './pin-load.js';
|
package/dist/pin.cdn.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Sara Lobo Library · craft-library 0.7.
|
|
1
|
+
/*! Sara Lobo Library · craft-library 0.7.2 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
|
|
2
2
|
/* Pin de mapa · Sara Lobo Library (saralobolibrary.com). A city map in perspective with a glass map pin: a click or a tap
|
|
3
3
|
on a street sends the pin flying to the nearest curb, where it sticks its tip in; the map is in focus there and soft
|
|
4
4
|
further away, the streets carry their names, and a card under the map names the address and confirms it.
|
package/dist/pin.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Sara Lobo Library · craft-library 0.7.
|
|
1
|
+
/*! Sara Lobo Library · craft-library 0.7.2 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
|
|
2
2
|
/* Pin de mapa · Sara Lobo Library (saralobolibrary.com). A city map in perspective with a glass map pin: a click or a tap
|
|
3
3
|
on a street sends the pin flying to the nearest curb, where it sticks its tip in; the map is in focus there and soft
|
|
4
4
|
further away, the streets carry their names, and a card under the map names the address and confirms it.
|
package/dist/sign.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Sara Lobo Library · craft-library 0.7.
|
|
1
|
+
/*! Sara Lobo Library · craft-library 0.7.2 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
|
|
2
2
|
// Where the pieces come from: one quiet line in the browser console, once per page, for the people who build with them
|
|
3
3
|
// (nothing shows on the page itself). It waits for the page to finish loading, so a page can set
|
|
4
4
|
// window.CRAFT_LIBRARY_QUIET = true (in any script, or right after importing the package) to skip it.
|
package/dist/style.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Sara Lobo Library · craft-library 0.7.
|
|
1
|
+
/*! Sara Lobo Library · craft-library 0.7.2 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
|
|
2
2
|
// each piece's CSS goes into the page once, the first time one is mounted
|
|
3
3
|
const done = new Set();
|
|
4
4
|
export function css(id, text) {
|
package/dist/thinking.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Sara Lobo Library · craft-library 0.7.
|
|
1
|
+
/*! Sara Lobo Library · craft-library 0.7.2 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
|
|
2
2
|
// Magic sphere and Sweep · Craft Library, by Sara Lobo. thinking.css and thinking.js from the library, unchanged,
|
|
3
3
|
// around a mount.
|
|
4
4
|
import { css } from './style.js';
|
package/dist/tokens-load.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! Sara Lobo Library · craft-library 0.7.
|
|
1
|
+
/*! Sara Lobo Library · craft-library 0.7.2 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
|
|
2
2
|
// where the token wheel comes from: for bundlers, the package's tokens.js (it imports the `three` dependency)
|
|
3
3
|
export const loadTokens = () => import('./tokens.js');
|
package/dist/tokens-mount.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Sara Lobo Library · craft-library 0.7.
|
|
1
|
+
/*! Sara Lobo Library · craft-library 0.7.2 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
|
|
2
2
|
// Token wheel: the mount around the library's tokens.js. tokens.js, and three.js with it, loads only when a token wheel
|
|
3
3
|
// is mounted, so the other pieces stay light.
|
|
4
4
|
import { loadTokens } from './tokens-load.js';
|
package/dist/tokens.cdn.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Sara Lobo Library · craft-library 0.7.
|
|
1
|
+
/*! Sara Lobo Library · craft-library 0.7.2 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
|
|
2
2
|
/* Roda de fichas · Sara Lobo Library (saralobolibrary.com). An onboarding screen for an account: eight silver tokens
|
|
3
3
|
(Pix, card, Bitcoin, insurance, investments, exchange, cashback, boleto) turn slowly on a wheel, and each one, as it
|
|
4
4
|
passes the top, comes forward and makes a full turn to show what it is. Turn the phone on its side and the tokens let
|
package/dist/tokens.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Sara Lobo Library · craft-library 0.7.
|
|
1
|
+
/*! Sara Lobo Library · craft-library 0.7.2 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
|
|
2
2
|
/* Roda de fichas · Sara Lobo Library (saralobolibrary.com). An onboarding screen for an account: eight silver tokens
|
|
3
3
|
(Pix, card, Bitcoin, insurance, investments, exchange, cashback, boleto) turn slowly on a wheel, and each one, as it
|
|
4
4
|
passes the top, comes forward and makes a full turn to show what it is. Turn the phone on its side and the tokens let
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "craft-library",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "Sara Lobo Library: a liquid glass nav bar, a bursting heart, a magnetic icon, an iridescent 3D card, a glass piggy bank, two thinking indicators (Magic sphere, Sweep), the Panorama hero, the Map pin address picker and the Token wheel onboarding, for React or plain HTML",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -84,6 +84,10 @@
|
|
|
84
84
|
"bugs": {
|
|
85
85
|
"url": "https://github.com/saralobo/craft-library/issues"
|
|
86
86
|
},
|
|
87
|
+
"funding": {
|
|
88
|
+
"type": "github",
|
|
89
|
+
"url": "https://github.com/sponsors/saralobo"
|
|
90
|
+
},
|
|
87
91
|
"dependencies": {
|
|
88
92
|
"three": "0.169.0"
|
|
89
93
|
}
|