@televet/kibble-ui 4.0.0-beta.125 → 4.0.0-beta.127

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.
Files changed (36) hide show
  1. package/dist/chunks/invertToken-DkyAF_BY.js +10 -0
  2. package/dist/chunks/invertToken-DkyAF_BY.js.map +1 -0
  3. package/dist/chunks/invertToken-Em3s32gh.js +2 -0
  4. package/dist/chunks/invertToken-Em3s32gh.js.map +1 -0
  5. package/dist/chunks/logo.types-CYh7XPT1.js +42 -0
  6. package/dist/chunks/logo.types-CYh7XPT1.js.map +1 -0
  7. package/dist/chunks/logo.types-DySDOgO1.js +2 -0
  8. package/dist/chunks/logo.types-DySDOgO1.js.map +1 -0
  9. package/dist/chunks/{theme.provider-C2SyH4Og.js → theme.provider-DJQeMr5K.js} +9 -10
  10. package/dist/chunks/theme.provider-DJQeMr5K.js.map +1 -0
  11. package/dist/chunks/theme.provider-fEXubEDT.js +28 -0
  12. package/dist/chunks/theme.provider-fEXubEDT.js.map +1 -0
  13. package/dist/cjs/components/Logo/index.cjs +1 -1
  14. package/dist/cjs/components/index.cjs +1 -1
  15. package/dist/cjs/index.cjs +1 -1
  16. package/dist/cjs/theme/index.cjs +1 -1
  17. package/dist/cjs/theme/semanticTokens/index.cjs +1 -1
  18. package/dist/cjs/theme/semanticTokens/index.cjs.map +1 -1
  19. package/dist/esm/components/Logo/index.js +3 -4
  20. package/dist/esm/components/index.js +78 -79
  21. package/dist/esm/index.js +98 -99
  22. package/dist/esm/theme/index.js +1 -1
  23. package/dist/esm/theme/semanticTokens/index.js +2 -0
  24. package/dist/esm/theme/semanticTokens/index.js.map +1 -1
  25. package/dist/types/components/Logo/logo.component.d.ts +4 -4
  26. package/dist/types/components/Logo/logo.recipe.d.ts +1 -5
  27. package/dist/types/components/Logo/logo.types.d.ts +0 -2
  28. package/dist/types/theme/semanticTokens/index.d.ts +1 -0
  29. package/package.json +1 -1
  30. package/dist/chunks/logo.types-BbSodfBq.js +0 -76
  31. package/dist/chunks/logo.types-BbSodfBq.js.map +0 -1
  32. package/dist/chunks/logo.types-CA_5hGAi.js +0 -2
  33. package/dist/chunks/logo.types-CA_5hGAi.js.map +0 -1
  34. package/dist/chunks/theme.provider-C2SyH4Og.js.map +0 -1
  35. package/dist/chunks/theme.provider-h0MhVrWb.js +0 -28
  36. package/dist/chunks/theme.provider-h0MhVrWb.js.map +0 -1
