@thenamespace/ens-components 1.5.2 → 2.0.0-alpha.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sources":["../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n"],"names":[],"mappings":"AAAA,SAAS,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE;AAC/B,EAAE,KAAK,GAAG,KAAK,MAAM,GAAG,GAAG,GAAG,EAAE;AAChC,EAAE,IAAI,QAAQ,GAAG,GAAG,CAAC,QAAQ;;AAE7B,EAAE,IAAI,CAAC,GAAG,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE,EAAE,OAAO,CAAC;;AAEzD,EAAE,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACtE,EAAE,IAAI,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC;AAC7C,EAAE,KAAK,CAAC,IAAI,GAAG,UAAU;;AAEzB,EAAE,IAAI,QAAQ,KAAK,KAAK,EAAE;AAC1B,IAAI,IAAI,IAAI,CAAC,UAAU,EAAE;AACzB,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC;AAC/C,IAAI,CAAC,MAAM;AACX,MAAM,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;AAC7B,IAAI;AACJ,EAAE,CAAC,MAAM;AACT,IAAI,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;AAC3B,EAAE;;AAEF,EAAE,IAAI,KAAK,CAAC,UAAU,EAAE;AACxB,IAAI,KAAK,CAAC,UAAU,CAAC,OAAO,GAAG,GAAG;AAClC,EAAE,CAAC,MAAM;AACT,IAAI,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;AACnD,EAAE;AACF;;;;;;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"styles.js","sources":["../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n"],"names":[],"mappings":"AAAA,SAAS,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE;AAC/B,EAAE,KAAK,GAAG,KAAK,MAAM,GAAG,GAAG,GAAG,EAAE;AAChC,EAAE,IAAI,QAAQ,GAAG,GAAG,CAAC,QAAQ;;AAE7B,EAAE,IAAI,CAAC,GAAG,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE,EAAE,OAAO,CAAC;;AAEzD,EAAE,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACtE,EAAE,IAAI,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC;AAC7C,EAAE,KAAK,CAAC,IAAI,GAAG,UAAU;;AAEzB,EAAE,IAAI,QAAQ,KAAK,KAAK,EAAE;AAC1B,IAAI,IAAI,IAAI,CAAC,UAAU,EAAE;AACzB,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC;AAC/C,IAAI,CAAC,MAAM;AACX,MAAM,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;AAC7B,IAAI;AACJ,EAAE,CAAC,MAAM;AACT,IAAI,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;AAC3B,EAAE;;AAEF,EAAE,IAAI,KAAK,CAAC,UAAU,EAAE;AACxB,IAAI,KAAK,CAAC,UAAU,CAAC,OAAO,GAAG,GAAG;AAClC,EAAE,CAAC,MAAM;AACT,IAAI,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;AACnD,EAAE;AACF;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ export interface IdenticonProps extends Omit<React.ImgHTMLAttributes<HTMLImageElement>, "src" | "alt"> {
3
+ /** The string the mark is derived from — typically the full name. */
4
+ seed: string;
5
+ /** Rendered edge length in px. Square by definition. */
6
+ size?: number;
7
+ alt?: string;
8
+ dataTestId?: string;
9
+ }
10
+ export declare const Identicon: React.FC<IdenticonProps>;
11
+ export default Identicon;
@@ -7,3 +7,5 @@ export * from "./chain-icon/ChainIcon";
7
7
  export * from "./tooltip/Tooltip";
8
8
  export * from "./card/Card";
9
9
  export * from "./spinner/ShurikenSpinner";
10
+ export * from "./tag/Tag";
11
+ export * from "./identicon/Identicon";
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import "./Tag.css";
3
+ export type TagTone = "outline" | "blue" | "amber" | "pink";
4
+ export interface TagProps extends React.HTMLAttributes<HTMLSpanElement> {
5
+ children: React.ReactNode;
6
+ /** Status tone. Tags carry status, never decoration. */
7
+ tone?: TagTone;
8
+ dataTestId?: string;
9
+ }
10
+ export declare const Tag: React.FC<TagProps>;
11
+ export default Tag;
@@ -4,6 +4,9 @@ interface AddressRecordProps {
4
4
  addresses: EnsAddressRecord[];
5
5
  onAddressesChanged: (addresses: EnsAddressRecord[]) => void;
6
6
  searchFilter?: string;
7
+ /** Reports whether this section currently renders anything, so the parent
8
+ * can show a single "no records found" state for the whole form. */
9
+ onVisibilityChange?: (isVisible: boolean) => void;
7
10
  }
8
- export declare const AddressRecords: ({ addresses, onAddressesChanged, initialAddresses, searchFilter, }: AddressRecordProps) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const AddressRecords: ({ addresses, onAddressesChanged, initialAddresses, searchFilter, onVisibilityChange, }: AddressRecordProps) => import("react/jsx-runtime").JSX.Element;
9
12
  export {};
@@ -5,6 +5,9 @@ interface ContenthashRecordProps {
5
5
  onContenthashRemoved: () => void;
6
6
  onContenthashAdded: (protocol: ContenthashProtocol) => void;
7
7
  searchFilter?: string;
8
+ /** Reports whether this section currently renders anything, so the parent
9
+ * can show a single "no records found" state for the whole form. */
10
+ onVisibilityChange?: (isVisible: boolean) => void;
8
11
  }
9
- export declare const ContenthashRecord: ({ contenthash, onContenthashChanged, onContenthashRemoved, onContenthashAdded, searchFilter, }: ContenthashRecordProps) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const ContenthashRecord: ({ contenthash, onContenthashChanged, onContenthashRemoved, onContenthashAdded, searchFilter, onVisibilityChange, }: ContenthashRecordProps) => import("react/jsx-runtime").JSX.Element;
10
13
  export {};
@@ -8,6 +8,9 @@ interface TextRecordsProps {
8
8
  searchFilter?: string;
9
9
  focusRecordKey?: string;
10
10
  focusTrigger?: number;
11
+ /** Reports whether this section currently renders anything, so the parent
12
+ * can show a single "no records found" state for the whole form. */
13
+ onVisibilityChange?: (isVisible: boolean) => void;
11
14
  }
12
- export declare const TextRecords: ({ texts, onTextsChanged, category, initialTexts, searchFilter, focusRecordKey, focusTrigger, }: TextRecordsProps) => import("react/jsx-runtime").JSX.Element;
15
+ export declare const TextRecords: ({ texts, onTextsChanged, category, initialTexts, searchFilter, focusRecordKey, focusTrigger, onVisibilityChange, }: TextRecordsProps) => import("react/jsx-runtime").JSX.Element;
13
16
  export {};
@@ -1,3 +1,5 @@
1
+ import "./styles/fonts.css";
1
2
  import "bootstrap/dist/css/bootstrap-grid.min.css";
3
+ import "./styles/tokens.css";
2
4
  import "./styles/utils.css";
3
5
  import "./styles/global.css";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thenamespace/ens-components",
3
- "version": "1.5.2",
3
+ "version": "2.0.0-alpha.1",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -83,7 +83,7 @@
83
83
  "@namespacesdk/addresses": "^1.0.15",
84
84
  "@namespacesdk/indexer": "^1.0.1",
85
85
  "@thenamespace/addresses": "^1.1.0",
86
- "@thenamespace/avatar": "^2.0.2",
86
+ "@thenamespace/avatar": "^2.0.1",
87
87
  "@thenamespace/mint-manager": "^1.1.1",
88
88
  "@thenamespace/offchain-manager": "^1.0.13",
89
89
  "bootstrap": "^5.3.0",