@televet/kibble-ui 5.0.28 → 5.0.29

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 (100) hide show
  1. package/dist/cjs/cli/generate-theme-types.cjs +2 -2
  2. package/dist/cjs/cli/generate-theme-types.cjs.map +1 -1
  3. package/dist/esm/cli/generate-theme-types.js +28 -12
  4. package/dist/esm/cli/generate-theme-types.js.map +1 -1
  5. package/dist/types/components/Alert/alert.component.d.ts +1 -1
  6. package/dist/types/components/Alert/components/AlertButton/alertButton.component.d.ts +1 -1
  7. package/dist/types/components/Avatar/avatar.component.d.ts +1 -1
  8. package/dist/types/components/Avatar/components/AvatarBadge/avatarBadge.component.d.ts +1 -1
  9. package/dist/types/components/Avatar/components/AvatarRemoveButton/avatarRemoveButton.component.d.ts +1 -1
  10. package/dist/types/components/Avatar/components/AvatarTooltipTriggerWrapper/avatarTooltipTriggerWrapper.component.d.ts +1 -1
  11. package/dist/types/components/AvatarGroup/avatarGroup.component.d.ts +1 -1
  12. package/dist/types/components/Button/button.component.d.ts +1 -1
  13. package/dist/types/components/ButtonGroup/buttonGroup.component.d.ts +1 -1
  14. package/dist/types/components/Calendar/calendar.component.d.ts +1 -1
  15. package/dist/types/components/Calendar/calendarFooterButton.component.d.ts +1 -1
  16. package/dist/types/components/Card/card.component.d.ts +1 -1
  17. package/dist/types/components/CharacterCounter/characterCounter.component.d.ts +1 -1
  18. package/dist/types/components/Checkbox/checkbox.component.d.ts +1 -1
  19. package/dist/types/components/CheckboxGroup/checkboxGroup.component.d.ts +1 -1
  20. package/dist/types/components/ConversationCard/components/ConversationCardAvatarGroup/conversationCardAvatarGroup.component.d.ts +1 -1
  21. package/dist/types/components/ConversationCard/components/ConversationCardButtons/conversationCardButtons.component.d.ts +1 -1
  22. package/dist/types/components/ConversationCard/components/ConversationCardContent/conversationCardContent.component.d.ts +1 -1
  23. package/dist/types/components/ConversationCard/components/ConversationCardFooter/conversationCardFooter.component.d.ts +1 -1
  24. package/dist/types/components/ConversationCard/components/ConversationCardHeader/conversationCardHeader.component.d.ts +1 -1
  25. package/dist/types/components/ConversationCard/components/ConversationCardTags/conversationCardTags.component.d.ts +1 -1
  26. package/dist/types/components/ConversationCard/conversationCard.component.d.ts +1 -1
  27. package/dist/types/components/DatePicker/components/DatePickerCalendar/datePickerCalendar.component.d.ts +1 -1
  28. package/dist/types/components/DatePicker/components/DatePickerDay/datePickerCalendarDay.component.d.ts +1 -1
  29. package/dist/types/components/DatePicker/components/DatePickerFooter/datePickerFooter.component.d.ts +1 -1
  30. package/dist/types/components/DatePicker/components/DatePickerHeader/datePickerHeader.component.d.ts +1 -1
  31. package/dist/types/components/DatePicker/components/DatePickerInput/datePickerInput.component.d.ts +1 -1
  32. package/dist/types/components/DatePicker/components/DatePickerMonth/datePickerCalendarMonth.component.d.ts +1 -1
  33. package/dist/types/components/DatePicker/context/datePicker.context.d.ts +1 -1
  34. package/dist/types/components/DatePicker/context/datePicker.provider.d.ts +1 -1
  35. package/dist/types/components/DatePicker/datePicker.component.d.ts +1 -1
  36. package/dist/types/components/DateTimePicker/components/DateTimePickerCustomView/dateTimePickerCustomView.component.d.ts +1 -1
  37. package/dist/types/components/DateTimePicker/components/DateTimePickerQuickOptions/dateTimePickerQuickOptions.component.d.ts +1 -1
  38. package/dist/types/components/DateTimePicker/components/DateTimePickerRangeSelector/dateTimePickerRangeSelector.component.d.ts +1 -1
  39. package/dist/types/components/DateTimePicker/dateTimePicker.component.d.ts +1 -1
  40. package/dist/types/components/Divider/divider.component.d.ts +1 -1
  41. package/dist/types/components/Heading/heading.component.d.ts +1 -1
  42. package/dist/types/components/Icon/icon.component.d.ts +1 -1
  43. package/dist/types/components/Link/components/LinkIcon/linkIcon.component.d.ts +1 -1
  44. package/dist/types/components/Link/link.component.d.ts +1 -1
  45. package/dist/types/components/Logo/logo.component.d.ts +1 -1
  46. package/dist/types/components/MaintenanceBanner/maintenanceBanner.component.d.ts +1 -1
  47. package/dist/types/components/Menu/components/MenuButton/menuButton.component.d.ts +1 -1
  48. package/dist/types/components/Menu/components/MenuItem/menuItem.component.d.ts +1 -1
  49. package/dist/types/components/Menu/menu.component.d.ts +1 -1
  50. package/dist/types/components/Modal/components/ModalFooter/modalFooter.component.d.ts +1 -1
  51. package/dist/types/components/Modal/modal.component.d.ts +1 -1
  52. package/dist/types/components/NotificationCounter/notificationCounter.component.d.ts +1 -1
  53. package/dist/types/components/NumberInput/numberInput.component.d.ts +1 -1
  54. package/dist/types/components/Picture/picture.component.d.ts +1 -1
  55. package/dist/types/components/PinInput/pinInput.component.d.ts +1 -1
  56. package/dist/types/components/Popover/components/PopoverFooter/popoverFooter.component.d.ts +1 -1
  57. package/dist/types/components/Popover/components/PopoverHeader/popoverHeader.component.d.ts +1 -1
  58. package/dist/types/components/Popover/popover.component.d.ts +1 -1
  59. package/dist/types/components/Progress/progress.component.d.ts +1 -1
  60. package/dist/types/components/RadioGroup/components/Radio/radio.component.d.ts +1 -1
  61. package/dist/types/components/RadioGroup/radioGroup.component.d.ts +1 -1
  62. package/dist/types/components/Rating/rating.component.d.ts +1 -1
  63. package/dist/types/components/RatingDots/components/RatingDot/ratingDot.component.d.ts +1 -1
  64. package/dist/types/components/RatingDots/ratingDots.component.d.ts +1 -1
  65. package/dist/types/components/Select/components/SelectItemContent/selectItemContent.component.d.ts +1 -1
  66. package/dist/types/components/Select/components/SelectTrigger/selectTrigger.component.d.ts +1 -1
  67. package/dist/types/components/Select/select.component.d.ts +1 -1
  68. package/dist/types/components/SortableList/components/SortableListDragHandle/sortableListDragHandle.component.d.ts +1 -1
  69. package/dist/types/components/SortableList/components/SortableListItem/sortableListItem.component.d.ts +1 -1
  70. package/dist/types/components/SortableList/components/SortableListItem/sortableListItem.context.d.ts +1 -1
  71. package/dist/types/components/SortableList/sortableList.component.d.ts +1 -1
  72. package/dist/types/components/Spinner/spinner.component.d.ts +1 -1
  73. package/dist/types/components/StyledAvatar/styledAvatar.component.d.ts +1 -1
  74. package/dist/types/components/Swatch/swatch.component.d.ts +1 -1
  75. package/dist/types/components/Switch/switch.component.d.ts +1 -1
  76. package/dist/types/components/Tabs/components/Tab/tab.component.d.ts +1 -1
  77. package/dist/types/components/Tabs/tabs.component.d.ts +1 -1
  78. package/dist/types/components/Tag/tag.component.d.ts +1 -1
  79. package/dist/types/components/TagBlock/tagBlock.component.d.ts +1 -1
  80. package/dist/types/components/Text/text.component.d.ts +1 -1
  81. package/dist/types/components/TextInput/textInput.component.d.ts +1 -1
  82. package/dist/types/components/Textarea/textarea.component.d.ts +1 -1
  83. package/dist/types/components/TimePicker/components/TimeList/timeList.component.d.ts +1 -1
  84. package/dist/types/components/TimePicker/components/TimeOption/timeOption.component.d.ts +1 -1
  85. package/dist/types/components/TimePicker/timePicker.component.d.ts +1 -1
  86. package/dist/types/components/TimeRange/timeRange.component.d.ts +1 -1
  87. package/dist/types/components/Timestamp/timestamp.component.d.ts +1 -1
  88. package/dist/types/components/Toast/components/ToastAction/toastAction.component.d.ts +1 -1
  89. package/dist/types/components/Toast/components/Toaster/toaster.component.d.ts +1 -1
  90. package/dist/types/components/Toast/toast.component.d.ts +1 -1
  91. package/dist/types/components/Tooltip/tooltip.component.d.ts +1 -1
  92. package/dist/types/hocs/withDarkMode/withDarkMode.d.ts +1 -1
  93. package/dist/types/hocs/withFormControl/withFormControl.d.ts +1 -1
  94. package/dist/types/hocs/withLightMode/withLightMode.d.ts +1 -1
  95. package/dist/types/hocs/withTruncation.d.ts +1 -1
  96. package/dist/types/hooks/usePortalContentRef.d.ts +1 -1
  97. package/dist/types/shared/components/withVariantStory.d.ts +1 -1
  98. package/dist/types/theme/providers/colorMode.provider.d.ts +1 -1
  99. package/dist/types/theme/providers/theme.provider.d.ts +1 -1
  100. package/package.json +4 -3
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- "use strict";const n=require("node:child_process"),o=require("node:fs"),r=require("node:path"),s=()=>{const e=r.resolve(process.cwd(),".kibble-temp"),t=r.resolve(e,"theme.config.ts");return o.existsSync(e)||o.mkdirSync(e,{recursive:!0}),o.writeFileSync(t,`
2
+ "use strict";const s=require("node:child_process"),n=require("node:fs"),c=require("node:path"),a=require("node:url");var o=typeof document<"u"?document.currentScript:null;const l=()=>{const e=c.resolve(c.dirname(a.fileURLToPath(typeof document>"u"?require("url").pathToFileURL(__filename).href:o&&o.tagName.toUpperCase()==="SCRIPT"&&o.src||new URL("cjs/cli/generate-theme-types.cjs",document.baseURI).href)),"../../../package.json"),t=JSON.parse(n.readFileSync(e,"utf8"));return{cli:t.devDependencies["@chakra-ui/cli"],react:t.dependencies["@chakra-ui/react"]}},u=()=>{const e=c.resolve(process.cwd(),".kibble-temp"),t=c.resolve(e,"theme.config.ts");return n.existsSync(e)||n.mkdirSync(e,{recursive:!0}),n.writeFileSync(t,`
3
3
  import { system } from "@televet/kibble-ui/theme";
4
4
  export default system;
5
- `),t},c=e=>{const t=r.dirname(e);o.rmSync(t,{recursive:!0,force:!0})};try{console.log("🐕 Kibble UI: Creating temporary theme configuration...");const e=s();console.log("🐕 Kibble UI: Generating theme types..."),n.execSync(`npx @chakra-ui/cli typegen ${e}`,{stdio:"inherit"}),console.log("🐕 Kibble UI: Cleaning up..."),c(e),console.log("✨ Kibble UI: Theme types generated successfully!")}catch(e){console.error("❌ Kibble UI: Failed to generate theme types."),console.error(e),process.exit(1)}
5
+ `),t},i=e=>{const t=c.dirname(e);n.rmSync(t,{recursive:!0,force:!0})};let r;try{console.log("🐕 Kibble UI: Creating temporary theme configuration..."),r=u(),console.log("🐕 Kibble UI: Generating theme types...");const{cli:e,react:t}=l();s.execSync(`npx --yes -p @chakra-ui/cli@${e} -p @chakra-ui/react@${t} chakra typegen ${r}`,{stdio:"inherit"}),console.log("🐕 Kibble UI: Cleaning up..."),i(r),console.log("✨ Kibble UI: Theme types generated successfully!")}catch(e){if(console.error("❌ Kibble UI: Failed to generate theme types."),console.error(e),r)try{i(r)}catch{}process.exit(1)}
6
6
  //# sourceMappingURL=generate-theme-types.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"generate-theme-types.cjs","sources":["../../../src/cli/generate-theme-types.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { execSync } from 'node:child_process';\nimport { existsSync, mkdirSync, writeFileSync, rmSync } from 'node:fs';\nimport { dirname, resolve } from 'node:path';\n\n// Create a temporary theme config file that imports from kibble-ui\nconst createTempThemeConfig = (): string => {\n const tempDir = resolve(process.cwd(), '.kibble-temp');\n const tempFile = resolve(tempDir, 'theme.config.ts');\n\n if (!existsSync(tempDir)) {\n mkdirSync(tempDir, { recursive: true });\n }\n\n const configContent = `\nimport { system } from \"@televet/kibble-ui/theme\";\nexport default system;\n`;\n\n writeFileSync(tempFile, configContent);\n return tempFile;\n};\n\n// Clean up temporary files\nconst cleanup = (tempFile: string): void => {\n const tempDir = dirname(tempFile);\n rmSync(tempDir, { recursive: true, force: true });\n};\n\ntry {\n console.log('🐕 Kibble UI: Creating temporary theme configuration...');\n const tempFile = createTempThemeConfig();\n\n console.log('🐕 Kibble UI: Generating theme types...');\n execSync(`npx @chakra-ui/cli typegen ${tempFile}`, { stdio: 'inherit' });\n\n console.log('🐕 Kibble UI: Cleaning up...');\n cleanup(tempFile);\n\n console.log('✨ Kibble UI: Theme types generated successfully!');\n} catch (error) {\n console.error('❌ Kibble UI: Failed to generate theme types.');\n console.error(error);\n process.exit(1);\n}\n"],"names":["createTempThemeConfig","tempDir","resolve","tempFile","existsSync","mkdirSync","writeFileSync","cleanup","dirname","rmSync","execSync","error"],"mappings":";+FAOMA,EAAwB,IAAc,CAC1C,MAAMC,EAAUC,EAAA,QAAQ,QAAQ,IAAA,EAAO,cAAc,EAC/CC,EAAWD,EAAAA,QAAQD,EAAS,iBAAiB,EAE/C,OAACG,EAAAA,WAAWH,CAAO,GACrBI,EAAAA,UAAUJ,EAAS,CAAE,UAAW,EAAA,CAAM,EAQxCK,EAAA,cAAcH,EALQ;AAAA;AAAA;AAAA,CAKe,EAC9BA,CACT,EAGMI,EAAWJ,GAA2B,CACpC,MAAAF,EAAUO,UAAQL,CAAQ,EAChCM,EAAA,OAAOR,EAAS,CAAE,UAAW,GAAM,MAAO,GAAM,CAClD,EAEA,GAAI,CACF,QAAQ,IAAI,yDAAyD,EACrE,MAAME,EAAWH,EAAsB,EAEvC,QAAQ,IAAI,yCAAyC,EACrDU,EAAA,SAAS,8BAA8BP,CAAQ,GAAI,CAAE,MAAO,UAAW,EAEvE,QAAQ,IAAI,8BAA8B,EAC1CI,EAAQJ,CAAQ,EAEhB,QAAQ,IAAI,kDAAkD,CAChE,OAASQ,EAAO,CACd,QAAQ,MAAM,8CAA8C,EAC5D,QAAQ,MAAMA,CAAK,EACnB,QAAQ,KAAK,CAAC,CAChB"}
