@cyrilld/zestds 0.1.0 → 1.0.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.
@@ -96,7 +96,6 @@ interface ZestCursor {
96
96
  svg: string;
97
97
  }
98
98
  declare const ZEST_CURSORS: ZestCursor[];
99
- /** Un curseur par sa clé. */
100
99
  declare const findCursor: (name: string) => ZestCursor | undefined;
101
100
 
102
101
  /**
package/dist/cursors.d.ts CHANGED
@@ -96,7 +96,6 @@ interface ZestCursor {
96
96
  svg: string;
97
97
  }
98
98
  declare const ZEST_CURSORS: ZestCursor[];
99
- /** Un curseur par sa clé. */
100
99
  declare const findCursor: (name: string) => ZestCursor | undefined;
101
100
 
102
101
  /**
package/dist/cursors.js CHANGED
@@ -351,7 +351,8 @@ var ZEST_CURSORS = [
351
351
  svg: '<g><g><path fill-rule="evenodd" clip-rule="evenodd" d="M10.501 7.8601L18.884 16.2611C19.937 17.3171 19.19 19.1191 17.699 19.1191L16.475 19.119L17.6908 22.0067C17.9038 22.5127 17.9068 23.0727 17.6998 23.5817C17.4918 24.0917 17.0978 24.4897 16.5898 24.7027C16.3338 24.8097 16.0658 24.8637 15.7918 24.8637C14.9608 24.8637 14.2158 24.3687 13.8938 23.6027L12.616 20.565L11.784 21.3031C10.703 22.2591 9 21.4921 9 20.0481V8.4811C9 7.6971 9.947 7.3051 10.501 7.8601Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M10 9.12921C10 8.99821 10.159 8.93221 10.251 9.02521L18.159 16.9502C18.59 17.3822 18.284 18.1192 17.674 18.1192L14.97 18.1177L16.7696 22.3936C16.9966 22.9336 16.7426 23.5546 16.2036 23.7806C15.6626 24.0076 15.0426 23.7546 14.8166 23.2156L12.999 18.8917L11.139 20.5392C10.723 20.9072 10.0811 20.6507 10.007 20.1274L10 20.0262V9.12921Z" fill="black"/></g></g>'
352
352
  }
353
353
  ];
354
- var findCursor = (name) => ZEST_CURSORS.find((c) => c.name === name);
354
+ var ZEST_CURSOR_BY_NAME = new Map(ZEST_CURSORS.map((cursor) => [cursor.name, cursor]));
355
+ var findCursor = (name) => ZEST_CURSOR_BY_NAME.get(name);
355
356
 
356
357
  // src/components/foundations/cursors/index.tsx
357
358
  import { jsx } from "react/jsx-runtime";