@@ -0,0 +1,10 @@
1
+ const e = (a) => ({
2
+ value: {
3
+ _light: a.value._dark,
4
+ _dark: a.value._light
5
+ }
6
+ });
7
+ export {
8
+ e as i
9
+ };
10
+ //# sourceMappingURL=invertToken-DkyAF_BY.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invertToken-DkyAF_BY.js","sources":["../../src/theme/semanticTokens/utils/invertToken.ts"],"sourcesContent":["import { SemanticTokenDefinition } from '../semanticTokens.types';\n\n// Swaps the light and dark values of a token\nexport const invertToken = (token: SemanticTokenDefinition): SemanticTokenDefinition => {\n return {\n value: {\n _light: token.value._dark,\n _dark: token.value._light,\n },\n };\n};\n"],"names":["invertToken","token"],"mappings":"AAGa,MAAAA,IAAc,CAACC,OACnB;AAAA,EACL,OAAO;AAAA,IACL,QAAQA,EAAM,MAAM;AAAA,IACpB,OAAOA,EAAM,MAAM;AAAA,EAAA;AAEvB;"}
@@ -0,0 +1,2 @@
1
+ "use strict";const r=e=>({value:{_light:e.value._dark,_dark:e.value._light}});exports.invertToken=r;
2
+ //# sourceMappingURL=invertToken-Em3s32gh.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invertToken-Em3s32gh.js","sources":["../../src/theme/semanticTokens/utils/invertToken.ts"],"sourcesContent":["import { SemanticTokenDefinition } from '../semanticTokens.types';\n\n// Swaps the light and dark values of a token\nexport const invertToken = (token: SemanticTokenDefinition): SemanticTokenDefinition => {\n return {\n value: {\n _light: token.value._dark,\n _dark: token.value._light,\n },\n };\n};\n"],"names":["invertToken","token"],"mappings":"aAGa,MAAAA,EAAeC,IACnB,CACL,MAAO,CACL,OAAQA,EAAM,MAAM,MACpB,MAAOA,EAAM,MAAM,MAAA,CAEvB"}
@@ -0,0 +1,42 @@
1
+ import { j as e } from "./jsx-runtime-C5mzlN2N.js";
2
+ import { F as l, a as p } from "./IconLogo-UpYiHEKq.js";
3
+ import { t as n } from "./typography-Cqrokog3.js";
4
+ import { b as c } from "./config-DlTdf-Yt.js";
5
+ import { u as f } from "./use-recipe-d63ABaZ3.js";
6
+ import { B as m } from "./box-Ck9I7FYv.js";
7
+ const u = {
8
+ full: {
9
+ width: "200px"
10
+ },
11
+ icon: {
12
+ width: "60px"
13
+ }
14
+ }, d = c({
15
+ base: {},
16
+ variants: {
17
+ type: u,
18
+ variant: n
19
+ },
20
+ defaultVariants: {
21
+ type: "full",
22
+ variant: "default"
23
+ }
24
+ }), j = ({ onClick: o, type: t = "full", variant: r = "default", ...s }) => {
25
+ const a = t === "full" ? l : p, i = f({ recipe: d })({ variant: r, type: t });
26
+ return /* @__PURE__ */ e.jsx(
27
+ m,
28
+ {
29
+ className: "Logo",
30
+ "data-testid": "kibble-logo",
31
+ ...o && { cursor: "pointer", onClick: o },
32
+ css: i,
33
+ ...s,
34
+ children: /* @__PURE__ */ e.jsx(a, { color: "currentColor", width: "100%", height: "100%" })
35
+ }
36
+ );
37
+ }, L = ["full", "icon"];
38
+ export {
39
+ j as L,
40
+ L as l
41
+ };
42
+ //# sourceMappingURL=logo.types-CYh7XPT1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logo.types-CYh7XPT1.js","sources":["../../src/components/Logo/logo.recipe.ts","../../src/components/Logo/logo.component.tsx","../../src/components/Logo/logo.types.ts"],"sourcesContent":["import { defineRecipe, SystemStyleObject } from '@chakra-ui/react/styled-system';\nimport { LogoType } from './logo.types';\nimport { typographyVariantStyles } from 'shared/records/typography';\n\nconst logoTypeStyles: Record<LogoType, SystemStyleObject> = {\n full: {\n width: '200px',\n },\n icon: {\n width: '60px',\n },\n};\n\nexport const logoRecipe = defineRecipe({\n base: {},\n variants: {\n type: logoTypeStyles,\n variant: typographyVariantStyles,\n },\n defaultVariants: {\n type: 'full',\n variant: 'default',\n },\n});\n","import React from 'react';\nimport { Box, BoxProps } from '@chakra-ui/react/box';\nimport { LogoType } from './logo.types';\nimport { FullLogo, IconLogo } from './generated';\nimport { useRecipe } from '@chakra-ui/react/styled-system';\nimport { logoRecipe } from './logo.recipe';\nimport { TypographyVariant } from 'shared/types/typography';\n\nexport interface LogoProps extends Omit<BoxProps, 'color'> {\n onClick?: () => void;\n type?: LogoType;\n variant?: TypographyVariant;\n}\n\nexport const Logo = ({ onClick, type = 'full', variant = 'default', ...rest }: LogoProps): React.JSX.Element => {\n const LogoComponent = type === 'full' ? FullLogo : IconLogo;\n const recipe = useRecipe({ recipe: logoRecipe });\n const styles = recipe({ variant, type });\n\n return (\n <Box\n className=\"Logo\"\n data-testid=\"kibble-logo\"\n {...(onClick && { cursor: 'pointer', onClick })}\n css={styles}\n {...rest}\n >\n <LogoComponent color=\"currentColor\" width=\"100%\" height=\"100%\" />\n </Box>\n );\n};\n","export const logoTypes = ['full', 'icon'] as const;\nexport type LogoType = (typeof logoTypes)[number];\n"],"names":["logoTypeStyles","logoRecipe","defineRecipe","typographyVariantStyles","Logo","onClick","type","variant","rest","LogoComponent","FullLogo","IconLogo","styles","useRecipe","jsx","Box","logoTypes"],"mappings":";;;;;;AAIA,MAAMA,IAAsD;AAAA,EAC1D,MAAM;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA,MAAM;AAAA,IACJ,OAAO;AAAA,EAAA;AAEX,GAEaC,IAAaC,EAAa;AAAA,EACrC,MAAM,CAAC;AAAA,EACP,UAAU;AAAA,IACR,MAAMF;AAAA,IACN,SAASG;AAAA,EACX;AAAA,EACA,iBAAiB;AAAA,IACf,MAAM;AAAA,IACN,SAAS;AAAA,EAAA;AAEb,CAAC,GCTYC,IAAO,CAAC,EAAE,SAAAC,GAAS,MAAAC,IAAO,QAAQ,SAAAC,IAAU,WAAW,GAAGC,QAAyC;AACxG,QAAAC,IAAgBH,MAAS,SAASI,IAAWC,GAE7CC,IADSC,EAAU,EAAE,QAAQZ,GAAY,EACzB,EAAE,SAAAM,GAAS,MAAAD,GAAM;AAGrC,SAAAQ,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,WAAU;AAAA,MACV,eAAY;AAAA,MACX,GAAIV,KAAW,EAAE,QAAQ,WAAW,SAAAA,EAAQ;AAAA,MAC7C,KAAKO;AAAA,MACJ,GAAGJ;AAAA,MAEJ,gCAACC,GAAc,EAAA,OAAM,gBAAe,OAAM,QAAO,QAAO,OAAO,CAAA;AAAA,IAAA;AAAA,EACjE;AAEJ,GC9BaO,IAAY,CAAC,QAAQ,MAAM;"}
@@ -0,0 +1,2 @@
1
+ "use strict";const t=require("./jsx-runtime-BjDatQAs.js"),r=require("./IconLogo-C4aZqkn1.js"),l=require("./typography-CtiaGoJG.js"),u=require("./config-BFcXpdZo.js"),a=require("./use-recipe-DaPWl_pL.js"),p=require("./box-Baq7UBls.js"),g={full:{width:"200px"},icon:{width:"60px"}},d=u.defineRecipe({base:{},variants:{type:g,variant:l.typographyVariantStyles},defaultVariants:{type:"full",variant:"default"}}),f=({onClick:e,type:o="full",variant:s="default",...i})=>{const n=o==="full"?r.ForwardRef:r.ForwardRef$1,c=a.useRecipe({recipe:d})({variant:s,type:o});return t.jsxRuntimeExports.jsx(p.Box,{className:"Logo","data-testid":"kibble-logo",...e&&{cursor:"pointer",onClick:e},css:c,...i,children:t.jsxRuntimeExports.jsx(n,{color:"currentColor",width:"100%",height:"100%"})})},x=["full","icon"];exports.Logo=f;exports.logoTypes=x;
2
+ //# sourceMappingURL=logo.types-DySDOgO1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logo.types-DySDOgO1.js","sources":["../../src/components/Logo/logo.recipe.ts","../../src/components/Logo/logo.component.tsx","../../src/components/Logo/logo.types.ts"],"sourcesContent":["import { defineRecipe, SystemStyleObject } from '@chakra-ui/react/styled-system';\nimport { LogoType } from './logo.types';\nimport { typographyVariantStyles } from 'shared/records/typography';\n\nconst logoTypeStyles: Record<LogoType, SystemStyleObject> = {\n full: {\n width: '200px',\n },\n icon: {\n width: '60px',\n },\n};\n\nexport const logoRecipe = defineRecipe({\n base: {},\n variants: {\n type: logoTypeStyles,\n variant: typographyVariantStyles,\n },\n defaultVariants: {\n type: 'full',\n variant: 'default',\n },\n});\n","import React from 'react';\nimport { Box, BoxProps } from '@chakra-ui/react/box';\nimport { LogoType } from './logo.types';\nimport { FullLogo, IconLogo } from './generated';\nimport { useRecipe } from '@chakra-ui/react/styled-system';\nimport { logoRecipe } from './logo.recipe';\nimport { TypographyVariant } from 'shared/types/typography';\n\nexport interface LogoProps extends Omit<BoxProps, 'color'> {\n onClick?: () => void;\n type?: LogoType;\n variant?: TypographyVariant;\n}\n\nexport const Logo = ({ onClick, type = 'full', variant = 'default', ...rest }: LogoProps): React.JSX.Element => {\n const LogoComponent = type === 'full' ? FullLogo : IconLogo;\n const recipe = useRecipe({ recipe: logoRecipe });\n const styles = recipe({ variant, type });\n\n return (\n <Box\n className=\"Logo\"\n data-testid=\"kibble-logo\"\n {...(onClick && { cursor: 'pointer', onClick })}\n css={styles}\n {...rest}\n >\n <LogoComponent color=\"currentColor\" width=\"100%\" height=\"100%\" />\n </Box>\n );\n};\n","export const logoTypes = ['full', 'icon'] as const;\nexport type LogoType = (typeof logoTypes)[number];\n"],"names":["logoTypeStyles","logoRecipe","defineRecipe","typographyVariantStyles","Logo","onClick","type","variant","rest","LogoComponent","FullLogo","IconLogo","styles","useRecipe","jsx","Box","logoTypes"],"mappings":"2OAIMA,EAAsD,CAC1D,KAAM,CACJ,MAAO,OACT,EACA,KAAM,CACJ,MAAO,MAAA,CAEX,EAEaC,EAAaC,EAAAA,aAAa,CACrC,KAAM,CAAC,EACP,SAAU,CACR,KAAMF,EACN,QAASG,EAAAA,uBACX,EACA,gBAAiB,CACf,KAAM,OACN,QAAS,SAAA,CAEb,CAAC,ECTYC,EAAO,CAAC,CAAE,QAAAC,EAAS,KAAAC,EAAO,OAAQ,QAAAC,EAAU,UAAW,GAAGC,KAAyC,CACxG,MAAAC,EAAgBH,IAAS,OAASI,EAAW,WAAAC,EAAA,aAE7CC,EADSC,EAAA,UAAU,CAAE,OAAQZ,EAAY,EACzB,CAAE,QAAAM,EAAS,KAAAD,EAAM,EAGrC,OAAAQ,EAAA,kBAAA,IAACC,EAAA,IAAA,CACC,UAAU,OACV,cAAY,cACX,GAAIV,GAAW,CAAE,OAAQ,UAAW,QAAAA,CAAQ,EAC7C,IAAKO,EACJ,GAAGJ,EAEJ,iCAACC,EAAc,CAAA,MAAM,eAAe,MAAM,OAAO,OAAO,MAAO,CAAA,CAAA,CACjE,CAEJ,EC9BaO,EAAY,CAAC,OAAQ,MAAM"}
@@ -16,6 +16,7 @@ import { c as to } from "./checkbox.anatomy-DCCPwuXc.js";
16
16
  import { i as oo } from "./tooltip.component-B15VGEn1.js";
