@servicetitan/anvil2 1.12.1 → 1.12.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/Button2.js CHANGED
@@ -18,7 +18,7 @@ const Button = forwardRef(
18
18
  data,
19
19
  hasOverride: !!props["data-tracking-id"]
20
20
  });
21
- return /* @__PURE__ */ jsx(Button$1, { ref, "data-trackling-id": trackingId, ...props });
21
+ return /* @__PURE__ */ jsx(Button$1, { ref, "data-tracking-id": trackingId, ...props });
22
22
  }
23
23
  );
24
24
 
@@ -1 +1 @@
1
- {"version":3,"file":"Button2.js","sources":["../src/components/Button/Button.tsx"],"sourcesContent":["import {\n ButtonProps as CoreButtonProps,\n Button as CoreButton,\n childrenToString,\n} from \"@servicetitan/hammer-react\";\nimport { Ref, forwardRef } from \"react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\nimport { DataTrackingId } from \"../../types/DataTrackingId\";\n\nexport type ButtonProps = CoreButtonProps & DataTrackingId;\n\nexport const Button = forwardRef(\n (props: ButtonProps, ref: Ref<HTMLButtonElement>) => {\n const data = {\n children: childrenToString(props.children),\n appearance: props.appearance,\n icon: props.icon,\n size: props.size,\n type: props.type,\n };\n\n const trackingId = useTrackingId({\n name: \"Button\",\n data,\n hasOverride: !!props[\"data-tracking-id\"],\n });\n return <CoreButton ref={ref} data-trackling-id={trackingId} {...props} />;\n }\n);\n"],"names":["CoreButton"],"mappings":";;;;;;AAWO,MAAM,MAAS,GAAA,UAAA;AAAA,EACpB,CAAC,OAAoB,GAAgC,KAAA;AACnD,IAAA,MAAM,IAAO,GAAA;AAAA,MACX,QAAA,EAAU,gBAAiB,CAAA,KAAA,CAAM,QAAQ,CAAA;AAAA,MACzC,YAAY,KAAM,CAAA,UAAA;AAAA,MAClB,MAAM,KAAM,CAAA,IAAA;AAAA,MACZ,MAAM,KAAM,CAAA,IAAA;AAAA,MACZ,MAAM,KAAM,CAAA,IAAA;AAAA,KACd,CAAA;AAEA,IAAA,MAAM,aAAa,aAAc,CAAA;AAAA,MAC/B,IAAM,EAAA,QAAA;AAAA,MACN,IAAA;AAAA,MACA,WAAa,EAAA,CAAC,CAAC,KAAA,CAAM,kBAAkB,CAAA;AAAA,KACxC,CAAA,CAAA;AACD,IAAA,2BAAQA,QAAW,EAAA,EAAA,GAAA,EAAU,mBAAmB,EAAA,UAAA,EAAa,GAAG,KAAO,EAAA,CAAA,CAAA;AAAA,GACzE;AACF;;;;"}
1
+ {"version":3,"file":"Button2.js","sources":["../src/components/Button/Button.tsx"],"sourcesContent":["import {\n ButtonProps as CoreButtonProps,\n Button as CoreButton,\n childrenToString,\n} from \"@servicetitan/hammer-react\";\nimport { Ref, forwardRef } from \"react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\nimport { DataTrackingId } from \"../../types/DataTrackingId\";\n\nexport type ButtonProps = CoreButtonProps & DataTrackingId;\n\nexport const Button = forwardRef(\n (props: ButtonProps, ref: Ref<HTMLButtonElement>) => {\n const data = {\n children: childrenToString(props.children),\n appearance: props.appearance,\n icon: props.icon,\n size: props.size,\n type: props.type,\n };\n\n const trackingId = useTrackingId({\n name: \"Button\",\n data,\n hasOverride: !!props[\"data-tracking-id\"],\n });\n return <CoreButton ref={ref} data-tracking-id={trackingId} {...props} />;\n }\n);\n"],"names":["CoreButton"],"mappings":";;;;;;AAWO,MAAM,MAAS,GAAA,UAAA;AAAA,EACpB,CAAC,OAAoB,GAAgC,KAAA;AACnD,IAAA,MAAM,IAAO,GAAA;AAAA,MACX,QAAA,EAAU,gBAAiB,CAAA,KAAA,CAAM,QAAQ,CAAA;AAAA,MACzC,YAAY,KAAM,CAAA,UAAA;AAAA,MAClB,MAAM,KAAM,CAAA,IAAA;AAAA,MACZ,MAAM,KAAM,CAAA,IAAA;AAAA,MACZ,MAAM,KAAM,CAAA,IAAA;AAAA,KACd,CAAA;AAEA,IAAA,MAAM,aAAa,aAAc,CAAA;AAAA,MAC/B,IAAM,EAAA,QAAA;AAAA,MACN,IAAA;AAAA,MACA,WAAa,EAAA,CAAC,CAAC,KAAA,CAAM,kBAAkB,CAAA;AAAA,KACxC,CAAA,CAAA;AACD,IAAA,2BAAQA,QAAW,EAAA,EAAA,GAAA,EAAU,kBAAkB,EAAA,UAAA,EAAa,GAAG,KAAO,EAAA,CAAA,CAAA;AAAA,GACxE;AACF;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@servicetitan/anvil2",
3
- "version": "1.12.1",
3
+ "version": "1.12.2",
4
4
  "scripts": {
5
5
  "dev": "storybook dev -p 6006",
6
6
  "build": "npm run check-types && npm run build:css-utils && npm run build:vite && npm run build:icon-indexes",