@kyle-test/zto-react-kit 0.0.0-alpha.3 → 0.0.0-alpha.5

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 (104) hide show
  1. package/{dist → build/default}/components/Badge/index.d.ts +2 -2
  2. package/{dist → build/default}/components/Breadcrumb/index.d.ts +1 -1
  3. package/{dist → build/default}/components/Button/index.d.ts +1 -1
  4. package/{dist → build/default}/components/Form/Group/index.d.ts +1 -1
  5. package/{dist → build/default}/components/Form/Input/index.d.ts +3 -3
  6. package/{dist → build/default}/components/Form/NumberInput/index.d.ts +2 -2
  7. package/{dist → build/default}/components/Form/Select/index.d.ts +1 -2
  8. package/{dist → build/default}/components/Form/Textarea/index.d.ts +4 -4
  9. package/{dist → build/default}/components/IconButton/index.d.ts +1 -1
  10. package/{dist → build/default}/components/WithTooltip/index.d.ts +1 -1
  11. package/{dist → build/default}/components/shadcn/button.d.ts +3 -3
  12. package/build/default/components/shadcn/collapsible.d.ts +5 -0
  13. package/{dist → build/default}/components/shadcn/form.d.ts +4 -4
  14. package/build/default/components/shadcn/input.d.ts +4 -0
  15. package/{dist → build/default}/components/shadcn/label.d.ts +2 -2
  16. package/{dist → build/default}/components/shadcn/sheet.d.ts +2 -2
  17. package/{dist → build/default}/components/shadcn/sidebar.d.ts +4 -4
  18. package/{dist → build/default}/components/shadcn/textarea.d.ts +1 -1
  19. package/{dist → build/default}/components/shadcn/tooltip.d.ts +2 -2
  20. package/{dist → build/default}/components/shadcn/utils.d.ts +1 -1
  21. package/{dist → build/default}/index.d.ts +0 -1
  22. package/build/default/index.js +13557 -0
  23. package/{dist → build/default}/utils/context.d.ts +1 -1
  24. package/build/default/utils/styles.d.ts +1 -0
  25. package/build/shared/style.css +2 -0
  26. package/build/twPrefix/components/Badge/index.d.ts +12 -0
  27. package/build/twPrefix/components/Breadcrumb/index.d.ts +15 -0
  28. package/build/twPrefix/components/Button/index.d.ts +11 -0
  29. package/build/twPrefix/components/CenterLoading/index.d.ts +9 -0
  30. package/build/twPrefix/components/Form/Group/index.d.ts +11 -0
  31. package/build/twPrefix/components/Form/Input/index.d.ts +14 -0
  32. package/build/twPrefix/components/Form/Label/index.d.ts +1 -0
  33. package/build/twPrefix/components/Form/NumberInput/index.d.ts +28 -0
  34. package/build/twPrefix/components/Form/Select/index.d.ts +10 -0
  35. package/build/twPrefix/components/Form/Textarea/index.d.ts +12 -0
  36. package/build/twPrefix/components/Form/index.d.ts +7 -0
  37. package/build/twPrefix/components/IconButton/index.d.ts +8 -0
  38. package/build/twPrefix/components/Loader/index.d.ts +8 -0
  39. package/build/twPrefix/components/TruncateText/index.d.ts +7 -0
  40. package/build/twPrefix/components/WithIcon/index.d.ts +7 -0
  41. package/build/twPrefix/components/WithLabel/index.d.ts +7 -0
  42. package/build/twPrefix/components/WithTooltip/index.d.ts +42 -0
  43. package/build/twPrefix/components/index.d.ts +11 -0
  44. package/build/twPrefix/components/shadcn/accordion.d.ts +9 -0
  45. package/build/twPrefix/components/shadcn/avatar.d.ts +6 -0
  46. package/build/twPrefix/components/shadcn/breadcrumb.d.ts +15 -0
  47. package/build/twPrefix/components/shadcn/button.d.ts +12 -0
  48. package/build/twPrefix/components/shadcn/checkbox.d.ts +4 -0
  49. package/build/twPrefix/components/shadcn/collapsible.d.ts +5 -0
  50. package/build/twPrefix/components/shadcn/dialog.d.ts +25 -0
  51. package/build/twPrefix/components/shadcn/dropdown-menu.d.ts +27 -0
  52. package/build/twPrefix/components/shadcn/form.d.ts +25 -0
  53. package/build/twPrefix/components/shadcn/input.d.ts +4 -0
  54. package/build/twPrefix/components/shadcn/label.d.ts +5 -0
  55. package/build/twPrefix/components/shadcn/popover.d.ts +6 -0
  56. package/build/twPrefix/components/shadcn/radio-group.d.ts +5 -0
  57. package/build/twPrefix/components/shadcn/scroll-area.d.ts +5 -0
  58. package/build/twPrefix/components/shadcn/select.d.ts +13 -0
  59. package/build/twPrefix/components/shadcn/separator.d.ts +4 -0
  60. package/build/twPrefix/components/shadcn/sheet.d.ts +30 -0
  61. package/build/twPrefix/components/shadcn/sidebar.d.ts +67 -0
  62. package/build/twPrefix/components/shadcn/skeleton.d.ts +2 -0
  63. package/build/twPrefix/components/shadcn/slider.d.ts +4 -0
  64. package/build/twPrefix/components/shadcn/switch.d.ts +4 -0
  65. package/build/twPrefix/components/shadcn/tabs.d.ts +7 -0
  66. package/build/twPrefix/components/shadcn/textarea.d.ts +11 -0
  67. package/build/twPrefix/components/shadcn/tooltip.d.ts +12 -0
  68. package/build/twPrefix/components/shadcn/utils.d.ts +2 -0
  69. package/build/twPrefix/hooks/useIsMobile.d.ts +1 -0
  70. package/build/twPrefix/hooks/useMergeRefs.d.ts +6 -0
  71. package/build/twPrefix/index.d.ts +4 -0
  72. package/build/twPrefix/index.js +13557 -0
  73. package/build/twPrefix/utils/context.d.ts +6 -0
  74. package/build/twPrefix/utils/styles.d.ts +1 -0
  75. package/package.json +12 -9
  76. package/dist/components/shadcn/collapsible.d.ts +0 -5
  77. package/dist/components/shadcn/input.d.ts +0 -4
  78. package/dist/index.js +0 -13540
  79. package/dist/style.css +0 -1
  80. /package/{dist → build/default}/components/CenterLoading/index.d.ts +0 -0
  81. /package/{dist → build/default}/components/Form/Label/index.d.ts +0 -0
  82. /package/{dist → build/default}/components/Form/index.d.ts +0 -0
  83. /package/{dist → build/default}/components/Loader/index.d.ts +0 -0
  84. /package/{dist → build/default}/components/TruncateText/index.d.ts +0 -0
  85. /package/{dist → build/default}/components/WithIcon/index.d.ts +0 -0
  86. /package/{dist → build/default}/components/WithLabel/index.d.ts +0 -0
  87. /package/{dist → build/default}/components/index.d.ts +0 -0
  88. /package/{dist → build/default}/components/shadcn/accordion.d.ts +0 -0
  89. /package/{dist → build/default}/components/shadcn/avatar.d.ts +0 -0
  90. /package/{dist → build/default}/components/shadcn/breadcrumb.d.ts +0 -0
  91. /package/{dist → build/default}/components/shadcn/checkbox.d.ts +0 -0
  92. /package/{dist → build/default}/components/shadcn/dialog.d.ts +0 -0
  93. /package/{dist → build/default}/components/shadcn/dropdown-menu.d.ts +0 -0
  94. /package/{dist → build/default}/components/shadcn/popover.d.ts +0 -0
  95. /package/{dist → build/default}/components/shadcn/radio-group.d.ts +0 -0
  96. /package/{dist → build/default}/components/shadcn/scroll-area.d.ts +0 -0
  97. /package/{dist → build/default}/components/shadcn/select.d.ts +0 -0
  98. /package/{dist → build/default}/components/shadcn/separator.d.ts +0 -0
  99. /package/{dist → build/default}/components/shadcn/skeleton.d.ts +0 -0
  100. /package/{dist → build/default}/components/shadcn/slider.d.ts +0 -0
  101. /package/{dist → build/default}/components/shadcn/switch.d.ts +0 -0
  102. /package/{dist → build/default}/components/shadcn/tabs.d.ts +0 -0
  103. /package/{dist → build/default}/hooks/useIsMobile.d.ts +0 -0
  104. /package/{dist → build/default}/hooks/useMergeRefs.d.ts +0 -0
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ /**
3
+ * A helper to create a Context and Provider with no upfront default value, and
4
+ * without having to check for undefined all the time.
5
+ */
6
+ export declare function createContext<A>(): readonly [() => A & ({} | null), React.Context<A | undefined>];
@@ -0,0 +1 @@
1
+ export declare function tw(strings: TemplateStringsArray): string;
package/package.json CHANGED
@@ -1,24 +1,27 @@
1
1
  {
2
2
  "name": "@kyle-test/zto-react-kit",
3
- "version": "0.0.0-alpha.3",
3
+ "version": "0.0.0-alpha.5",
4
4
  "type": "module",
5
5
  "description": "A React component library with modern UI components",
6
- "main": "./dist/index.js",
7
- "module": "./dist/index.js",
8
- "types": "./dist/index.d.ts",
6
+ "main": "./build/default/index.js",
7
+ "module": "./build/default/index.js",
8
+ "types": "./build/default/index.d.ts",
9
9
  "publishConfig": {
10
10
  "access": "public"
11
11
  },
12
- "sideEffects": false,
13
12
  "exports": {
14
13
  ".": {
15
- "import": "./dist/index.js",
16
- "types": "./dist/index.d.ts"
14
+ "types": "./build/default/index.d.ts",
15
+ "import": "./build/default/index.js"
17
16
  },
18
- "./styles": "./dist/style.css"
17
+ "./twPrefix": {
18
+ "types": "./build/twPrefix/index.d.ts",
19
+ "import": "./build/twPrefix/index.js"
20
+ },
21
+ "./styles": "./build/shared/style.css"
19
22
  },
20
23
  "files": [
21
- "dist"
24
+ "build"
22
25
  ],
23
26
  "keywords": [
24
27
  "react",
@@ -1,5 +0,0 @@
1
- import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
2
- declare const Collapsible: import("react").ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & import("react").RefAttributes<HTMLDivElement>>;
3
- declare const CollapsibleTrigger: import("react").ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
4
- declare const CollapsibleContent: import("react").ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleContentProps & import("react").RefAttributes<HTMLDivElement>>;
5
- export { Collapsible, CollapsibleTrigger, CollapsibleContent };
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- declare const BASE_INPUT_CLASSNAME = "flex w-full rounded-lg border border-gray-300 bg-white px-3 py-2 text-gray-900 ring-offset-white file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-neutral-950 placeholder:[color:var(--zto-placeholder-color,#667085)] focus-visible:outline-none focus-visible:ring-2 focus-visible:-ring-offset-1 disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-500 dark:border-neutral-800 dark:bg-neutral-950 dark:ring-offset-neutral-950 dark:file:text-neutral-50 dark:placeholder:[color:var(--zto-placeholder-color,#667085)] dark:focus-visible:ring-neutral-300";
3
- declare const Input: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
4
- export { Input, BASE_INPUT_CLASSNAME };