@televet/kibble-ui 4.0.0-beta.16 → 4.0.0-beta.18

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.
@@ -5,7 +5,7 @@ import { resolve as o, dirname as l } from "node:path";
5
5
  const m = () => {
6
6
  const e = o(process.cwd(), ".kibble-temp"), t = o(e, "theme.config.ts");
7
7
  return n(e) || i(e, { recursive: !0 }), c(t, `
8
- import { system } from "@televet/kibble-ui/theme";
8
+ import { system } from "@televet/kibble-ui";
9
9
  export default system;
10
10
  `), t;
11
11
  }, p = (e) => {
@@ -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 } 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\";\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;"}
package/dist/esm/hocs.js CHANGED
@@ -1,38 +1,6 @@
1
- import { x as e } from "../chunks/vendor-BBfll6i3.js";
2
- import a from "react";
3
- import { B as s } from "../chunks/chakra-BqBkjpvZ.js";
4
- const d = a.forwardRef(
5
- function(o, r) {
6
- return /* @__PURE__ */ e.jsx(
7
- s,
8
- {
9
- color: "fg",
10
- display: "contents",
11
- className: "chakra-theme dark",
12
- "data-testid": "kibble-dark-mode",
13
- colorScheme: "dark",
14
- ref: r,
15
- ...o
16
- }
17
- );
18
- }
19
- ), h = (t) => /* @__PURE__ */ e.jsx(d, { children: t }), i = a.forwardRef(
20
- function(o, r) {
21
- return /* @__PURE__ */ e.jsx(
22
- s,
23
- {
24
- display: "contents",
25
- className: "chakra-theme light",
26
- "data-testid": "kibble-light-mode",
27
- colorScheme: "light",
28
- ref: r,
29
- ...o
30
- }
31
- );
32
- }
33
- ), l = (t) => /* @__PURE__ */ e.jsx(i, { children: t });
1
+ import { w as t, a as e } from "../chunks/index-CloRZB5L.js";
34
2
  export {
35
- h as withDarkMode,
36
- l as withLightMode
3
+ t as withDarkMode,
4
+ e as withLightMode
37
5
  };
38
6
  //# sourceMappingURL=hocs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"hocs.js","sources":["../../src/hocs/withDarkMode/index.tsx","../../src/hocs/withLightMode/index.tsx"],"sourcesContent":["import React from \"react\";\nimport { Box, BoxProps } from \"@chakra-ui/react/box\";\n\nconst DarkMode = React.forwardRef<HTMLDivElement, BoxProps>(\n function DarkMode(props, ref) {\n return (\n <Box\n color=\"fg\"\n display=\"contents\"\n className=\"chakra-theme dark\"\n data-testid=\"kibble-dark-mode\"\n colorScheme=\"dark\"\n ref={ref}\n {...props}\n />\n );\n },\n);\n\nexport const withDarkMode = (children: React.ReactNode): React.JSX.Element => {\n return <DarkMode>{children}</DarkMode>;\n};\n","import React from \"react\";\nimport { Box, BoxProps } from \"@chakra-ui/react/box\";\n\nconst LightMode = React.forwardRef<HTMLDivElement, BoxProps>(\n function LightMode(props, ref) {\n return (\n <Box\n display=\"contents\"\n className=\"chakra-theme light\"\n data-testid=\"kibble-light-mode\"\n colorScheme=\"light\"\n ref={ref}\n {...props}\n />\n );\n },\n);\n\nexport const withLightMode = (children: React.ReactNode): React.JSX.Element => {\n return <LightMode>{children}</LightMode>;\n};\n"],"names":["DarkMode","React","props","ref","jsx","Box","withDarkMode","children","LightMode","withLightMode"],"mappings":";;;AAGA,MAAMA,IAAWC,EAAM;AAAA,EACrB,SAAkBC,GAAOC,GAAK;AAE1B,WAAAC,gBAAAA,EAAA;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,OAAM;AAAA,QACN,SAAQ;AAAA,QACR,WAAU;AAAA,QACV,eAAY;AAAA,QACZ,aAAY;AAAA,QACZ,KAAAF;AAAA,QACC,GAAGD;AAAA,MAAA;AAAA,IACN;AAAA,EAAA;AAGN,GAEaI,IAAe,CAACC,MACpBH,gBAAAA,MAACJ,KAAU,UAAAO,GAAS,GCjBvBC,IAAYP,EAAM;AAAA,EACtB,SAAmBC,GAAOC,GAAK;AAE3B,WAAAC,gBAAAA,EAAA;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,SAAQ;AAAA,QACR,WAAU;AAAA,QACV,eAAY;AAAA,QACZ,aAAY;AAAA,QACZ,KAAAF;AAAA,QACC,GAAGD;AAAA,MAAA;AAAA,IACN;AAAA,EAAA;AAGN,GAEaO,IAAgB,CAACF,MACrBH,gBAAAA,MAACI,KAAW,UAAAD,GAAS;"}