1
+ {"version":3,"file":"generate-theme-types.cjs","sources":["../../../src/cli/generate-theme-types.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { execSync } from 'node:child_process';\nimport { existsSync, mkdirSync, writeFileSync, rmSync, readFileSync } from 'node:fs';\nimport { dirname, resolve } from 'node:path';\nimport { fileURLToPath } from 'node:url';\n\n// Read kibble-ui's own pinned @chakra-ui/cli and @chakra-ui/react versions so the\n// npx-installed CLI always matches what this package was built and tested against,\n// instead of drifting out of sync with a second hardcoded copy of the versions.\nconst getChakraVersions = (): { cli: string; react: string } => {\n const packageJsonPath = resolve(dirname(fileURLToPath(import.meta.url)), '../../../package.json');\n const packageJson = JSON.parse(readFileSync(packageJsonPath, 'utf8'));\n return {\n cli: packageJson.devDependencies['@chakra-ui/cli'],\n react: packageJson.dependencies['@chakra-ui/react'],\n };\n};\n\n// Create a temporary theme config file that imports from kibble-ui\nconst createTempThemeConfig = (): string => {\n const tempDir = resolve(process.cwd(), '.kibble-temp');\n const tempFile = resolve(tempDir, 'theme.config.ts');\n\n if (!existsSync(tempDir)) {\n mkdirSync(tempDir, { recursive: true });\n }\n\n const configContent = `\nimport { system } from \"@televet/kibble-ui/theme\";\nexport default system;\n`;\n\n writeFileSync(tempFile, configContent);\n return tempFile;\n};\n\n// Clean up temporary files\nconst cleanup = (tempFile: string): void => {\n const tempDir = dirname(tempFile);\n rmSync(tempDir, { recursive: true, force: true });\n};\n\nlet tempFile: string | undefined;\n\ntry {\n console.log('🐕 Kibble UI: Creating temporary theme configuration...');\n tempFile = createTempThemeConfig();\n\n console.log('🐕 Kibble UI: Generating theme types...');\n // @chakra-ui/cli only lists @chakra-ui/react as a peerDependency, and npx's isolated\n // install of a bare `npx @chakra-ui/cli` doesn't reliably pull it in (varies by npm\n // version). Installing both explicitly into the same npx-isolated tree fixes resolution.\n const { cli: chakraCliVersion, react: chakraReactVersion } = getChakraVersions();\n execSync(\n `npx --yes -p @chakra-ui/cli@${chakraCliVersion} -p @chakra-ui/react@${chakraReactVersion} chakra typegen ${tempFile}`,\n { stdio: 'inherit' },\n );\n\n console.log('🐕 Kibble UI: Cleaning up...');\n cleanup(tempFile);\n\n console.log('✨ Kibble UI: Theme types generated successfully!');\n} catch (error) {\n console.error('❌ Kibble UI: Failed to generate theme types.');\n console.error(error);\n\n if (tempFile) {\n try {\n cleanup(tempFile);\n } catch {\n // Best-effort cleanup — the error above is the one that matters.\n }\n }\n\n process.exit(1);\n}\n"],"names":["getChakraVersions","packageJsonPath","resolve","dirname","fileURLToPath","_documentCurrentScript","packageJson","readFileSync","createTempThemeConfig","tempDir","tempFile","existsSync","mkdirSync","writeFileSync","cleanup","rmSync","chakraCliVersion","chakraReactVersion","execSync","error"],"mappings":";2KAUA,MAAMA,EAAoB,IAAsC,CACxD,MAAAC,EAAkBC,EAAAA,QAAQC,EAAQ,QAAAC,EAAA,cAA6B,OAAA,SAAA,IAAA,QAAA,KAAA,EAAA,cAAA,UAAA,EAAA,KAAAC,GAAAA,EAAA,QAAA,YAAA,IAAA,UAAAA,EAAA,KAAA,IAAA,IAAA,mCAAA,SAAA,OAAA,EAAA,IAAA,CAAC,EAAG,uBAAuB,EAC1FC,EAAc,KAAK,MAAMC,EAAAA,aAAaN,EAAiB,MAAM,CAAC,EAC7D,MAAA,CACL,IAAKK,EAAY,gBAAgB,gBAAgB,EACjD,MAAOA,EAAY,aAAa,kBAAkB,CACpD,CACF,EAGME,EAAwB,IAAc,CAC1C,MAAMC,EAAUP,EAAA,QAAQ,QAAQ,IAAA,EAAO,cAAc,EAC/CQ,EAAWR,EAAAA,QAAQO,EAAS,iBAAiB,EAE/C,OAACE,EAAAA,WAAWF,CAAO,GACrBG,EAAAA,UAAUH,EAAS,CAAE,UAAW,EAAA,CAAM,EAQxCI,EAAA,cAAcH,EALQ;AAAA;AAAA;AAAA,CAKe,EAC9BA,CACT,EAGMI,EAAWJ,GAA2B,CACpC,MAAAD,EAAUN,UAAQO,CAAQ,EAChCK,EAAA,OAAON,EAAS,CAAE,UAAW,GAAM,MAAO,GAAM,CAClD,EAEA,IAAIC,EAEJ,GAAI,CACF,QAAQ,IAAI,yDAAyD,EACrEA,EAAWF,EAAsB,EAEjC,QAAQ,IAAI,yCAAyC,EAIrD,KAAM,CAAE,IAAKQ,EAAkB,MAAOC,CAAA,EAAuBjB,EAAkB,EAC/EkB,EAAA,SACE,+BAA+BF,CAAgB,wBAAwBC,CAAkB,mBAAmBP,CAAQ,GACpH,CAAE,MAAO,SAAU,CACrB,EAEA,QAAQ,IAAI,8BAA8B,EAC1CI,EAAQJ,CAAQ,EAEhB,QAAQ,IAAI,kDAAkD,CAChE,OAASS,EAAO,CAId,GAHA,QAAQ,MAAM,8CAA8C,EAC5D,QAAQ,MAAMA,CAAK,EAEfT,EACE,GAAA,CACFI,EAAQJ,CAAQ,CAAA,MACV,CAAA,CAKV,QAAQ,KAAK,CAAC,CAChB"}
@@ -1,22 +1,38 @@
1
1
  #!/usr/bin/env node
