@path58/ui 2.2.0 → 2.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/atoms/Layout/Layout.d.ts +47 -0
- package/dist/atoms/Layout/Layout.d.ts.map +1 -0
- package/dist/atoms/Layout/index.d.ts +3 -0
- package/dist/atoms/Layout/index.d.ts.map +1 -0
- package/dist/atoms/index.d.ts +1 -0
- package/dist/atoms/index.d.ts.map +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2165 -1232
- package/dist/organisms/ToolAuthGate/ToolAuthGate.d.ts +47 -0
- package/dist/organisms/ToolAuthGate/ToolAuthGate.d.ts.map +1 -0
- package/dist/organisms/ToolAuthGate/index.d.ts +3 -0
- package/dist/organisms/ToolAuthGate/index.d.ts.map +1 -0
- package/dist/organisms/ToolFooter/ToolFooter.d.ts +21 -0
- package/dist/organisms/ToolFooter/ToolFooter.d.ts.map +1 -0
- package/dist/organisms/ToolFooter/index.d.ts +3 -0
- package/dist/organisms/ToolFooter/index.d.ts.map +1 -0
- package/dist/organisms/ToolSidebar/ToolSidebar.d.ts +60 -0
- package/dist/organisms/ToolSidebar/ToolSidebar.d.ts.map +1 -0
- package/dist/organisms/ToolSidebar/index.d.ts +3 -0
- package/dist/organisms/ToolSidebar/index.d.ts.map +1 -0
- package/dist/organisms/ToolSidebarHost/ToolSidebarHost.d.ts +18 -0
- package/dist/organisms/ToolSidebarHost/ToolSidebarHost.d.ts.map +1 -0
- package/dist/organisms/ToolSidebarHost/index.d.ts +3 -0
- package/dist/organisms/ToolSidebarHost/index.d.ts.map +1 -0
- package/dist/organisms/ToolTopbar/ToolTopbar.d.ts +27 -0
- package/dist/organisms/ToolTopbar/ToolTopbar.d.ts.map +1 -0
- package/dist/organisms/ToolTopbar/index.d.ts +3 -0
- package/dist/organisms/ToolTopbar/index.d.ts.map +1 -0
- package/dist/organisms/index.d.ts +4 -0
- package/dist/organisms/index.d.ts.map +1 -1
- package/dist/organisms/inputs/MoneyInput.d.ts +34 -0
- package/dist/organisms/inputs/MoneyInput.d.ts.map +1 -0
- package/dist/organisms/inputs/NumberInput.d.ts +36 -0
- package/dist/organisms/inputs/NumberInput.d.ts.map +1 -0
- package/dist/organisms/inputs/PercentInput.d.ts +36 -0
- package/dist/organisms/inputs/PercentInput.d.ts.map +1 -0
- package/dist/organisms/inputs/TextInput.d.ts +31 -0
- package/dist/organisms/inputs/TextInput.d.ts.map +1 -0
- package/dist/organisms/inputs/index.d.ts +18 -0
- package/dist/organisms/inputs/index.d.ts.map +1 -0
- package/dist/organisms/inputs/useBlurOnEnterEscapeClickOut.d.ts +29 -0
- package/dist/organisms/inputs/useBlurOnEnterEscapeClickOut.d.ts.map +1 -0
- package/dist/organisms/inputs/useNumericInputState.d.ts +23 -0
- package/dist/organisms/inputs/useNumericInputState.d.ts.map +1 -0
- package/dist/primitives/P58Button.d.ts.map +1 -1
- package/dist/primitives/P58Card.d.ts.map +1 -1
- package/dist/primitives/P58Eyebrow.d.ts.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +13 -16
- package/dist/atoms/Alert/Alert.stories.d.ts +0 -12
- package/dist/atoms/Alert/Alert.stories.d.ts.map +0 -1
- package/dist/atoms/Banner/Banner.stories.d.ts +0 -11
- package/dist/atoms/Banner/Banner.stories.d.ts.map +0 -1
- package/dist/atoms/Toast/Toast.stories.d.ts +0 -10
- package/dist/atoms/Toast/Toast.stories.d.ts.map +0 -1
- package/dist/molecules/ConfirmDialog/ConfirmDialog.stories.d.ts +0 -9
- package/dist/molecules/ConfirmDialog/ConfirmDialog.stories.d.ts.map +0 -1
- package/dist/molecules/Modal/Modal.stories.d.ts +0 -11
- package/dist/molecules/Modal/Modal.stories.d.ts.map +0 -1
- package/dist/molecules/PromptDialog/PromptDialog.stories.d.ts +0 -10
- package/dist/molecules/PromptDialog/PromptDialog.stories.d.ts.map +0 -1
- package/dist/primitives/Dialog/Dialog.stories.d.ts +0 -9
- package/dist/primitives/Dialog/Dialog.stories.d.ts.map +0 -1
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @path58/ui — Layout primitives (v2.3.0)
|
|
3
|
+
*
|
|
4
|
+
* Five composition primitives closing the Class-B gaps catalogued in
|
|
5
|
+
* REQ-2026-06-16-003 (DSGN-2.2.2 W3 audit). Consumer pages compose with
|
|
6
|
+
* these instead of authoring parallel utility classes.
|
|
7
|
+
*
|
|
8
|
+
* - P58Section — vertical-rhythm section wrapper
|
|
9
|
+
* - P58Grid — responsive multi-column grid (2/3/4 cols)
|
|
10
|
+
* - MoneyMoment — lime underline-wash revenue figure
|
|
11
|
+
* - P58Catchphrase — Path58 agent-built signature (per CATCHPHRASE doc)
|
|
12
|
+
* - P58Link — brand-aware inline link
|
|
13
|
+
*/
|
|
14
|
+
import React from 'react';
|
|
15
|
+
import './Layout.css';
|
|
16
|
+
export type P58SectionProps = React.HTMLAttributes<HTMLElement> & {
|
|
17
|
+
/** Render with a top border. Default true. */
|
|
18
|
+
bordered?: boolean;
|
|
19
|
+
/** Mark as first section (suppress top border). */
|
|
20
|
+
first?: boolean;
|
|
21
|
+
/** Custom element (default: section). */
|
|
22
|
+
as?: 'section' | 'div' | 'article';
|
|
23
|
+
};
|
|
24
|
+
export declare const P58Section: React.FC<P58SectionProps>;
|
|
25
|
+
export type P58GridProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
26
|
+
/** Column count at desktop. Responsive: 3/4 collapse to 2 at <=880, all to 1 at <=600. */
|
|
27
|
+
columns?: 2 | 3 | 4;
|
|
28
|
+
/** Gap size. sm=12px, md=20px (default), lg=32px. */
|
|
29
|
+
gap?: 'sm' | 'md' | 'lg';
|
|
30
|
+
};
|
|
31
|
+
export declare const P58Grid: React.FC<P58GridProps>;
|
|
32
|
+
export type MoneyMomentProps = React.HTMLAttributes<HTMLSpanElement> & {
|
|
33
|
+
/** The revenue figure (e.g. "$20K", "+38%", "100%"). */
|
|
34
|
+
children: React.ReactNode;
|
|
35
|
+
};
|
|
36
|
+
export declare const MoneyMoment: React.FC<MoneyMomentProps>;
|
|
37
|
+
export type P58CatchphraseProps = React.HTMLAttributes<HTMLSpanElement> & {
|
|
38
|
+
/** Override the default Path58 agent-built signature. Defaults to "Path58 {🤖💚🤖}". */
|
|
39
|
+
children?: React.ReactNode;
|
|
40
|
+
};
|
|
41
|
+
export declare const P58Catchphrase: React.FC<P58CatchphraseProps>;
|
|
42
|
+
export type P58LinkProps = React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
43
|
+
/** The link destination. */
|
|
44
|
+
href: string;
|
|
45
|
+
};
|
|
46
|
+
export declare const P58Link: React.FC<P58LinkProps>;
|
|
47
|
+
//# sourceMappingURL=Layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Layout.d.ts","sourceRoot":"","sources":["../../../src/atoms/Layout/Layout.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,cAAc,CAAC;AAItB,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,GAAG;IAChE,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mDAAmD;IACnD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,yCAAyC;IACzC,EAAE,CAAC,EAAE,SAAS,GAAG,KAAK,GAAG,SAAS,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAgBhD,CAAC;AAIF,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG;IAChE,0FAA0F;IAC1F,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACpB,qDAAqD;IACrD,GAAG,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAgB1C,CAAC;AAIF,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,GAAG;IACrE,wDAAwD;IACxD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAOlD,CAAC;AAIF,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,GAAG;IACxE,wFAAwF;IACxF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAOxD,CAAC;AAIF,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,GAAG;IACzE,4BAA4B;IAC5B,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAO1C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atoms/Layout/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,OAAO,EACP,WAAW,EACX,cAAc,EACd,OAAO,GACR,MAAM,UAAU,CAAC;AAElB,YAAY,EACV,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,mBAAmB,EACnB,YAAY,GACb,MAAM,UAAU,CAAC"}
|
package/dist/atoms/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/atoms/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,UAAU,CAAC;AAGzB,cAAc,SAAS,CAAC;AAGxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/atoms/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,UAAU,CAAC;AAGzB,cAAc,SAAS,CAAC;AAGxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export * from './atoms/Label';
|
|
|
28
28
|
export * from './atoms/Container';
|
|
29
29
|
export * from './atoms/List';
|
|
30
30
|
export * from './atoms/ListItem';
|
|
31
|
+
export * from './atoms/Layout';
|
|
31
32
|
export * from './atoms/Toast';
|
|
32
33
|
export * from './atoms/Banner';
|
|
33
34
|
export * from './atoms/Alert';
|
|
@@ -44,6 +45,15 @@ export * from './organisms/TagFilterList';
|
|
|
44
45
|
export * from './organisms/CategoryGroup';
|
|
45
46
|
export * from './organisms/ArtifactList';
|
|
46
47
|
export * from './organisms/ToastProvider';
|
|
48
|
+
export * from './organisms/ToolTopbar';
|
|
49
|
+
export * from './organisms/ToolFooter';
|
|
50
|
+
export * from './organisms/ToolAuthGate';
|
|
51
|
+
export { ToolSidebar } from './organisms/ToolSidebar';
|
|
52
|
+
export type { ToolSidebarProps, ToolSidebarTool } from './organisms/ToolSidebar';
|
|
53
|
+
export { ToolSidebarHost } from './organisms/ToolSidebarHost';
|
|
54
|
+
export type { ToolSidebarHostProps } from './organisms/ToolSidebarHost';
|
|
55
|
+
export { TextInput, NumberInput, MoneyInput, PercentInput, useBlurOnEnterEscapeClickOut, formatValue, parseNumber, clampAndStep, } from './organisms/inputs';
|
|
56
|
+
export type { TextInputProps, TextInputSize, TextInputType, NumberInputProps, NumberInputSize, MoneyInputProps, MoneyInputSize, PercentInputProps, PercentInputSize, UseBlurOnEnterEscapeClickOutOptions, } from './organisms/inputs';
|
|
47
57
|
export * from './primitives';
|
|
48
58
|
export type { ButtonProps, } from './atoms/Button';
|
|
49
59
|
export type { InputProps, } from './atoms/Input';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;GAmBG;AAGH,OAAO,cAAc,CAAC;AAGtB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAE/B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAG9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,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