17
17
  import { a as ro } from "./index-O8mh7GXa.js";
18
18
  import { coreColors as o } from "../esm/theme/tokens/colors/index.js";
19
+ import { i as l } from "./invertToken-DkyAF_BY.js";
19
20
  import { f as fe, t as ve } from "./typography-Cqrokog3.js";
20
21
  import { Global as ao } from "@emotion/react";
21
22
  import io, { forwardRef as j, useId as so } from "react";
@@ -9427,12 +9428,7 @@ const mi = (e) => /* @__PURE__ */ n.jsx(zt, { attribute: "class", disableTransit
9427
9428
  toast: 1700,
9428
9429
  tooltip: 1800,
9429
9430
  tooltipExtra: 1e4
9430
- }, Hi = d.zIndex(w(Fi)), l = (e) => ({
9431
- value: {
9432
- _light: e.value._dark,
9433
- _dark: e.value._light
9434
- }
9435
- }), t = {
9431
+ }, Hi = d.zIndex(w(Fi)), t = {
9436
9432
  primary: {
9437
9433
  default: {
9438
9434
  value: {
@@ -11707,7 +11703,7 @@ const mi = (e) => /* @__PURE__ */ n.jsx(zt, { attribute: "class", disableTransit
11707
11703
  triggerItem: de
11708
11704
  }
11709
11705
  }), Ge = "8px 12px 8px 20px !important", Is = i({
11710
- slots: ["trigger", "clearTrigger", "item", "itemGroupLabel", "valueText", "content"],
11706
+ slots: ["trigger", "clearTrigger", "item", "itemGroupLabel", "valueText", "content", "positioner"],
11711
11707
  base: {
11712
11708
  content: {
11713
11709
  borderRadius: "base",
@@ -11732,6 +11728,9 @@ const mi = (e) => /* @__PURE__ */ n.jsx(zt, { attribute: "class", disableTransit
11732
11728
  alignItems: "center",
11733
11729
  display: "flex",
11734
11730
  gap: 2
11731
+ },
11732
+ positioner: {
11733
+ zIndex: "1401 !important"
11735
11734
  }
11736
11735
  },
11737
11736
  variants: {
@@ -12214,7 +12213,7 @@ const mi = (e) => /* @__PURE__ */ n.jsx(zt, { attribute: "class", disableTransit
12214
12213
  }, O = ({ toaster: e }) => /* @__PURE__ */ n.jsx(Gt, { children: /* @__PURE__ */ n.jsx(di, { className: "Toaster", "data-testid": "kibble-toaster", toaster: e, children: ({ title: r, description: a, meta: s }) => {
12215
12214
  const m = typeof r == "string" ? r : void 0, y = typeof a == "string" ? a : void 0;
12216
12215
  return /* @__PURE__ */ n.jsx(Hs, { title: m, description: y, ...s });
12217
- } }) }), Sn = ({
12216
+ } }) }), zn = ({
12218
12217
  customTheme: e,
12219
12218
  children: r,
12220
12219
  enableSystem: a = !1,
@@ -12261,8 +12260,8 @@ const mi = (e) => /* @__PURE__ */ n.jsx(zt, { attribute: "class", disableTransit
12261
12260
  /* @__PURE__ */ n.jsx(mi, { storageKey: So, enableSystem: a, ...s, children: r })
12262
12261
  ] });
12263
12262
  export {
12264
- Sn as K,
12263
+ zn as K,
12265
12264
  Ls as k,
12266
12265
  Fs as s
12267
12266
  };
12268
- //# sourceMappingURL=theme.provider-C2SyH4Og.js.map
12267
+ //# sourceMappingURL=theme.provider-DJQeMr5K.js.map