1
+ {"version":3,"file":"hocs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
package/dist/esm/index.js CHANGED
@@ -1,17 +1,17 @@
1
- import { A as a, a as e } from "../chunks/alert.types-CvARYqVc.js";
1
+ import { A as a, a as t } from "../chunks/alert.types-CvARYqVc.js";
2
2
  import { A as s } from "../chunks/avatar.component-DLqm7tQt.js";
3
3
  import { a as m, b as i } from "../chunks/avatar.types-LQ1Bn8a3.js";
4
4
  import { A as f } from "../chunks/avatarGroup.component-DIDIECGK.js";
5
5
  import { B as c } from "../chunks/button.component-CA9bIFbq.js";
6
- import { b as l, d as S, c as T, e as b, a as d } from "../chunks/button.types-CujqF5RD.js";
7
- import { B as P } from "../chunks/buttonGroup.component-BLRJnRJW.js";
8
- import { C as z } from "../chunks/card.component-HX-4Y0j7.js";
9
- import { cardSizes as W } from "./components/Card.js";
10
- import { C as h } from "../chunks/characterCounter.component-DhiMcztY.js";
6
+ import { b as u, d as S, c as T, e as d, a as b } from "../chunks/button.types-CujqF5RD.js";
7
+ import { B as g } from "../chunks/buttonGroup.component-BLRJnRJW.js";
8
+ import { C as h } from "../chunks/card.component-HX-4Y0j7.js";
9
+ import { cardSizes as P } from "./components/Card.js";
10
+ import { C as W } from "../chunks/characterCounter.component-DhiMcztY.js";
11
11
  import { W as A } from "../chunks/checkbox.component-BN9GeeiB.js";
12
- import { W as k } from "../chunks/checkboxGroup.component-DNwf69Ss.js";
13
- import { W as G } from "../chunks/heading.component-B8niLTxz.js";
14
- import { I as R } from "../chunks/icon.component-w5bWbfVU.js";
12
+ import { W as D } from "../chunks/checkboxGroup.component-DNwf69Ss.js";
13
+ import { W as V } from "../chunks/heading.component-B8niLTxz.js";
14
+ import { I as G } from "../chunks/icon.component-w5bWbfVU.js";
15
15
  import { i as L } from "../chunks/icon.types-DLbVfMjG.js";
16
16
  import { L as N } from "../chunks/link.component-DGC1Xu5B.js";
17
17
  import { M as H } from "../chunks/menu.component-Bscyjw7R.js";
@@ -20,42 +20,49 @@ import { N as U } from "../chunks/notificationCounter.component-CSuqzMTF.js";
20
20
  import { notificationCounterSizes as Y, notificationCounterVariants as Z } from "./components/NotificationCounter.js";
21
21
  import { Picture as $ } from "./components/Picture.js";
22
22
  import { P as ro } from "../chunks/popover.component-CW5KsTYh.js";
23
- import { p as eo, b as to, a as so } from "../chunks/popover.types-C-V7Diw4.js";
23
+ import { p as to, b as eo, a as so } from "../chunks/popover.types-C-V7Diw4.js";
24
24
  import { W as mo } from "../chunks/radioGroup.component-kn8czn3N.js";
25
25
  import { R as xo } from "../chunks/ratingDots.component-D0FX80wA.js";
26
26
  import { W as no } from "../chunks/select.component-CqvAx7vP.js";
27
- import { S as uo } from "../chunks/sortableList.component-_DXfCTac.js";
27
+ import { S as lo } from "../chunks/sortableList.component-_DXfCTac.js";
28
28
  import { S as So } from "../chunks/spinner.component-D5tkelNc.js";
29
29
  import { s as bo } from "../chunks/spinner.types-g7cTFJkb.js";
30
- import { Swatch as Po, swatchSizes as vo } from "./components/Swatch.js";
30
+ import { Swatch as go, swatchSizes as vo } from "./components/Swatch.js";
31
31
  import { W as Mo } from "../chunks/switch.component-C9WMHurt.js";
32
- import { T as go } from "../chunks/tabs.component-Bp1Lu8Xb.js";
33
- import { T as Bo } from "../chunks/tag.component-A__B03TA.js";
34
- import { c as Vo, t as ko } from "../chunks/tag.types-B-pzEt1I.js";
35
- import { W as Go } from "../chunks/text.component-XYjOAc2s.js";
36
- import { W as Ro } from "../chunks/textInput.component-K4f7h4pP.js";
32
+ import { T as zo } from "../chunks/tabs.component-Bp1Lu8Xb.js";
33
+ import { T as yo } from "../chunks/tag.component-A__B03TA.js";
34
+ import { c as Bo, t as Do } from "../chunks/tag.types-B-pzEt1I.js";
35
+ import { W as Vo } from "../chunks/text.component-XYjOAc2s.js";
36
+ import { W as Go } from "../chunks/textInput.component-K4f7h4pP.js";
37
37
  import { W as Lo } from "../chunks/textarea.component-Cmbax8lT.js";
38
38
  import { M as No, T as Fo } from "../chunks/timePicker.component-DGKUi5P9.js";
39
39
  import { T as Ko } from "../chunks/timeRange.component-uYrO4YEs.js";
40
40
  import { T as qo } from "../chunks/tooltip.component-C3v2m2T2.js";
41
41
  import { a as Jo, D as Oo } from "../chunks/datePicker.component-D1WtrZJd.js";
42
- import { useColorMode as Uo, useColorModeValue as Xo } from "./hooks.js";
43
- import { KibbleThemeProvider as Zo } from "./theme.js";
42
+ import { w as Uo, a as Xo } from "../chunks/index-CloRZB5L.js";
43
+ import { useColorMode as Zo, useColorModeValue as _o } from "./hooks.js";
44
+ import { C as or } from "../chunks/conversationCard.component-CAKvEh_2.js";
45
+ import { S as ar, s as tr } from "../chunks/styledAvatar.types-ByQoyukM.js";
46
+ import { T as sr, a as pr } from "../chunks/tagBlock.component-B99Qzj2K.js";
47
+ import { T as ir } from "../chunks/timestamp.component-D764INLm.js";
48
+ import { alignments as fr, flexDirections as nr, placements as cr, statuses as lr, typographyVariants as ur } from "./shared/types.js";
49
+ import { KibbleThemeProvider as Tr, system as dr } from "./theme.js";
44
50
  export {
45
51
  a as Alert,
46
52
  s as Avatar,
47
53
  f as AvatarGroup,
48
54
  c as Button,
49
- P as ButtonGroup,
50
- z as Card,
51
- h as CharacterCounter,
55
+ g as ButtonGroup,
56
+ h as Card,
57
+ W as CharacterCounter,
52
58
  A as Checkbox,
53
- k as CheckboxGroup,
59
+ D as CheckboxGroup,
60
+ or as ConversationCard,
54
61
  Jo as DateFormats,
55
62
  Oo as DatePicker,
56
- G as Heading,
57
- R as Icon,
58
- Zo as KibbleThemeProvider,
63
+ V as Heading,
64
+ G as Icon,
65
+ Tr as KibbleThemeProvider,
59
66
  N as Link,
60
67
  H as Menu,
61
68
  No as Meridiem,
@@ -66,28 +73,34 @@ export {
66
73
  mo as RadioGroup,
67
74
  xo as RatingDots,
68
75
  no as Select,
69
- uo as SortableList,
76
+ lo as SortableList,
70
77
  So as Spinner,
71
- Po as Swatch,
78
+ ar as StyledAvatar,
79
+ go as Swatch,
72
80
  Mo as Switch,
73
- go as Tabs,
74
- Bo as Tag,
75
- Go as Text,
76
- Ro as TextInput,
81
+ zo as Tabs,
82
+ yo as Tag,
83
+ sr as TagBlock,
84
+ pr as TagDisabledState,
85
+ Vo as Text,
86
+ Go as TextInput,
77
87
  Lo as Textarea,
78
88
  Fo as TimePicker,
79
89
  Ko as TimeRange,
90
+ ir as Timestamp,
80
91
  qo as Tooltip,
81
- e as alertButtonPositions,
92
+ t as alertButtonPositions,
93
+ fr as alignments,
82
94
  m as avatarSizes,
83
95
  i as avatarVariants,
84
- l as buttonConfigVariants,
96
+ u as buttonConfigVariants,
85
97
  S as buttonIconPositions,
86
98
  T as buttonSizes,
87
- b as buttonSpinnerPlacements,
88
- d as buttonVariants,
89
- W as cardSizes,
90
- Vo as closeButtonDisplays,
99
+ d as buttonSpinnerPlacements,
100
+ b as buttonVariants,
101
+ P as cardSizes,
102
+ Bo as closeButtonDisplays,
103
+ nr as flexDirections,
91
104
  L as iconSizes,
92
105
  q as modalMotionPresets,
93
106
  E as modalPlacements,
@@ -95,13 +108,20 @@ export {
95
108
  O as modalSizes,
96
109
  Y as notificationCounterSizes,
97
110
  Z as notificationCounterVariants,
98
- eo as popoverSizes,
99
- to as popoverTriggerTypes,
111
+ cr as placements,
112
+ to as popoverSizes,
113
+ eo as popoverTriggerTypes,
100
114
  so as popoverVariants,
101
115
  bo as spinnerSizes,
116
+ lr as statuses,
117
+ tr as styledAvatarTypes,
102
118
  vo as swatchSizes,
103
- ko as tagSizes,
104
- Uo as useColorMode,
105
- Xo as useColorModeValue
119
+ dr as system,
120
+ Do as tagSizes,
121
+ ur as typographyVariants,
122
+ Zo as useColorMode,
123
+ _o as useColorModeValue,
124
+ Uo as withDarkMode,
125
+ Xo as withLightMode
106
126
  };
107
127
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/esm/theme.js CHANGED
@@ -2605,6 +2605,7 @@ const Y = (t) => /* @__PURE__ */ p.jsx(H, { attribute: "class", disableTransitio
2605
2605
  /* @__PURE__ */ p.jsx(Y, { ...g, children: b })
2606
2606
  ] });
2607
2607
  export {
2608
- fe as KibbleThemeProvider
2608
+ fe as KibbleThemeProvider,
2609
+ ge as system
2609
2610
  };
2610
2611
  //# sourceMappingURL=theme.js.map
@@ -1,3 +1,6 @@
1
1
  export * from './components';
2
+ export * from './hocs';
2
3
  export * from './hooks';
4
+ export * from './patterns';
5
+ export * from './shared/types';
3
6
  export * from './theme';
@@ -1 +1,2 @@
1
1
  export { KibbleThemeProvider } from './providers/theme.provider';
2
+ export { system } from './theme.config';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@televet/kibble-ui",
3
3
  "description": "Kibble Design System by Otto",
4
- "version": "4.0.0-beta.16",
4
+ "version": "4.0.0-beta.18",
5
5
  "type": "module",
6
6
  "main": "dist/cjs/index.cjs",
7
7
  "module": "dist/esm/index.js",
@@ -28,14 +28,24 @@
28
28
  },
29
29
  "./theme": {
30
30
  "import": {
31
- "types": "./dist/types/theme/theme.types.d.ts",
31
+ "types": "./dist/types/theme/index.d.ts",
32
32
  "default": "./dist/esm/theme/index.js"
33
33
  },
34
34
  "require": {
35
- "types": "./dist/types/theme/theme.types.d.ts",
35
+ "types": "./dist/types/theme/index.d.ts",
36
36
  "default": "./dist/cjs/theme/index.cjs"
37
37
  }
38
38
  },
39
+ "./theme/*": {
40
+ "import": {
41
+ "types": "./dist/types/theme/*.d.ts",
42
+ "default": "./dist/esm/theme/*.js"
43
+ },
44
+ "require": {
45
+ "types": "./dist/types/theme/*.d.ts",
46
+ "default": "./dist/cjs/theme/*.cjs"
47
+ }
48
+ },
39
49
  "./*": {
40
50
  "import": {
41
51
  "types": "./dist/types/components/*/index.d.ts",