2
- import { execSync as r } from "node:child_process";
3
- import { existsSync as n, mkdirSync as i, writeFileSync as c, rmSync as s } from "node:fs";
4
- import { resolve as o, dirname as l } from "node:path";
5
- const m = () => {
2
+ import { execSync as i } from "node:child_process";
3
+ import { existsSync as s, mkdirSync as a, writeFileSync as l, readFileSync as m, rmSync as p } from "node:fs";
4
+ import { resolve as o, dirname as n } from "node:path";
5
+ import { fileURLToPath as u } from "node:url";
6
+ const h = () => {
7
+ const e = o(n(u(import.meta.url)), "../../../package.json"), t = JSON.parse(m(e, "utf8"));
8
+ return {
9
+ cli: t.devDependencies["@chakra-ui/cli"],
10
+ react: t.dependencies["@chakra-ui/react"]
11
+ };
12
+ }, g = () => {
6
13
  const e = o(process.cwd(), ".kibble-temp"), t = o(e, "theme.config.ts");
7
- return n(e) || i(e, { recursive: !0 }), c(t, `
14
+ return s(e) || a(e, { recursive: !0 }), l(t, `
8
15
  import { system } from "@televet/kibble-ui/theme";
9
16
  export default system;
10
17
  `), t;
11
- }, p = (e) => {
12
- const t = l(e);
13
- s(t, { recursive: !0, force: !0 });
18
+ }, c = (e) => {
19
+ const t = n(e);
20
+ p(t, { recursive: !0, force: !0 });
14
21
  };
22
+ let r;
15
23
  try {
16
- console.log("🐕 Kibble UI: Creating temporary theme configuration...");
17
- const e = m();
18
- console.log("🐕 Kibble UI: Generating theme types..."), r(`npx @chakra-ui/cli typegen ${e}`, { stdio: "inherit" }), console.log("🐕 Kibble UI: Cleaning up..."), p(e), console.log("✨ Kibble UI: Theme types generated successfully!");
24
+ console.log("🐕 Kibble UI: Creating temporary theme configuration..."), r = g(), console.log("🐕 Kibble UI: Generating theme types...");
25
+ const { cli: e, react: t } = h();
26
+ i(
27
+ `npx --yes -p @chakra-ui/cli@${e} -p @chakra-ui/react@${t} chakra typegen ${r}`,
28
+ { stdio: "inherit" }
29
+ ), console.log("🐕 Kibble UI: Cleaning up..."), c(r), console.log("✨ Kibble UI: Theme types generated successfully!");
19
30
  } catch (e) {
20
- console.error("❌ Kibble UI: Failed to generate theme types."), console.error(e), process.exit(1);
31
+ if (console.error("❌ Kibble UI: Failed to generate theme types."), console.error(e), r)
32
+ try {
33
+ c(r);
34
+ } catch {
35
+ }
36
+ process.exit(1);
21
37
  }
22
38
  //# sourceMappingURL=generate-theme-types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"generate-theme-types.js","sources":["../../../src/cli/generate-theme-types.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { execSync } from 'node:child_process';\nimport { existsSync, mkdirSync, writeFileSync, rmSync } from 'node:fs';\nimport { dirname, resolve } from 'node:path';\n\n// Create a temporary theme config file that imports from kibble-ui\nconst createTempThemeConfig = (): string => {\n const tempDir = resolve(process.cwd(), '.kibble-temp');\n const tempFile = resolve(tempDir, 'theme.config.ts');\n\n if (!existsSync(tempDir)) {\n mkdirSync(tempDir, { recursive: true });\n }\n\n const configContent = `\nimport { system } from \"@televet/kibble-ui/theme\";\nexport default system;\n`;\n\n writeFileSync(tempFile, configContent);\n return tempFile;\n};\n\n// Clean up temporary files\nconst cleanup = (tempFile: string): void => {\n const tempDir = dirname(tempFile);\n rmSync(tempDir, { recursive: true, force: true });\n};\n\ntry {\n console.log('🐕 Kibble UI: Creating temporary theme configuration...');\n const tempFile = createTempThemeConfig();\n\n console.log('🐕 Kibble UI: Generating theme types...');\n execSync(`npx @chakra-ui/cli typegen ${tempFile}`, { stdio: 'inherit' });\n\n console.log('🐕 Kibble UI: Cleaning up...');\n cleanup(tempFile);\n\n console.log('✨ Kibble UI: Theme types generated successfully!');\n} catch (error) {\n console.error('❌ Kibble UI: Failed to generate theme types.');\n console.error(error);\n process.exit(1);\n}\n"],"names":["createTempThemeConfig","tempDir","resolve","tempFile","existsSync","mkdirSync","writeFileSync","cleanup","dirname","rmSync","execSync","error"],"mappings":";;;;AAOA,MAAMA,IAAwB,MAAc;AAC1C,QAAMC,IAAUC,EAAQ,QAAQ,IAAA,GAAO,cAAc,GAC/CC,IAAWD,EAAQD,GAAS,iBAAiB;AAE/C,SAACG,EAAWH,CAAO,KACrBI,EAAUJ,GAAS,EAAE,WAAW,GAAA,CAAM,GAQxCK,EAAcH,GALQ;AAAA;AAAA;AAAA,CAKe,GAC9BA;AACT,GAGMI,IAAU,CAACJ,MAA2B;AACpC,QAAAF,IAAUO,EAAQL,CAAQ;AAChC,EAAAM,EAAOR,GAAS,EAAE,WAAW,IAAM,OAAO,IAAM;AAClD;AAEA,IAAI;AACF,UAAQ,IAAI,yDAAyD;AACrE,QAAME,IAAWH,EAAsB;AAEvC,UAAQ,IAAI,yCAAyC,GACrDU,EAAS,8BAA8BP,CAAQ,IAAI,EAAE,OAAO,WAAW,GAEvE,QAAQ,IAAI,8BAA8B,GAC1CI,EAAQJ,CAAQ,GAEhB,QAAQ,IAAI,kDAAkD;AAChE,SAASQ,GAAO;AACd,UAAQ,MAAM,8CAA8C,GAC5D,QAAQ,MAAMA,CAAK,GACnB,QAAQ,KAAK,CAAC;AAChB;"}
1
+ {"version":3,"file":"generate-theme-types.js","sources":["../../../src/cli/generate-theme-types.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { execSync } from 'node:child_process';\nimport { existsSync, mkdirSync, writeFileSync, rmSync, readFileSync } from 'node:fs';\nimport { dirname, resolve } from 'node:path';\nimport { fileURLToPath } from 'node:url';\n\n// Read kibble-ui's own pinned @chakra-ui/cli and @chakra-ui/react versions so the\n// npx-installed CLI always matches what this package was built and tested against,\n// instead of drifting out of sync with a second hardcoded copy of the versions.\nconst getChakraVersions = (): { cli: string; react: string } => {\n const packageJsonPath = resolve(dirname(fileURLToPath(import.meta.url)), '../../../package.json');\n const packageJson = JSON.parse(readFileSync(packageJsonPath, 'utf8'));\n return {\n cli: packageJson.devDependencies['@chakra-ui/cli'],\n react: packageJson.dependencies['@chakra-ui/react'],\n };\n};\n\n// Create a temporary theme config file that imports from kibble-ui\nconst createTempThemeConfig = (): string => {\n const tempDir = resolve(process.cwd(), '.kibble-temp');\n const tempFile = resolve(tempDir, 'theme.config.ts');\n\n if (!existsSync(tempDir)) {\n mkdirSync(tempDir, { recursive: true });\n }\n\n const configContent = `\nimport { system } from \"@televet/kibble-ui/theme\";\nexport default system;\n`;\n\n writeFileSync(tempFile, configContent);\n return tempFile;\n};\n\n// Clean up temporary files\nconst cleanup = (tempFile: string): void => {\n const tempDir = dirname(tempFile);\n rmSync(tempDir, { recursive: true, force: true });\n};\n\nlet tempFile: string | undefined;\n\ntry {\n console.log('🐕 Kibble UI: Creating temporary theme configuration...');\n tempFile = createTempThemeConfig();\n\n console.log('🐕 Kibble UI: Generating theme types...');\n // @chakra-ui/cli only lists @chakra-ui/react as a peerDependency, and npx's isolated\n // install of a bare `npx @chakra-ui/cli` doesn't reliably pull it in (varies by npm\n // version). Installing both explicitly into the same npx-isolated tree fixes resolution.\n const { cli: chakraCliVersion, react: chakraReactVersion } = getChakraVersions();\n execSync(\n `npx --yes -p @chakra-ui/cli@${chakraCliVersion} -p @chakra-ui/react@${chakraReactVersion} chakra typegen ${tempFile}`,\n { stdio: 'inherit' },\n );\n\n console.log('🐕 Kibble UI: Cleaning up...');\n cleanup(tempFile);\n\n console.log('✨ Kibble UI: Theme types generated successfully!');\n} catch (error) {\n console.error('❌ Kibble UI: Failed to generate theme types.');\n console.error(error);\n\n if (tempFile) {\n try {\n cleanup(tempFile);\n } catch {\n // Best-effort cleanup — the error above is the one that matters.\n }\n }\n\n process.exit(1);\n}\n"],"names":["getChakraVersions","packageJsonPath","resolve","dirname","fileURLToPath","packageJson","readFileSync","createTempThemeConfig","tempDir","tempFile","existsSync","mkdirSync","writeFileSync","cleanup","rmSync","chakraCliVersion","chakraReactVersion","execSync","error"],"mappings":";;;;;AAUA,MAAMA,IAAoB,MAAsC;AACxD,QAAAC,IAAkBC,EAAQC,EAAQC,EAAc,YAAY,GAAG,CAAC,GAAG,uBAAuB,GAC1FC,IAAc,KAAK,MAAMC,EAAaL,GAAiB,MAAM,CAAC;AAC7D,SAAA;AAAA,IACL,KAAKI,EAAY,gBAAgB,gBAAgB;AAAA,IACjD,OAAOA,EAAY,aAAa,kBAAkB;AAAA,EACpD;AACF,GAGME,IAAwB,MAAc;AAC1C,QAAMC,IAAUN,EAAQ,QAAQ,IAAA,GAAO,cAAc,GAC/CO,IAAWP,EAAQM,GAAS,iBAAiB;AAE/C,SAACE,EAAWF,CAAO,KACrBG,EAAUH,GAAS,EAAE,WAAW,GAAA,CAAM,GAQxCI,EAAcH,GALQ;AAAA;AAAA;AAAA,CAKe,GAC9BA;AACT,GAGMI,IAAU,CAACJ,MAA2B;AACpC,QAAAD,IAAUL,EAAQM,CAAQ;AAChC,EAAAK,EAAON,GAAS,EAAE,WAAW,IAAM,OAAO,IAAM;AAClD;AAEA,IAAIC;AAEJ,IAAI;AACF,UAAQ,IAAI,yDAAyD,GACrEA,IAAWF,EAAsB,GAEjC,QAAQ,IAAI,yCAAyC;AAIrD,QAAM,EAAE,KAAKQ,GAAkB,OAAOC,EAAA,IAAuBhB,EAAkB;AAC/E,EAAAiB;AAAA,IACE,+BAA+BF,CAAgB,wBAAwBC,CAAkB,mBAAmBP,CAAQ;AAAA,IACpH,EAAE,OAAO,UAAU;AAAA,EACrB,GAEA,QAAQ,IAAI,8BAA8B,GAC1CI,EAAQJ,CAAQ,GAEhB,QAAQ,IAAI,kDAAkD;AAChE,SAASS,GAAO;AAId,MAHA,QAAQ,MAAM,8CAA8C,GAC5D,QAAQ,MAAMA,CAAK,GAEfT;AACE,QAAA;AACF,MAAAI,EAAQJ,CAAQ;AAAA,IAAA,QACV;AAAA,IAAA;AAKV,UAAQ,KAAK,CAAC;AAChB;"}
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { Alert as CAlert } from '@chakra-ui/react/alert';
3
3
  import { HeadingProps } from '../Heading/heading.component';
4
4
  import { IconProps } from '../Icon/icon.component';
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../../../node_modules/react';
2
2
  import { AlertButtonPosition } from '../../alert.types';
3
3
  import { ButtonProps } from '../../../Button/button.component';
4
4
  import { Status } from '../../../../shared/types/status';
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { Avatar as CAvatar } from '@chakra-ui/react/avatar';
3
3
  import { TooltipProps } from '../Tooltip/tooltip.component';
4
4
  import { IconName } from '../Icon';
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../../../node_modules/react';
2
2
  import { IconName } from '../../../Icon';
3
3
  import { AvatarSize } from '../../avatar.types';
4
4
  import { ConditionalValue } from '@chakra-ui/react/styled-system';
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../../../node_modules/react';
2
2
  import { AvatarSize } from '../../avatar.types';
3
3
  interface AvatarRemoveButtonProps {
4
4
  /** Callback function to be called when the remove button is clicked. */
@@ -1,2 +1,2 @@
1
1
  import { CenterProps } from '@chakra-ui/react/center';
2
- export declare const AvatarTooltipTriggerWrapper: import('react').ForwardRefExoticComponent<CenterProps & import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
2
+ export declare const AvatarTooltipTriggerWrapper: import('../../../../../node_modules/react').ForwardRefExoticComponent<CenterProps & import('../../../../../node_modules/react').HTMLAttributes<HTMLDivElement> & import('../../../../../node_modules/react').RefAttributes<HTMLDivElement>>;
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { AvatarGroupProps as CAvatarGroupProps } from '@chakra-ui/react/avatar';
3
3
  import { AvatarProps } from '../Avatar/avatar.component';
4
4
  import { AvatarSize, AvatarVariant } from '../Avatar/avatar.types';
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { ButtonProps as CButtonProps } from '@chakra-ui/react/button';
3
3
  import { IconName } from '../Icon/icon.types';
4
4
  import { ButtonIconPosition, ButtonSize, ButtonSpinnerPlacement, ButtonVariant } from './button.types';
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { ButtonGroupProps as CButtonGroupProps } from '@chakra-ui/react/button';
3
3
  import { GroupedButton } from './buttonGroup.types';
4
4
  import { ButtonSize, ButtonVariant } from '../Button/button.types';
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { DateProps } from '../DatePicker/datePicker.types';
3
3
  import { CalendarFooterConfig } from './calendarFooterButton.component';
4
4
  export interface CalendarProps extends DateProps {
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  /**
3
3
  * The built-in preset values for CalendarFooterButton.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { BoxProps } from '@chakra-ui/react/box';
3
3
  import { CardSize } from './card.types';
4
4
  export interface BaseCardProps {
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  export interface BaseCharacterCounterProps {
3
3
  /** Current character count. */
4
4
  currentCount: number;
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { Checkbox as CCheckbox } from '@chakra-ui/react/checkbox';
3
3
  import { WithFormControlProps } from '../../hocs/withFormControl/withFormControl';
4
4
  import { FormControlSize } from '../../hocs/withFormControl/withFormControl.types';
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { CheckboxGroupProps as CCheckboxGroupProps } from '@chakra-ui/react/checkbox';
3
3
  import { WithFormControlProps } from '../../hocs/withFormControl/withFormControl';
4
4
  import { FlexDirection } from '../../shared/types/alignment';
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../../../node_modules/react';
2
2
  export interface ConversationCardAvatarGroupProps {
3
3
  /** Avatars to display in the group. */
4
4
  avatars: React.ReactNode[];
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../../../node_modules/react';
2
2
  import { MenuProps } from '../../../Menu';
3
3
  export interface ConversationCardOverlayProps {
4
4
  /** Determines if the conversation is open in an overlay. */
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../../../node_modules/react';
2
2
  import { TextProps } from '../../../Text/text.component';
3
3
  export interface ConversationCardContentProps {
4
4
  /** Content of the card. */
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../../../node_modules/react';
2
2
  import { IconProps } from '../../../Icon/icon.component';
3
3
  import { TextProps } from '../../../Text/text.component';
4
4
  export interface ConversationCardFooterProps {
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../../../node_modules/react';
2
2
  import { TimestampProps } from '../../../Timestamp/timestamp.component';
3
3
  import { ConversationCardAvatarGroupProps } from '../ConversationCardAvatarGroup/conversationCardAvatarGroup.component';
4
4
  export interface ConversationCardHeaderProps {
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../../../node_modules/react';
2
2
  import { TagProps } from '../../../Tag/tag.component';
3
3
  export type ConversationCardTag = TagProps & {
4
4
  /** Content to display in the tooltip. */
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { MenuProps } from '../Menu/menu.component';
3
3
  import { ConversationCardHeaderProps } from './components/ConversationCardHeader/conversationCardHeader.component';
4
4
  import { ConversationCardOverlayProps, ConversationCardPinProps } from './components/ConversationCardButtons/conversationCardButtons.component';
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../../../node_modules/react';
2
2
  interface DatePickerCalendarProps {
3
3
  /** If true, the month labels will be displayed. */
4
4
  showMonthLabels?: boolean;
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../../../node_modules/react';
2
2
  import { CornerRoundingFlags } from '../../datePicker.types';
3
3
  interface DayProps {
4
4
  /** Label of the day. */
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../../../node_modules/react';
2
2
  import { DateRange } from '../../datePicker.types';
3
3
  export interface DatePickerFooterProps {
4
4
  /** Text to display in the submit button.
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../../../node_modules/react';
2
2
  import { MenuButtonProps } from '../../../Menu/components/MenuButton/menuButton.component';
3
3
  interface DatePickerHeaderProps {
4
4
  /** Props to be passed to the menu buttons. */
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../../../node_modules/react';
2
2
  import { TextInputProps } from '../../../TextInput/textInput.component';
3
3
  interface DatePickerInputProps {
4
4
  /** Props to customize the input field. See `TextInput` for more information. */
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../../../node_modules/react';
2
2
  import { MonthType } from '@datepicker-react/hooks';
3
3
  export interface MonthProps {
4
4
  /** Callback function to be called when a day is selected. */
@@ -46,5 +46,5 @@ export declare const defaultFocusedDate: Date;
46
46
  export declare const defaultMinYear: number;
47
47
  export declare const defaultMaxYear: number;
48
48
  export declare const defaultDateFormat = DateFormats['ShortDate'];
49
- export declare const DatePickerContext: import('react').Context<IDatePickerContext>;
49
+ export declare const DatePickerContext: import('../../../../node_modules/react').Context<IDatePickerContext>;
50
50
  export declare const useDatePickerContext: () => IDatePickerContext;
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../../node_modules/react';
2
2
  import { DatePickerProps } from '../datePicker.component';
3
3
  import { FocusedInput } from './datePicker.context';
4
4
  type DatePickerProviderProps = DatePickerProps & {
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { DateProps } from './datePicker.types';
3
3
  import { TextInputProps } from '../TextInput/textInput.component';
4
4
  import { Placement } from '../../shared/types/placement';
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../../../node_modules/react';
2
2
  interface DateTimePickerCustomViewProps {
3
3
  /** Determines if the calendar view is single. */
4
4
  isSingleView: boolean;
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../../../node_modules/react';
2
2
  import { DateTimePickerDefaultOptionValue } from '../../dateTimePicker.types';
3
3
  interface DateTimePickerQuickOptionsProps {
4
4
  /** The currently selected quick option. */
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../../../node_modules/react';
2
2
  import { FocusedInput } from '../../../DatePicker/context/datePicker.context';
3
3
  interface DateTimePickerRangeSelectorProps {
4
4
  /** Label for the range selector. */
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { CalendarView } from './dateTimePicker.types';
3
3
  import { DateProps } from '../DatePicker/datePicker.types';
4
4
  import { Placement } from '../../shared/types/placement';
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { SeparatorProps } from '@chakra-ui/react/separator';
3
3
  export interface DividerProps extends SeparatorProps {
4
4
  /** Data test id for the divider.
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { ConditionalValue } from '@chakra-ui/react/styled-system';
3
3
  import { HeadingProps as CHeadingProps } from '@chakra-ui/react/heading';
4
4
  import { HeadingSize } from './heading.types';
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { IconName, IconSize } from './icon.types';
3
3
  import { BoxProps } from '@chakra-ui/react/box';
4
4
  import { TypographyVariant } from '../../shared/types/typography';
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../../../node_modules/react';
2
2
  import { IconProps } from '../../../Icon';
3
3
  export interface LinkIconProps extends Pick<IconProps, 'name'> {
4
4
  /** Position of the icon.
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { LinkProps as CLinkProps } from '@chakra-ui/react/link';
3
3
  import { TypographyVariant } from '../../shared/types';
4
4
  import { TextSize } from '../Text/text.types';
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { BoxProps } from '@chakra-ui/react/box';
3
3
  import { LogoType, LogoVariant } from './logo.types';
4
4
  export interface LogoProps extends BoxProps {
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { AlertProps } from '../Alert/alert.component';
3
3
  export interface MaintenanceBannerProps extends Omit<AlertProps, 'title' | 'description' | 'status' | 'hideCloseButton' | 'children'> {
4
4
  /**
@@ -1,7 +1,7 @@
1
1
  import { ButtonProps } from '../../../Button/button.component';
2
2
  import { TextProps } from '../../../Text/text.component';
3
3
  import { TooltipProps } from '../../../Tooltip/tooltip.component';
4
- import { default as React } from 'react';
4
+ import { default as React } from '../../../../../node_modules/react';
5
5
  export interface MenuButtonProps extends Omit<ButtonProps, 'children'> {
6
6
  /** If true, the caret will be hidden.
7
7
  * @default false
@@ -1,5 +1,5 @@
1
1
  import { Menu as CMenu } from '@chakra-ui/react/menu';
2
- import { default as React } from 'react';
2
+ import { default as React } from '../../../../../node_modules/react';
3
3
  import { MenuItemType } from './menuItem.types';
4
4
  import { MenuProps } from '../..';
5
5
  import { TypographyVariant } from '../../../../shared/types/typography';
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { Menu as CMenu } from '@chakra-ui/react/menu';
3
3
  import { MenuButtonProps } from './components/MenuButton/menuButton.component';
4
4
  import { MenuListOnOpenChangeProps } from './menu.types';
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../../../node_modules/react';
2
2
  import { Dialog } from '@chakra-ui/react/dialog';
3
3
  export interface ModalFooterProps extends Dialog.FooterProps {
4
4
  /** Content to be rendered in the footer. */
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { Dialog } from '@chakra-ui/react/dialog';
3
3
  import { ConditionalValue } from '@chakra-ui/react/styled-system';
4
4
  import { ModalFooterProps } from './components/ModalFooter/modalFooter.component';
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { FlexProps } from '@chakra-ui/react/flex';
3
3
  import { NotificationCounterSize, NotificationCounterVariant } from './notificationCounter.types';
4
4
  export interface NotificationCounterProps extends FlexProps {
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { WithFormControlProps } from '../../hocs/withFormControl/withFormControl';
3
3
  import { NumberInputRootProps as CNumberInputRootProps, NumberInputValueChangeDetails } from '@chakra-ui/react/number-input';
4
4
  import { FormControlSize } from '../../hocs/withFormControl/withFormControl.types';
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { ImageProps } from '@chakra-ui/react/image';
3
3
  export interface PictureProps extends ImageProps {
4
4
  /** A webp file source. If no webp source is provided, the src file will be used. */
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { PinInput as CPinInput } from '@chakra-ui/react/pin-input';
3
3
  import { WithFormControlProps } from '../../hocs/withFormControl/withFormControl';
4
4
  import { FormControlSize } from '../../shared/types';
@@ -1,4 +1,4 @@
1
- import { default as React, ReactNode } from 'react';
1
+ import { default as React, ReactNode } from '../../../../../node_modules/react';
2
2
  import { FlexProps } from '@chakra-ui/react/flex';
3
3
  import { PopoverTriggerType } from '../../popover.types';
4
4
  export interface PopoverFooterProps extends FlexProps {
@@ -1,4 +1,4 @@
1
- import { default as React, ReactNode } from 'react';
1
+ import { default as React, ReactNode } from '../../../../../node_modules/react';
2
2
  import { HeadingSize } from '../../../Heading';
3
3
  import { FlexProps } from '@chakra-ui/react/flex';
4
4
  import { PopoverTriggerType } from '../../popover.types';
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { Popover as CPopover } from '@chakra-ui/react/popover';
3
3
  import { HoverCard } from '@chakra-ui/react/hover-card';
4
4
  import { Placement } from '../../shared/types/placement';
@@ -1,5 +1,5 @@
1
1
  import { Progress as CProgress, ProgressRangeProps } from '@chakra-ui/react/progress';
2
- import { default as React } from 'react';
2
+ import { default as React } from '../../../node_modules/react';
3
3
  import { ProgressVariant } from './progress.types';
4
4
  export interface ProgressProps extends Omit<CProgress.RootProps, 'variant'> {
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../../../node_modules/react';
2
2
  import { RadioGroup } from '@chakra-ui/react/radio-group';
3
3
  import { FormControlSize } from '../../../../hocs/withFormControl/withFormControl.types';
4
4
  import { WithFormControlProps } from '../../../../hocs/withFormControl/withFormControl';
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { WithFormControlProps } from '../../hocs/withFormControl/withFormControl';
3
3
  import { RadioProps } from './components/Radio/radio.component';
4
4
  import { RadioGroup as CRadioGroup } from '@chakra-ui/react/radio-group';
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { RatingGroup } from '@chakra-ui/react/rating-group';
3
3
  import { WithFormControlProps } from '../../hocs/withFormControl/withFormControl';
4
4
  import { IconName } from '../Icon';
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../../../node_modules/react';
2
2
  export interface RatingDotProps {
3
3
  /** If true, the dot will be active. */
4
4
  active?: boolean;
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { WithFormControlProps } from '../../hocs/withFormControl/withFormControl';
3
3
  export interface RatingDotsProps extends WithFormControlProps {
4
4
  /** Label to be displayed centered below the dots. */
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../../../node_modules/react';
2
2
  import { SelectOption } from '../../select.types';
3
3
  import { FormControlSize } from '../../../../hocs/withFormControl/withFormControl.types';
4
4
  interface SelectItemContentProps {
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../../../node_modules/react';
2
2
  import { FormControlSize } from '../../../../hocs/withFormControl/withFormControl.types';
3
3
  interface SelectTriggerProps {
4
4
  /** Placeholder text to display in the trigger. */
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { Select as CSelect } from '@chakra-ui/react/select';
3
3
  import { WithFormControlProps } from '../../hocs/withFormControl/withFormControl';
4
4
  import { FormControlSize } from '../../hocs/withFormControl/withFormControl.types';
@@ -1,3 +1,3 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../../../node_modules/react';
2
2
  import { ButtonProps } from '../../../Button/button.component';
3
3
  export declare const SortableListDragHandle: ({ ["data-testid"]: dataTestId, ...rest }: ButtonProps) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../../../node_modules/react';
2
2
  import { List } from '@chakra-ui/react/list';
3
3
  import { UniqueIdentifier } from '@dnd-kit/core';
4
4
  export interface SortableListItemProps {
@@ -4,5 +4,5 @@ interface Context {
4
4
  listeners: DraggableSyntheticListeners;
5
5
  ref(node: HTMLElement | null): void;
6
6
  }
7
- export declare const SortableItemContext: import('react').Context<Context>;
7
+ export declare const SortableItemContext: import('../../../../../node_modules/react').Context<Context>;
8
8
  export {};
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { List } from '@chakra-ui/react/list';
3
3
  import { SortableListItemProps } from './components/SortableListItem/sortableListItem.component';
4
4
  export interface SortableListProps extends Omit<List.RootProps, 'onChange'> {
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { SpinnerSize } from './spinner.types';
3
3
  import { TextProps } from '../Text/text.component';
4
4
  import { TypographyVariant } from '../../shared/types';
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { AvatarProps } from '../Avatar/avatar.component';
3
3
  import { StyledAvatarType } from './styledAvatar.types';
4
4
  export interface StyledAvatarProps extends AvatarProps {
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { BoxProps } from '@chakra-ui/react/box';
3
3
  import { SwatchSize } from './swatch.types';
4
4
  export interface BaseSwatchProps {
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { Switch as CSwitch } from '@chakra-ui/react/switch';
3
3
  import { WithFormControlProps } from '../../hocs/withFormControl/withFormControl';
4
4
  import { FormControlSize } from '../../hocs/withFormControl/withFormControl.types';
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../../../node_modules/react';
2
2
  import { Tabs } from '@chakra-ui/react/tabs';
3
3
  import { IconName } from '../../../Icon';
4
4
  import { NotificationCounterProps } from '../../../NotificationCounter/notificationCounter.component';
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { Tabs as CTabs } from '@chakra-ui/react/tabs';
3
3
  import { TabSize } from './components/Tab/tab.types';
4
4
  import { TabProps } from './components/Tab/tab.component';
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { Tag as CTag } from '@chakra-ui/react/tag';
3
3
  import { CloseButtonDisplay, TagSize } from './tag.types';
4
4
  import { Status } from '../../shared/types/status';
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { MenuProps } from '../Menu/menu.component';
3
3
  import { TagBlockTag } from './tagBlock.types';
4
4
  interface BaseTagBlockProps {
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { TextProps as CTextProps } from '@chakra-ui/react/text';
3
3
  import { WithTruncationProps } from '../../hocs/withTruncation';
4
4
  import { TextSize } from './text.types';
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { WithFormControlProps } from '../../hocs/withFormControl/withFormControl';
3
3
  import { InputProps as CInputProps } from '@chakra-ui/react/input';
4
4
  import { FormControlSize } from '../../hocs/withFormControl/withFormControl.types';
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { TextareaProps as CTextareaProps } from '@chakra-ui/react/textarea';
3
3
  import { FormControlSize } from '../../hocs/withFormControl/withFormControl.types';
4
4
  import { WithFormControlProps } from '../../hocs/withFormControl/withFormControl';
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../../../node_modules/react';
2
2
  interface ScrollContainerProps {
3
3
  /** Options to display in the list. */
4
4
  options: string[];
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../../../node_modules/react';
2
2
  interface TimeOptionProps {
3
3
  /** Ref to the option component. */
4
4
  innerRef?: React.Ref<HTMLDivElement | null> | null;
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { TextInputProps } from '../TextInput/textInput.component';
3
3
  import { Placement } from '../../shared/types/placement';
4
4
  export interface TimePickerProps {
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { FlexProps } from '@chakra-ui/react/flex';
3
3
  import { TimePickerProps } from '../TimePicker/timePicker.component';
4
4
  export interface TimeRangeProps extends FlexProps {
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { TextProps } from '../Text/text.component';
3
3
  export interface TimestampProps {
4
4
  /** The date to be shown. If it's today, it'll only show the time not the full date */
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../../../node_modules/react';
2
2
  import { ButtonProps } from '../../../Button/button.component';
3
3
  import { Status } from '../../../../shared/types/status';
4
4
  export interface ToastActionProps extends Omit<ButtonProps, 'children'> {
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../../../node_modules/react';
2
2
  import { CreateToasterReturn } from '@chakra-ui/react/toast';
3
3
  interface ToasterProps {
4
4
  /** Toaster to be used. */
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { IconProps } from '../Icon/icon.component';
3
3
  import { Status } from '../../shared/types/status';
4
4
  import { ToastActionProps } from './components/ToastAction/toastAction.component';
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { HoverCard } from '@chakra-ui/react/hover-card';
3
3
  import { Placement } from '../../shared/types/placement';
4
4
  export interface TooltipProps extends Omit<HoverCard.RootProps, 'children'> {
@@ -1,2 +1,2 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  export declare const withDarkMode: (children: React.ReactNode) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { FormControlLabelPosition, FormControlSize } from './withFormControl.types';
3
3
  import { SystemStyleObject } from '@chakra-ui/react/styled-system';
4
4
  import { TypographyVariant } from '../../shared/types/typography';
@@ -1,2 +1,2 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  export declare const withLightMode: (children: React.ReactNode) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { default as React, ReactNode } from 'react';
1
+ import { default as React, ReactNode } from '../../node_modules/react';
2
2
  import { TooltipProps } from '../components/Tooltip';
3
3
  export interface WithTruncationProps {
4
4
  /** If true, the text will be truncated. */
@@ -1,6 +1,6 @@
1
1
  interface PortalContextType {
2
2
  contentRef: React.RefObject<HTMLDivElement> | null;
3
3
  }
4
- export declare const PortalContext: import('react').Context<PortalContextType | undefined>;
4
+ export declare const PortalContext: import('../../node_modules/react').Context<PortalContextType | undefined>;
5
5
  export declare const usePortalContentRef: () => PortalContextType;
6
6
  export {};
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { ColorMode } from '../types/theme';
3
3
  export declare const VariantContainer: ({ children, onContrast, theme, }: {
4
4
  children: React.ReactNode;
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { ThemeProviderProps } from 'next-themes';
3
3
  export type ColorModeProviderProps = ThemeProviderProps;
4
4
  export declare const ColorModeProvider: (props: ColorModeProviderProps) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React } from '../../../node_modules/react';
2
2
  import { ChakraProviderProps } from '@chakra-ui/react';
3
3
  import { SystemContext } from '@chakra-ui/react/styled-system';
4
4
  import { ColorModeProviderProps } from './colorMode.provider';
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "packages/*"
5
5
  ],
6
6
  "description": "Kibble Design System by Otto",
7
- "version": "5.0.28",
7
+ "version": "5.0.29",
8
8
  "type": "module",
9
9
  "main": "./dist/cjs/index.cjs",
10
10
  "module": "./dist/esm/index.js",
@@ -19,7 +19,7 @@
19
19
  ],
20
20
  "sideEffects": false,
21
21
  "scripts": {
22
- "build": "npm run build:preparation && npm run build:documentation && tsc -b && tsc -p tsconfig.cli.json && vite build && chmod +x ./dist/esm/cli/*.js",
22
+ "build": "npm run build:preparation && tsc -b && tsc -p tsconfig.cli.json && vite build && chmod +x ./dist/esm/cli/*.js && npm run build:documentation",
23
23
  "build:documentation": "storybook build -o docs --quiet",
24
24
  "build:preparation": "npm run generate:theme && npm run generate:icons && npm run generate:logos",
25
25
  "build-storybook": "npm run build:preparation && storybook build",
@@ -163,6 +163,7 @@
163
163
  "prettier": "^3.5.3",
164
164
  "rollup-plugin-visualizer": "^5.14.0",
165
165
  "storybook": "^10.3.5",
166
+ "storybook-addon-code-editor": "^6.1.4",
166
167
  "typescript": "~5.7.2",
167
168
  "typescript-eslint": "^8.24.1",
168
169
  "vite": "^6.2.0",
@@ -179,12 +180,12 @@
179
180
  "react": "^19.0.0"
180
181
  },
181
182
  "dependencies": {
182
- "@televet/kibble-primitives": "*",
183
183
  "@chakra-ui/react": "^3.24.0",
184
184
  "@datepicker-react/hooks": "^2.8.4",
185
185
  "@dnd-kit/core": "^6.3.1",
186
186
  "@dnd-kit/modifiers": "^9.0.0",
187
187
  "@dnd-kit/sortable": "^10.0.0",
188
+ "@televet/kibble-primitives": "*",
188
189
  "next-themes": "^0.4.6"
189
190
  }
190
191
  }