@donotdev/ui 0.3.3 → 0.3.4
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/dndev.css +117 -828
- package/dist/internal/layout/components/FontHead.d.ts +30 -0
- package/dist/internal/layout/components/FontHead.d.ts.map +1 -0
- package/dist/internal/layout/components/FontHead.js +1 -0
- package/dist/internal/layout/zones/DnDevMergedBar.d.ts.map +1 -1
- package/dist/internal/layout/zones/DnDevMergedBar.js +1 -1
- package/dist/next.d.ts +2 -1
- package/dist/next.d.ts.map +1 -1
- package/dist/next.js +1 -1
- package/dist/styles/index.css +114 -22
- package/dist/symbol-index.json +1 -1
- package/package.json +6 -7
- package/dist/dndev-next.css +0 -13753
- package/dist/files/inter-cyrillic-300-normal.woff +0 -0
- package/dist/files/inter-cyrillic-300-normal.woff2 +0 -0
- package/dist/files/inter-cyrillic-400-normal.woff +0 -0
- package/dist/files/inter-cyrillic-400-normal.woff2 +0 -0
- package/dist/files/inter-cyrillic-600-normal.woff +0 -0
- package/dist/files/inter-cyrillic-600-normal.woff2 +0 -0
- package/dist/files/inter-cyrillic-700-normal.woff +0 -0
- package/dist/files/inter-cyrillic-700-normal.woff2 +0 -0
- package/dist/files/inter-cyrillic-ext-300-normal.woff +0 -0
- package/dist/files/inter-cyrillic-ext-300-normal.woff2 +0 -0
- package/dist/files/inter-cyrillic-ext-400-normal.woff +0 -0
- package/dist/files/inter-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/files/inter-cyrillic-ext-600-normal.woff +0 -0
- package/dist/files/inter-cyrillic-ext-600-normal.woff2 +0 -0
- package/dist/files/inter-cyrillic-ext-700-normal.woff +0 -0
- package/dist/files/inter-cyrillic-ext-700-normal.woff2 +0 -0
- package/dist/files/inter-greek-300-normal.woff +0 -0
- package/dist/files/inter-greek-300-normal.woff2 +0 -0
- package/dist/files/inter-greek-400-normal.woff +0 -0
- package/dist/files/inter-greek-400-normal.woff2 +0 -0
- package/dist/files/inter-greek-600-normal.woff +0 -0
- package/dist/files/inter-greek-600-normal.woff2 +0 -0
- package/dist/files/inter-greek-700-normal.woff +0 -0
- package/dist/files/inter-greek-700-normal.woff2 +0 -0
- package/dist/files/inter-greek-ext-300-normal.woff +0 -0
- package/dist/files/inter-greek-ext-300-normal.woff2 +0 -0
- package/dist/files/inter-greek-ext-400-normal.woff +0 -0
- package/dist/files/inter-greek-ext-400-normal.woff2 +0 -0
- package/dist/files/inter-greek-ext-600-normal.woff +0 -0
- package/dist/files/inter-greek-ext-600-normal.woff2 +0 -0
- package/dist/files/inter-greek-ext-700-normal.woff +0 -0
- package/dist/files/inter-greek-ext-700-normal.woff2 +0 -0
- package/dist/files/inter-latin-300-normal.woff +0 -0
- package/dist/files/inter-latin-300-normal.woff2 +0 -0
- package/dist/files/inter-latin-400-normal.woff +0 -0
- package/dist/files/inter-latin-400-normal.woff2 +0 -0
- package/dist/files/inter-latin-600-normal.woff +0 -0
- package/dist/files/inter-latin-600-normal.woff2 +0 -0
- package/dist/files/inter-latin-700-normal.woff +0 -0
- package/dist/files/inter-latin-700-normal.woff2 +0 -0
- package/dist/files/inter-latin-ext-300-normal.woff +0 -0
- package/dist/files/inter-latin-ext-300-normal.woff2 +0 -0
- package/dist/files/inter-latin-ext-400-normal.woff +0 -0
- package/dist/files/inter-latin-ext-400-normal.woff2 +0 -0
- package/dist/files/inter-latin-ext-600-normal.woff +0 -0
- package/dist/files/inter-latin-ext-600-normal.woff2 +0 -0
- package/dist/files/inter-latin-ext-700-normal.woff +0 -0
- package/dist/files/inter-latin-ext-700-normal.woff2 +0 -0
- package/dist/files/inter-vietnamese-300-normal.woff +0 -0
- package/dist/files/inter-vietnamese-300-normal.woff2 +0 -0
- package/dist/files/inter-vietnamese-400-normal.woff +0 -0
- package/dist/files/inter-vietnamese-400-normal.woff2 +0 -0
- package/dist/files/inter-vietnamese-600-normal.woff +0 -0
- package/dist/files/inter-vietnamese-600-normal.woff2 +0 -0
- package/dist/files/inter-vietnamese-700-normal.woff +0 -0
- package/dist/files/inter-vietnamese-700-normal.woff2 +0 -0
- package/dist/files/playfair-display-cyrillic-400-normal.woff +0 -0
- package/dist/files/playfair-display-cyrillic-400-normal.woff2 +0 -0
- package/dist/files/playfair-display-cyrillic-500-normal.woff +0 -0
- package/dist/files/playfair-display-cyrillic-500-normal.woff2 +0 -0
- package/dist/files/playfair-display-cyrillic-600-normal.woff +0 -0
- package/dist/files/playfair-display-cyrillic-600-normal.woff2 +0 -0
- package/dist/files/playfair-display-cyrillic-700-normal.woff +0 -0
- package/dist/files/playfair-display-cyrillic-700-normal.woff2 +0 -0
- package/dist/files/playfair-display-latin-400-normal.woff +0 -0
- package/dist/files/playfair-display-latin-400-normal.woff2 +0 -0
- package/dist/files/playfair-display-latin-500-normal.woff +0 -0
- package/dist/files/playfair-display-latin-500-normal.woff2 +0 -0
- package/dist/files/playfair-display-latin-600-normal.woff +0 -0
- package/dist/files/playfair-display-latin-600-normal.woff2 +0 -0
- package/dist/files/playfair-display-latin-700-normal.woff +0 -0
- package/dist/files/playfair-display-latin-700-normal.woff2 +0 -0
- package/dist/files/playfair-display-latin-ext-400-normal.woff +0 -0
- package/dist/files/playfair-display-latin-ext-400-normal.woff2 +0 -0
- package/dist/files/playfair-display-latin-ext-500-normal.woff +0 -0
- package/dist/files/playfair-display-latin-ext-500-normal.woff2 +0 -0
- package/dist/files/playfair-display-latin-ext-600-normal.woff +0 -0
- package/dist/files/playfair-display-latin-ext-600-normal.woff2 +0 -0
- package/dist/files/playfair-display-latin-ext-700-normal.woff +0 -0
- package/dist/files/playfair-display-latin-ext-700-normal.woff2 +0 -0
- package/dist/files/playfair-display-vietnamese-400-normal.woff +0 -0
- package/dist/files/playfair-display-vietnamese-400-normal.woff2 +0 -0
- package/dist/files/playfair-display-vietnamese-500-normal.woff +0 -0
- package/dist/files/playfair-display-vietnamese-500-normal.woff2 +0 -0
- package/dist/files/playfair-display-vietnamese-600-normal.woff +0 -0
- package/dist/files/playfair-display-vietnamese-600-normal.woff2 +0 -0
- package/dist/files/playfair-display-vietnamese-700-normal.woff +0 -0
- package/dist/files/playfair-display-vietnamese-700-normal.woff2 +0 -0
- package/dist/files/press-start-2p-cyrillic-400-normal.woff +0 -0
- package/dist/files/press-start-2p-cyrillic-400-normal.woff2 +0 -0
- package/dist/files/press-start-2p-cyrillic-ext-400-normal.woff +0 -0
- package/dist/files/press-start-2p-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/files/press-start-2p-greek-400-normal.woff +0 -0
- package/dist/files/press-start-2p-greek-400-normal.woff2 +0 -0
- package/dist/files/press-start-2p-latin-400-normal.woff +0 -0
- package/dist/files/press-start-2p-latin-400-normal.woff2 +0 -0
- package/dist/files/press-start-2p-latin-ext-400-normal.woff +0 -0
- package/dist/files/press-start-2p-latin-ext-400-normal.woff2 +0 -0
- package/dist/files/roboto-cyrillic-400-normal.woff +0 -0
- package/dist/files/roboto-cyrillic-400-normal.woff2 +0 -0
- package/dist/files/roboto-cyrillic-700-normal.woff +0 -0
- package/dist/files/roboto-cyrillic-700-normal.woff2 +0 -0
- package/dist/files/roboto-cyrillic-ext-400-normal.woff +0 -0
- package/dist/files/roboto-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/files/roboto-cyrillic-ext-700-normal.woff +0 -0
- package/dist/files/roboto-cyrillic-ext-700-normal.woff2 +0 -0
- package/dist/files/roboto-greek-400-normal.woff +0 -0
- package/dist/files/roboto-greek-400-normal.woff2 +0 -0
- package/dist/files/roboto-greek-700-normal.woff +0 -0
- package/dist/files/roboto-greek-700-normal.woff2 +0 -0
- package/dist/files/roboto-greek-ext-400-normal.woff +0 -0
- package/dist/files/roboto-greek-ext-400-normal.woff2 +0 -0
- package/dist/files/roboto-greek-ext-700-normal.woff +0 -0
- package/dist/files/roboto-greek-ext-700-normal.woff2 +0 -0
- package/dist/files/roboto-latin-400-normal.woff +0 -0
- package/dist/files/roboto-latin-400-normal.woff2 +0 -0
- package/dist/files/roboto-latin-700-normal.woff +0 -0
- package/dist/files/roboto-latin-700-normal.woff2 +0 -0
- package/dist/files/roboto-latin-ext-400-normal.woff +0 -0
- package/dist/files/roboto-latin-ext-400-normal.woff2 +0 -0
- package/dist/files/roboto-latin-ext-700-normal.woff +0 -0
- package/dist/files/roboto-latin-ext-700-normal.woff2 +0 -0
- package/dist/files/roboto-math-400-normal.woff +0 -0
- package/dist/files/roboto-math-400-normal.woff2 +0 -0
- package/dist/files/roboto-math-700-normal.woff +0 -0
- package/dist/files/roboto-math-700-normal.woff2 +0 -0
- package/dist/files/roboto-symbols-400-normal.woff +0 -0
- package/dist/files/roboto-symbols-400-normal.woff2 +0 -0
- package/dist/files/roboto-symbols-700-normal.woff +0 -0
- package/dist/files/roboto-symbols-700-normal.woff2 +0 -0
- package/dist/files/roboto-vietnamese-400-normal.woff +0 -0
- package/dist/files/roboto-vietnamese-400-normal.woff2 +0 -0
- package/dist/files/roboto-vietnamese-700-normal.woff +0 -0
- package/dist/files/roboto-vietnamese-700-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-300-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-300-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-400-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-400-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-500-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-500-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-600-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-600-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-700-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-700-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-ext-300-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-ext-300-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-ext-400-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-ext-400-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-ext-500-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-ext-500-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-ext-600-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-ext-600-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-ext-700-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-ext-700-normal.woff2 +0 -0
- package/dist/files/space-grotesk-vietnamese-300-normal.woff +0 -0
- package/dist/files/space-grotesk-vietnamese-300-normal.woff2 +0 -0
- package/dist/files/space-grotesk-vietnamese-400-normal.woff +0 -0
- package/dist/files/space-grotesk-vietnamese-400-normal.woff2 +0 -0
- package/dist/files/space-grotesk-vietnamese-500-normal.woff +0 -0
- package/dist/files/space-grotesk-vietnamese-500-normal.woff2 +0 -0
- package/dist/files/space-grotesk-vietnamese-600-normal.woff +0 -0
- package/dist/files/space-grotesk-vietnamese-600-normal.woff2 +0 -0
- package/dist/files/space-grotesk-vietnamese-700-normal.woff +0 -0
- package/dist/files/space-grotesk-vietnamese-700-normal.woff2 +0 -0
- package/dist/internal/layout/components/FontPreloadLinks.d.ts +0 -19
- package/dist/internal/layout/components/FontPreloadLinks.d.ts.map +0 -1
- package/dist/internal/layout/components/FontPreloadLinks.js +0 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The font plan as the document head needs it (`src/app/fonts.generated.ts`).
|
|
3
|
+
*
|
|
4
|
+
* @version 0.1.0
|
|
5
|
+
* @since 0.3.3
|
|
6
|
+
* @author AMBROISE PARK Consulting
|
|
7
|
+
*/
|
|
8
|
+
export interface FontHeadData {
|
|
9
|
+
/** Every `@font-face` of the app (web faces, then the size-matched fallback faces) */
|
|
10
|
+
readonly css: string;
|
|
11
|
+
/** Per app language: the first-paint font file URLs */
|
|
12
|
+
readonly preloads: Readonly<Record<string, readonly string[]>>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Font preloads of `lang` and the inline `@font-face` style.
|
|
16
|
+
*
|
|
17
|
+
* @param props.fonts - The generated font plan (`FONTS` of `fonts.generated.ts`)
|
|
18
|
+
* @param props.lang - The page language
|
|
19
|
+
* @returns The `<style>` element (null when the theme uses system fonts only)
|
|
20
|
+
* @throws {Error} When the plan has no entry for `lang` (the generated file is stale)
|
|
21
|
+
*
|
|
22
|
+
* @version 0.1.0
|
|
23
|
+
* @since 0.3.3
|
|
24
|
+
* @author AMBROISE PARK Consulting
|
|
25
|
+
*/
|
|
26
|
+
export declare function FontHead({ fonts, lang }: {
|
|
27
|
+
fonts: FontHeadData;
|
|
28
|
+
lang: string;
|
|
29
|
+
}): import("react").JSX.Element | null;
|
|
30
|
+
//# sourceMappingURL=FontHead.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FontHead.d.ts","sourceRoot":"","sources":["../../../../src/internal/layout/components/FontHead.tsx"],"names":[],"mappings":"AAuBA;;;;;;GAMG;AACH,MAAM,WAAW,YAAY;IAC3B,sFAAsF;IACtF,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,uDAAuD;IACvD,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC,CAAC;CAChE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,QAAQ,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;IAAE,KAAK,EAAE,YAAY,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,sCAgB9E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{preload as s}from"react-dom";import{FONT_STYLE_ID as n}from"@donotdev/core";import{jsx as a}from"react/jsx-runtime";function l({fonts:e,lang:r}){let o=e.preloads[r];if(!o)throw new Error(`[dndev] FontHead: the font plan has no preloads for language '${r}' (src/app/fonts.generated.ts is stale: rebuild).`);for(let t of o)s(t,{as:"font",type:"font/woff2",crossOrigin:"anonymous"});return e.css?a("style",{href:n,precedence:n,children:e.css}):null}export{l as FontHead};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DnDevMergedBar.d.ts","sourceRoot":"","sources":["../../../../src/internal/layout/zones/DnDevMergedBar.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAavC,MAAM,WAAW,mBAAmB;IAClC,mBAAmB;IACnB,QAAQ,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC3B,mFAAmF;IACnF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gEAAgE;IAChE,OAAO,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IAC3B,4DAA4D;IAC5D,GAAG,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IACvB,gEAAgE;IAChE,OAAO,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IAC3B,+DAA+D;IAC/D,MAAM,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;CAC3B;AAED;;;;;;;;;;;;;;GAcG;AACH,iBAAS,uBAAuB,CAAC,EAC/B,QAAQ,EACR,MAAM,EACN,OAAO,EACP,GAAG,EACH,OAAO,EACP,MAAM,GACP,EAAE,mBAAmB,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"DnDevMergedBar.d.ts","sourceRoot":"","sources":["../../../../src/internal/layout/zones/DnDevMergedBar.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAavC,MAAM,WAAW,mBAAmB;IAClC,mBAAmB;IACnB,QAAQ,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC3B,mFAAmF;IACnF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gEAAgE;IAChE,OAAO,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IAC3B,4DAA4D;IAC5D,GAAG,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IACvB,gEAAgE;IAChE,OAAO,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IAC3B,+DAA+D;IAC/D,MAAM,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;CAC3B;AAED;;;;;;;;;;;;;;GAcG;AACH,iBAAS,uBAAuB,CAAC,EAC/B,QAAQ,EACR,MAAM,EACN,OAAO,EACP,GAAG,EACH,OAAO,EACP,MAAM,GACP,EAAE,mBAAmB,GAAG,SAAS,CAiEjC;AAED,eAAO,MAAM,cAAc,qEAAgC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{ChevronUp as R,Menu as D}from"lucide-react";import{memo as S,useState as T,useEffect as b}from"react";import{Stack as
|
|
1
|
+
"use client";import{ChevronUp as R,Menu as D}from"lucide-react";import{memo as S,useState as T,useEffect as b}from"react";import{Stack as c,Button as B,Sheet as M,BUTTON_VARIANT as A,Separator as l,SEPARATOR_VARIANT as d}from"@donotdev/components";import{useTranslation as O}from"@donotdev/core";import{useRoutePath as C}from"@donotdev/ui/routing/hooks";import{Fragment as m,jsx as e,jsxs as o}from"react/jsx-runtime";function E({position:t,height:P,trigger:g,top:a,content:r,bottom:n}){let{t:s}=O("dndev"),p=t==="top"?D:R,u=t==="top"?"left":t,[h,i]=T(!1),f=C();b(()=>{i(!1)},[f]);let v=o(c,{direction:"column",className:"merged-bar-sheet-content",children:[a&&o(m,{children:[a,e(l,{variant:d.MUTED})]}),r&&e("div",{className:"merged-bar-sheet-scroll",children:r}),n&&o(m,{children:[e(l,{variant:d.MUTED}),n]})]}),N=e(B,{variant:A.GHOST,icon:p,"aria-label":"Open navigation"});return e("div",{className:"merged-bar","data-position":t,children:o(c,{direction:"row",align:"center",justify:"between",className:"merged-bar-trigger",children:[g,e(M,{trigger:N,side:u,open:h,onOpenChange:i,title:s("sheet.navigation",{defaultValue:"Navigation"}),closeLabel:s("sheet.close",{defaultValue:"Close sheet"}),children:v})]})})}var y=S(E);export{y as DnDevMergedBar};
|
package/dist/next.d.ts
CHANGED
|
@@ -7,5 +7,6 @@
|
|
|
7
7
|
* @author AMBROISE PARK Consulting
|
|
8
8
|
*/
|
|
9
9
|
export { NextJsAppProviders } from './providers/NextJsAppProviders';
|
|
10
|
-
export {
|
|
10
|
+
export { FontHead } from './internal/layout/components/FontHead';
|
|
11
|
+
export type { FontHeadData } from './internal/layout/components/FontHead';
|
|
11
12
|
//# sourceMappingURL=next.d.ts.map
|
package/dist/next.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../src/next.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,
|
|
1
|
+
{"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../src/next.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AACjE,YAAY,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC"}
|
package/dist/next.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{NextJsAppProviders as
|
|
1
|
+
import{NextJsAppProviders as e}from"./providers/NextJsAppProviders.js";import{FontHead as a}from"./internal/layout/components/FontHead.js";export{a as FontHead,e as NextJsAppProviders};
|
package/dist/styles/index.css
CHANGED
|
@@ -169,8 +169,10 @@
|
|
|
169
169
|
--font-family: var(--font-sans);
|
|
170
170
|
|
|
171
171
|
/* Sans-serif: Inter (2026 standard). '<Family> Fallback': size-matched local face
|
|
172
|
-
|
|
173
|
-
|
|
172
|
+
rendered while the web font is not available (font-display: optional), so text
|
|
173
|
+
keeps its box. Defined by the framework font plan on both bundlers
|
|
174
|
+
(@donotdev/core config/fonts/buildFontPlan.js); a stack leading with a web font
|
|
175
|
+
must list it right after the family (the build fails otherwise). */
|
|
174
176
|
--font-sans:
|
|
175
177
|
Inter, 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI',
|
|
176
178
|
'Helvetica Neue', Arial, sans-serif;
|
|
@@ -6667,36 +6669,121 @@ input[type='number'] {
|
|
|
6667
6669
|
|
|
6668
6670
|
/* packages/components/src/atomic/PinInput/PinInput.css */
|
|
6669
6671
|
|
|
6670
|
-
|
|
6672
|
+
/* Label above the slots */
|
|
6673
|
+
.dndev-pin-input-field {
|
|
6671
6674
|
display: flex;
|
|
6675
|
+
flex-direction: column;
|
|
6672
6676
|
gap: var(--gap-sm);
|
|
6677
|
+
min-inline-size: 0;
|
|
6678
|
+
}
|
|
6679
|
+
|
|
6680
|
+
.dndev-pin-input-field__label {
|
|
6681
|
+
display: flex;
|
|
6682
|
+
align-items: center;
|
|
6683
|
+
gap: calc(var(--gap-sm) / 2);
|
|
6684
|
+
}
|
|
6685
|
+
|
|
6686
|
+
.dndev-pin-input-field[data-disabled='true'] .dndev-pin-input-field__label {
|
|
6687
|
+
opacity: var(--opacity-muted);
|
|
6688
|
+
}
|
|
6689
|
+
|
|
6690
|
+
.dndev-pin-input {
|
|
6691
|
+
display: flex;
|
|
6673
6692
|
align-items: center;
|
|
6674
6693
|
justify-content: center;
|
|
6694
|
+
min-inline-size: 0;
|
|
6675
6695
|
direction: ltr; /* digits are always LTR even in RTL locales */
|
|
6676
6696
|
}
|
|
6677
6697
|
|
|
6678
|
-
|
|
6679
|
-
|
|
6680
|
-
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
|
|
6698
|
+
/* The row shrinks with its container; each slot shrinks from the touch-target
|
|
6699
|
+
size, so 8 slots fit 320px without overflow */
|
|
6700
|
+
.dndev-pin-input__slots {
|
|
6701
|
+
position: relative;
|
|
6702
|
+
display: flex;
|
|
6703
|
+
flex: 0 1 auto;
|
|
6704
|
+
min-inline-size: 0;
|
|
6705
|
+
gap: var(--gap-sm);
|
|
6706
|
+
}
|
|
6707
|
+
|
|
6708
|
+
.dndev-pin-input__slot {
|
|
6709
|
+
display: flex;
|
|
6710
|
+
flex: 0 1 var(--touch-target);
|
|
6711
|
+
align-items: center;
|
|
6712
|
+
justify-content: center;
|
|
6713
|
+
inline-size: var(--touch-target);
|
|
6714
|
+
min-inline-size: 0;
|
|
6715
|
+
block-size: var(--touch-target);
|
|
6716
|
+
border: var(--border-hairline) solid var(--line-2);
|
|
6717
|
+
border-radius: var(--radius-interactive);
|
|
6718
|
+
background-color: var(--interactive, transparent);
|
|
6719
|
+
color: var(--foreground);
|
|
6720
|
+
box-shadow: var(--shadow-sm);
|
|
6721
|
+
font-size: var(--font-size-lg);
|
|
6684
6722
|
font-variant-numeric: tabular-nums;
|
|
6685
|
-
|
|
6686
|
-
|
|
6723
|
+
transition:
|
|
6724
|
+
border-color var(--dur-fast) var(--ease-in-out),
|
|
6725
|
+
box-shadow var(--dur-fast) var(--ease-in-out);
|
|
6726
|
+
}
|
|
6727
|
+
|
|
6728
|
+
.dndev-pin-input__slots:hover .dndev-pin-input__slot {
|
|
6729
|
+
border-color: var(--ring);
|
|
6730
|
+
}
|
|
6731
|
+
|
|
6732
|
+
/* Focus ring on the active slot while the input has focus */
|
|
6733
|
+
.dndev-pin-input__slots:focus-within .dndev-pin-input__slot[data-active] {
|
|
6734
|
+
border-color: var(--ring);
|
|
6735
|
+
box-shadow: var(--shadow-focus);
|
|
6736
|
+
}
|
|
6737
|
+
|
|
6738
|
+
/* Fake caret in the empty active slot */
|
|
6739
|
+
.dndev-pin-input__slots:focus-within .dndev-pin-input__slot[data-caret]::after {
|
|
6740
|
+
content: '';
|
|
6741
|
+
inline-size: var(--border-hairline);
|
|
6742
|
+
block-size: 1em;
|
|
6743
|
+
background-color: var(--foreground);
|
|
6744
|
+
animation: dndev-pin-input-caret 1s steps(2, start) infinite;
|
|
6745
|
+
}
|
|
6746
|
+
|
|
6747
|
+
@keyframes dndev-pin-input-caret {
|
|
6748
|
+
to {
|
|
6749
|
+
visibility: hidden;
|
|
6750
|
+
}
|
|
6751
|
+
}
|
|
6752
|
+
|
|
6753
|
+
/* The real input: covers the slots, invisible, receives every interaction.
|
|
6754
|
+
16px minimum font size: no iOS zoom on focus. */
|
|
6755
|
+
.dndev-pin-input__field {
|
|
6756
|
+
position: absolute;
|
|
6757
|
+
inset: 0;
|
|
6758
|
+
inline-size: 100%;
|
|
6759
|
+
block-size: 100%;
|
|
6760
|
+
margin: 0;
|
|
6761
|
+
padding: 0;
|
|
6762
|
+
border: 0;
|
|
6763
|
+
outline: 0;
|
|
6764
|
+
background: transparent;
|
|
6765
|
+
color: transparent;
|
|
6766
|
+
-webkit-text-fill-color: transparent;
|
|
6767
|
+
caret-color: transparent;
|
|
6768
|
+
font-size: var(--font-size-input);
|
|
6769
|
+
cursor: text;
|
|
6687
6770
|
}
|
|
6688
6771
|
|
|
6689
|
-
|
|
6690
|
-
|
|
6691
|
-
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6772
|
+
.dndev-pin-input__field::-moz-selection {
|
|
6773
|
+
background: transparent;
|
|
6774
|
+
}
|
|
6775
|
+
|
|
6776
|
+
.dndev-pin-input__field::selection {
|
|
6777
|
+
background: transparent;
|
|
6778
|
+
}
|
|
6779
|
+
|
|
6780
|
+
.dndev-pin-input__field:disabled {
|
|
6781
|
+
cursor: not-allowed;
|
|
6782
|
+
}
|
|
6783
|
+
|
|
6784
|
+
.dndev-pin-input__slots:has(.dndev-pin-input__field:disabled)
|
|
6785
|
+
.dndev-pin-input__slot {
|
|
6786
|
+
opacity: var(--opacity-muted);
|
|
6700
6787
|
}
|
|
6701
6788
|
|
|
6702
6789
|
.dndev-pin-input__reveal {
|
|
@@ -6760,6 +6847,11 @@ input[type='number'] {
|
|
|
6760
6847
|
.dndev-pin-input[data-shake='true'] {
|
|
6761
6848
|
animation: none;
|
|
6762
6849
|
}
|
|
6850
|
+
|
|
6851
|
+
.dndev-pin-input__slots:focus-within
|
|
6852
|
+
.dndev-pin-input__slot[data-caret]::after {
|
|
6853
|
+
animation: none;
|
|
6854
|
+
}
|
|
6763
6855
|
}
|
|
6764
6856
|
|
|
6765
6857
|
/* packages/components/src/atomic/Pagination/Pagination.css */
|