craft-library 0.9.0 → 0.10.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.
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/dist/orb.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! Sara Lobo Library · craft-library 0.9.0 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
1
+ /*! Sara Lobo Library · craft-library 0.10.0 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
2
2
  // Fold orb (Dobra) · Craft Library, by Sara Lobo. orb.css and orb.js from the library, unchanged, around a mount.
3
3
  import { css } from './style.js';
4
4
  const CSS = "/* Orb · Sara Lobo Library\n orb.js draws the orb and its ground on a canvas that fills the element. Give the element a size (it is a block,\n 100% wide; the height is yours to set, or --orb-height). */\n\n.orb {\n position: relative;\n display: block;\n width: 100%;\n height: var(--orb-height, 420px);\n overflow: hidden;\n}\n.orb-canvas {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n display: block;\n}\n";
@@ -1,3 +1,3 @@
1
- /*! Sara Lobo Library · craft-library 0.9.0 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
1
+ /*! Sara Lobo Library · craft-library 0.10.0 · 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.9.0/dist/panorama/';
3
+ export const ASSETS = 'https://cdn.jsdelivr.net/npm/craft-library@0.10.0/dist/panorama/';
@@ -1,4 +1,4 @@
1
- /*! Sara Lobo Library · craft-library 0.9.0 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
1
+ /*! Sara Lobo Library · craft-library 0.10.0 · 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.9.0 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
1
+ /*! Sara Lobo Library · craft-library 0.10.0 · 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
@@ -1,3 +1,3 @@
1
- /*! Sara Lobo Library · craft-library 0.9.0 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
1
+ /*! Sara Lobo Library · craft-library 0.10.0 · 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');
@@ -1,4 +1,4 @@
1
- /*! Sara Lobo Library · craft-library 0.9.0 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
1
+ /*! Sara Lobo Library · craft-library 0.10.0 · 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.9.0 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
1
+ /*! Sara Lobo Library · craft-library 0.10.0 · 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.9.0 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
1
+ /*! Sara Lobo Library · craft-library 0.10.0 · 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.9.0 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
1
+ /*! Sara Lobo Library · craft-library 0.10.0 · 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.9.0 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
1
+ /*! Sara Lobo Library · craft-library 0.10.0 · 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.9.0 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
1
+ /*! Sara Lobo Library · craft-library 0.10.0 · 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.9.0 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
1
+ /*! Sara Lobo Library · craft-library 0.10.0 · 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.9.0 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
1
+ /*! Sara Lobo Library · craft-library 0.10.0 · 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.9.0 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
1
+ /*! Sara Lobo Library · craft-library 0.10.0 · 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.9.0 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
1
+ /*! Sara Lobo Library · craft-library 0.10.0 · 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';
@@ -1,3 +1,3 @@
1
- /*! Sara Lobo Library · craft-library 0.9.0 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
1
+ /*! Sara Lobo Library · craft-library 0.10.0 · 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');
@@ -1,4 +1,4 @@
1
- /*! Sara Lobo Library · craft-library 0.9.0 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
1
+ /*! Sara Lobo Library · craft-library 0.10.0 · 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';
@@ -1,4 +1,4 @@
1
- /*! Sara Lobo Library · craft-library 0.9.0 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
1
+ /*! Sara Lobo Library · craft-library 0.10.0 · 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.9.0 · interface pieces by Sara Lobo · https://saralobolibrary.com · MIT */
1
+ /*! Sara Lobo Library · craft-library 0.10.0 · 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.9.0",
3
+ "version": "0.10.0",
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, the Token wheel onboarding, the Thumbs reaction like/dislike and the Fold orb AI assistant orb, for React or plain HTML",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",