@travel-match/ui 0.1.0 → 0.3.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 +1 -0
- package/dist/components/Checkbox/Checkbox.cjs +1 -1
- package/dist/components/Checkbox/Checkbox.cjs.map +1 -1
- package/dist/components/Checkbox/Checkbox.js +29 -17
- package/dist/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/CtaSentence/CtaSentence.cjs +1 -1
- package/dist/components/CtaSentence/CtaSentence.cjs.map +1 -1
- package/dist/components/CtaSentence/CtaSentence.js +142 -69
- package/dist/components/CtaSentence/CtaSentence.js.map +1 -1
- package/dist/components/HeroColumns/heroMotion.cjs +1 -1
- package/dist/components/HeroColumns/heroMotion.cjs.map +1 -1
- package/dist/components/HeroColumns/heroMotion.js +7 -44
- package/dist/components/HeroColumns/heroMotion.js.map +1 -1
- package/dist/components/HeroMap/HeroMap.cjs +1 -1
- package/dist/components/HeroMap/HeroMap.cjs.map +1 -1
- package/dist/components/HeroMap/HeroMap.js +58 -67
- package/dist/components/HeroMap/HeroMap.js.map +1 -1
- package/dist/components/HeroSwitcher/HeroSwitcher.cjs +1 -1
- package/dist/components/HeroSwitcher/HeroSwitcher.cjs.map +1 -1
- package/dist/components/HeroSwitcher/HeroSwitcher.js +85 -92
- package/dist/components/HeroSwitcher/HeroSwitcher.js.map +1 -1
- package/dist/components/HowItWorksSteps/HowItWorksSteps.cjs +1 -1
- package/dist/components/HowItWorksSteps/HowItWorksSteps.cjs.map +1 -1
- package/dist/components/HowItWorksSteps/HowItWorksSteps.js +84 -102
- package/dist/components/HowItWorksSteps/HowItWorksSteps.js.map +1 -1
- package/dist/components/Logo/Logo.cjs +1 -1
- package/dist/components/Logo/Logo.cjs.map +1 -1
- package/dist/components/Logo/Logo.js +14 -13
- package/dist/components/Logo/Logo.js.map +1 -1
- package/dist/components/Logo/LogoArtwork.cjs +1 -1
- package/dist/components/Logo/LogoArtwork.cjs.map +1 -1
- package/dist/components/Logo/LogoArtwork.js +9 -2
- package/dist/components/Logo/LogoArtwork.js.map +1 -1
- package/dist/components/PackageAnimation/PackageAnimation.cjs +1 -1
- package/dist/components/PackageAnimation/PackageAnimation.cjs.map +1 -1
- package/dist/components/PackageAnimation/PackageAnimation.js +31 -40
- package/dist/components/PackageAnimation/PackageAnimation.js.map +1 -1
- package/dist/components/PartnerCarousel/PartnerCarousel.cjs +1 -1
- package/dist/components/PartnerCarousel/PartnerCarousel.cjs.map +1 -1
- package/dist/components/PartnerCarousel/PartnerCarousel.js +94 -101
- package/dist/components/PartnerCarousel/PartnerCarousel.js.map +1 -1
- package/dist/components/PartnerCarousel/autoplay.cjs +1 -1
- package/dist/components/PartnerCarousel/autoplay.cjs.map +1 -1
- package/dist/components/PartnerCarousel/autoplay.js +13 -9
- package/dist/components/PartnerCarousel/autoplay.js.map +1 -1
- package/dist/components/Select/Select.cjs +1 -1
- package/dist/components/Select/Select.cjs.map +1 -1
- package/dist/components/Select/Select.js +119 -112
- package/dist/components/Select/Select.js.map +1 -1
- package/dist/components/TextInput/PasswordInput.cjs +1 -1
- package/dist/components/TextInput/PasswordInput.cjs.map +1 -1
- package/dist/components/TextInput/PasswordInput.js +11 -11
- package/dist/components/TextInput/PasswordInput.js.map +1 -1
- package/dist/index.d.cts +54 -58
- package/dist/index.d.ts +54 -58
- package/dist/styles.css +1 -1
- package/package.json +17 -1
- package/dist/components/PartnerCarousel/AutoplayToggle.cjs +0 -2
- package/dist/components/PartnerCarousel/AutoplayToggle.cjs.map +0 -1
- package/dist/components/PartnerCarousel/AutoplayToggle.js +0 -36
- package/dist/components/PartnerCarousel/AutoplayToggle.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,8 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travel-match/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "TravelMatch design system: design tokens, icons and React components built from the Figma Design System file.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"travelmatch",
|
|
8
|
+
"design-system",
|
|
9
|
+
"react",
|
|
10
|
+
"components",
|
|
11
|
+
"ui",
|
|
12
|
+
"design-tokens",
|
|
13
|
+
"icons",
|
|
14
|
+
"figma",
|
|
15
|
+
"typescript"
|
|
16
|
+
],
|
|
17
|
+
"homepage": "https://github.com/Travel-Match/ui#readme",
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/Travel-Match/ui/issues"
|
|
20
|
+
},
|
|
21
|
+
"author": "TravelMatch",
|
|
6
22
|
"repository": {
|
|
7
23
|
"type": "git",
|
|
8
24
|
"url": "git+https://github.com/Travel-Match/ui.git"
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";const e=require("../../utils/cn.cjs");;/* empty css */let t=require("react"),n=require("react/jsx-runtime");var r=(0,t.forwardRef)(function({paused:t,pauseLabel:r,playLabel:i,className:a,type:o=`button`,...s},c){return(0,n.jsx)(`button`,{ref:c,type:o,className:e.cn(`tm-autoplay-toggle`,a),"aria-label":t?i:r,"data-paused":t?``:void 0,...s,children:(0,n.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`16`,height:`16`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.4`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,focusable:`false`,children:t?(0,n.jsx)(`path`,{d:`M8 5.5v13l10.5-6.5z`,fill:`currentColor`,strokeWidth:`1.6`}):(0,n.jsx)(`path`,{d:`M8.5 5.5v13M15.5 5.5v13`})})})});exports.AutoplayToggle=r;
|
|
2
|
-
//# sourceMappingURL=AutoplayToggle.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AutoplayToggle.cjs","names":["cn","require_cn","react","react_jsx_runtime","AutoplayToggle","props","className","paused","playLabel","pauseLabel"],"sources":["../../../src/components/PartnerCarousel/AutoplayToggle.tsx"],"sourcesContent":["import { forwardRef, type ButtonHTMLAttributes } from 'react';\nimport { cn } from '../../utils/cn';\nimport './AutoplayToggle.css';\n\nexport interface AutoplayToggleProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {\n /** The loop is stopped: the button offers to start it. */\n paused: boolean;\n /** Accessible name while the loop runs — translate it. */\n pauseLabel: string;\n /** Accessible name while the loop is stopped — translate it. */\n playLabel: string;\n}\n\n/**\n * Pause / play control of an autoplaying animation (WCAG 2.2.2). Figma draws no such control and has no pause / play\n * icons, so the two glyphs are drawn here on the 24px icon grid.\n */\nexport const AutoplayToggle = /* @__PURE__ */ forwardRef<HTMLButtonElement, AutoplayToggleProps>(function AutoplayToggle(\n { paused, pauseLabel, playLabel, className, type = 'button', ...props },\n ref,\n) {\n return (\n <button ref={ref} type={type} className={cn('tm-autoplay-toggle', className)} aria-label={paused ? playLabel : pauseLabel} data-paused={paused ? '' : undefined} {...props}>\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2.4\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\" focusable=\"false\">\n {paused ? <path d=\"M8 5.5v13l10.5-6.5z\" fill=\"currentColor\" strokeWidth=\"1.6\" /> : <path d=\"M8.5 5.5v13M15.5 5.5v13\" />}\n </svg>\n </button>\n );\n});\n"],"mappings":"A,6IAiBA,IAAaI,GAAiC,EAAAF,EAAA,WAAA,CAAmD,SAC/F,CAAE,SAAQ,aAAY,YAAW,YAAW,OAAO,SAAU,GAAGG,GAChE,EACA,CACA,OACE,EAAAF,EAAA,IAAA,CAAC,SAAD,CAAa,MAAW,OAAM,UAAWH,EAAAA,GAAG,qBAAsBM,CAAS,EAAG,aAAYC,EAASC,EAAYC,EAAY,cAAaF,EAAS,GAAK,IAAA,GAAW,GAAIF,EACnK,UAAA,EAAAF,EAAA,IAAA,CAAC,MAAD,CAAK,QAAQ,YAAY,MAAM,KAAK,OAAO,KAAK,KAAK,OAAO,OAAO,eAAe,YAAY,MAAM,cAAc,QAAQ,eAAe,QAAQ,cAAY,OAAO,UAAU,QAC3K,SAAAI,GAAS,EAAAJ,EAAA,IAAA,CAAC,OAAD,CAAM,EAAE,sBAAsB,KAAK,eAAe,YAAY,KAAO,CAAA,GAAI,EAAAA,EAAA,IAAA,CAAC,OAAD,CAAM,EAAE,yBAA2B,CAAA,CACnH,CAAA,CACC,CAAA,CAEZ,CAAC,E"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { cn as e } from "../../utils/cn.js";
|
|
3
|
-
/* empty css */
|
|
4
|
-
import { forwardRef as t } from "react";
|
|
5
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
6
|
-
// src/components/PartnerCarousel/AutoplayToggle.tsx
|
|
7
|
-
var r = /* @__PURE__ */ t(function({ paused: t, pauseLabel: r, playLabel: i, className: a, type: o = "button", ...s }, c) {
|
|
8
|
-
return /* @__PURE__ */ n("button", {
|
|
9
|
-
ref: c,
|
|
10
|
-
type: o,
|
|
11
|
-
className: e("tm-autoplay-toggle", a),
|
|
12
|
-
"aria-label": t ? i : r,
|
|
13
|
-
"data-paused": t ? "" : void 0,
|
|
14
|
-
...s,
|
|
15
|
-
children: /* @__PURE__ */ n("svg", {
|
|
16
|
-
viewBox: "0 0 24 24",
|
|
17
|
-
width: "16",
|
|
18
|
-
height: "16",
|
|
19
|
-
fill: "none",
|
|
20
|
-
stroke: "currentColor",
|
|
21
|
-
strokeWidth: "2.4",
|
|
22
|
-
strokeLinecap: "round",
|
|
23
|
-
strokeLinejoin: "round",
|
|
24
|
-
"aria-hidden": "true",
|
|
25
|
-
focusable: "false",
|
|
26
|
-
children: t ? /* @__PURE__ */ n("path", {
|
|
27
|
-
d: "M8 5.5v13l10.5-6.5z",
|
|
28
|
-
fill: "currentColor",
|
|
29
|
-
strokeWidth: "1.6"
|
|
30
|
-
}) : /* @__PURE__ */ n("path", { d: "M8.5 5.5v13M15.5 5.5v13" })
|
|
31
|
-
})
|
|
32
|
-
});
|
|
33
|
-
});
|
|
34
|
-
export { r as AutoplayToggle };
|
|
35
|
-
|
|
36
|
-
//# sourceMappingURL=AutoplayToggle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AutoplayToggle.js","names":["AutoplayToggle","props","cn","className","paused","playLabel","pauseLabel"],"sources":["../../../src/components/PartnerCarousel/AutoplayToggle.tsx"],"sourcesContent":["import { forwardRef, type ButtonHTMLAttributes } from 'react';\nimport { cn } from '../../utils/cn';\nimport './AutoplayToggle.css';\n\nexport interface AutoplayToggleProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {\n /** The loop is stopped: the button offers to start it. */\n paused: boolean;\n /** Accessible name while the loop runs — translate it. */\n pauseLabel: string;\n /** Accessible name while the loop is stopped — translate it. */\n playLabel: string;\n}\n\n/**\n * Pause / play control of an autoplaying animation (WCAG 2.2.2). Figma draws no such control and has no pause / play\n * icons, so the two glyphs are drawn here on the 24px icon grid.\n */\nexport const AutoplayToggle = /* @__PURE__ */ forwardRef<HTMLButtonElement, AutoplayToggleProps>(function AutoplayToggle(\n { paused, pauseLabel, playLabel, className, type = 'button', ...props },\n ref,\n) {\n return (\n <button ref={ref} type={type} className={cn('tm-autoplay-toggle', className)} aria-label={paused ? playLabel : pauseLabel} data-paused={paused ? '' : undefined} {...props}>\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2.4\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\" focusable=\"false\">\n {paused ? <path d=\"M8 5.5v13l10.5-6.5z\" fill=\"currentColor\" strokeWidth=\"1.6\" /> : <path d=\"M8.5 5.5v13M15.5 5.5v13\" />}\n </svg>\n </button>\n );\n});\n"],"mappings":";;;;;;AAiBA,IAAaA,IAAiC,kBAAmD,SAC/F,EAAE,WAAQ,eAAY,cAAW,cAAW,UAAO,UAAU,GAAGC,KAChE,GACA;CACA,OACE,kBAAC,UAAD;EAAa;EAAW;EAAM,WAAWC,EAAG,sBAAsBC,CAAS;EAAG,cAAYC,IAASC,IAAYC;EAAY,eAAaF,IAAS,KAAK,KAAA;EAAW,GAAIH;EACnK,UAAA,kBAAC,OAAD;GAAK,SAAQ;GAAY,OAAM;GAAK,QAAO;GAAK,MAAK;GAAO,QAAO;GAAe,aAAY;GAAM,eAAc;GAAQ,gBAAe;GAAQ,eAAY;GAAO,WAAU;GAC3K,UAAAG,IAAS,kBAAC,QAAD;IAAM,GAAE;IAAsB,MAAK;IAAe,aAAY;GAAO,CAAA,IAAI,kBAAC,QAAD,EAAM,GAAE,0BAA2B,CAAA;EACnH,CAAA;CACC,CAAA;AAEZ,CAAC"}
|