@kyle-test/zto-react-kit 0.0.0-alpha.4 → 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.
- package/{dist → build/default}/components/Badge/index.d.ts +2 -2
- package/{dist → build/default}/components/Breadcrumb/index.d.ts +1 -1
- package/{dist → build/default}/components/Form/Group/index.d.ts +1 -1
- package/{dist → build/default}/components/Form/Input/index.d.ts +3 -3
- package/{dist → build/default}/components/Form/NumberInput/index.d.ts +1 -1
- package/{dist → build/default}/components/Form/Select/index.d.ts +1 -2
- package/{dist → build/default}/components/Form/Textarea/index.d.ts +3 -3
- package/{dist → build/default}/components/IconButton/index.d.ts +1 -1
- package/{dist → build/default}/components/WithTooltip/index.d.ts +1 -1
- package/{dist → build/default}/components/shadcn/button.d.ts +2 -2
- package/build/default/components/shadcn/collapsible.d.ts +5 -0
- package/{dist → build/default}/components/shadcn/form.d.ts +4 -4
- package/build/default/components/shadcn/input.d.ts +4 -0
- package/{dist → build/default}/components/shadcn/label.d.ts +2 -2
- package/{dist → build/default}/components/shadcn/sheet.d.ts +2 -2
- package/{dist → build/default}/components/shadcn/sidebar.d.ts +4 -4
- package/{dist → build/default}/components/shadcn/textarea.d.ts +1 -1
- package/{dist → build/default}/components/shadcn/tooltip.d.ts +2 -2
- package/{dist → build/default}/components/shadcn/utils.d.ts +1 -1
- package/{dist → build/default}/index.d.ts +0 -1
- package/build/default/index.js +13557 -0
- package/{dist → build/default}/utils/context.d.ts +1 -1
- package/build/default/utils/styles.d.ts +1 -0
- package/build/shared/style.css +2 -0
- package/build/twPrefix/components/Badge/index.d.ts +12 -0
- package/build/twPrefix/components/Breadcrumb/index.d.ts +15 -0
- package/build/twPrefix/components/Button/index.d.ts +11 -0
- package/build/twPrefix/components/CenterLoading/index.d.ts +9 -0
- package/build/twPrefix/components/Form/Group/index.d.ts +11 -0
- package/build/twPrefix/components/Form/Input/index.d.ts +14 -0
- package/build/twPrefix/components/Form/Label/index.d.ts +1 -0
- package/build/twPrefix/components/Form/NumberInput/index.d.ts +28 -0
- package/build/twPrefix/components/Form/Select/index.d.ts +10 -0
- package/build/twPrefix/components/Form/Textarea/index.d.ts +12 -0
- package/build/twPrefix/components/Form/index.d.ts +7 -0
- package/build/twPrefix/components/IconButton/index.d.ts +8 -0
- package/build/twPrefix/components/Loader/index.d.ts +8 -0
- package/build/twPrefix/components/TruncateText/index.d.ts +7 -0
- package/build/twPrefix/components/WithIcon/index.d.ts +7 -0
- package/build/twPrefix/components/WithLabel/index.d.ts +7 -0
- package/build/twPrefix/components/WithTooltip/index.d.ts +42 -0
- package/build/twPrefix/components/index.d.ts +11 -0
- package/build/twPrefix/components/shadcn/accordion.d.ts +9 -0
- package/build/twPrefix/components/shadcn/avatar.d.ts +6 -0
- package/build/twPrefix/components/shadcn/breadcrumb.d.ts +15 -0
- package/build/twPrefix/components/shadcn/button.d.ts +12 -0
- package/build/twPrefix/components/shadcn/checkbox.d.ts +4 -0
- package/build/twPrefix/components/shadcn/collapsible.d.ts +5 -0
- package/build/twPrefix/components/shadcn/dialog.d.ts +25 -0
- package/build/twPrefix/components/shadcn/dropdown-menu.d.ts +27 -0
- package/build/twPrefix/components/shadcn/form.d.ts +25 -0
- package/build/twPrefix/components/shadcn/input.d.ts +4 -0
- package/build/twPrefix/components/shadcn/label.d.ts +5 -0
- package/build/twPrefix/components/shadcn/popover.d.ts +6 -0
- package/build/twPrefix/components/shadcn/radio-group.d.ts +5 -0
- package/build/twPrefix/components/shadcn/scroll-area.d.ts +5 -0
- package/build/twPrefix/components/shadcn/select.d.ts +13 -0
- package/build/twPrefix/components/shadcn/separator.d.ts +4 -0
- package/build/twPrefix/components/shadcn/sheet.d.ts +30 -0
- package/build/twPrefix/components/shadcn/sidebar.d.ts +67 -0
- package/build/twPrefix/components/shadcn/skeleton.d.ts +2 -0
- package/build/twPrefix/components/shadcn/slider.d.ts +4 -0
- package/build/twPrefix/components/shadcn/switch.d.ts +4 -0
- package/build/twPrefix/components/shadcn/tabs.d.ts +7 -0
- package/build/twPrefix/components/shadcn/textarea.d.ts +11 -0
- package/build/twPrefix/components/shadcn/tooltip.d.ts +12 -0
- package/build/twPrefix/components/shadcn/utils.d.ts +2 -0
- package/build/twPrefix/hooks/useIsMobile.d.ts +1 -0
- package/build/twPrefix/hooks/useMergeRefs.d.ts +6 -0
- package/build/twPrefix/index.d.ts +4 -0
- package/build/twPrefix/index.js +13557 -0
- package/build/twPrefix/utils/context.d.ts +6 -0
- package/build/twPrefix/utils/styles.d.ts +1 -0
- package/package.json +12 -9
- package/dist/components/shadcn/collapsible.d.ts +0 -5
- package/dist/components/shadcn/input.d.ts +0 -4
- package/dist/index.js +0 -13540
- package/dist/style.css +0 -1
- /package/{dist → build/default}/components/Button/index.d.ts +0 -0
- /package/{dist → build/default}/components/CenterLoading/index.d.ts +0 -0
- /package/{dist → build/default}/components/Form/Label/index.d.ts +0 -0
- /package/{dist → build/default}/components/Form/index.d.ts +0 -0
- /package/{dist → build/default}/components/Loader/index.d.ts +0 -0
- /package/{dist → build/default}/components/TruncateText/index.d.ts +0 -0
- /package/{dist → build/default}/components/WithIcon/index.d.ts +0 -0
- /package/{dist → build/default}/components/WithLabel/index.d.ts +0 -0
- /package/{dist → build/default}/components/index.d.ts +0 -0
- /package/{dist → build/default}/components/shadcn/accordion.d.ts +0 -0
- /package/{dist → build/default}/components/shadcn/avatar.d.ts +0 -0
- /package/{dist → build/default}/components/shadcn/breadcrumb.d.ts +0 -0
- /package/{dist → build/default}/components/shadcn/checkbox.d.ts +0 -0
- /package/{dist → build/default}/components/shadcn/dialog.d.ts +0 -0
- /package/{dist → build/default}/components/shadcn/dropdown-menu.d.ts +0 -0
- /package/{dist → build/default}/components/shadcn/popover.d.ts +0 -0
- /package/{dist → build/default}/components/shadcn/radio-group.d.ts +0 -0
- /package/{dist → build/default}/components/shadcn/scroll-area.d.ts +0 -0
- /package/{dist → build/default}/components/shadcn/select.d.ts +0 -0
- /package/{dist → build/default}/components/shadcn/separator.d.ts +0 -0
- /package/{dist → build/default}/components/shadcn/skeleton.d.ts +0 -0
- /package/{dist → build/default}/components/shadcn/slider.d.ts +0 -0
- /package/{dist → build/default}/components/shadcn/switch.d.ts +0 -0
- /package/{dist → build/default}/components/shadcn/tabs.d.ts +0 -0
- /package/{dist → build/default}/hooks/useIsMobile.d.ts +0 -0
- /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
|
+
"version": "0.0.0-alpha.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A React component library with modern UI components",
|
|
6
|
-
"main": "./
|
|
7
|
-
"module": "./
|
|
8
|
-
"types": "./
|
|
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
|
-
"
|
|
16
|
-
"
|
|
14
|
+
"types": "./build/default/index.d.ts",
|
|
15
|
+
"import": "./build/default/index.js"
|
|
17
16
|
},
|
|
18
|
-
"./
|
|
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
|
-
"
|
|
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 };
|