@open-pioneer/chakra-snippets 4.3.0 → 4.4.0-dev.20251222113627
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/CHANGELOG.md +19 -0
- package/README.md +1 -0
- package/package.json +26 -18
- package/splitter.d.ts +12 -0
- package/splitter.js +23 -0
- package/splitter.js.map +1 -0
- package/tags-input.d.ts +20 -0
- package/tags-input.js +56 -0
- package/tags-input.js.map +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @open-pioneer/chakra-snippets
|
|
2
2
|
|
|
3
|
+
## 4.4.0-dev.20251222113627
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 20165aa: Add new snippet `splitter.tsx`.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 554d58e: Use `workspace:*` instead of `workspace:^` for local package references as default. This ensures that trails packages from this repository are always referenced with their exact version to avoid potential issues with version mismatches. If a project specifically wants to use other versions for some trails packages, a pnpm override can be used to force other versions.
|
|
12
|
+
- 4c77ad4: Fix missing entry points in typedoc documentation.
|
|
13
|
+
- 4c77ad4: Add missing entry point `tags-input`. The snippet could not be imported previously.
|
|
14
|
+
- Updated dependencies [554d58e]
|
|
15
|
+
- Updated dependencies [1cc3415]
|
|
16
|
+
- Updated dependencies [1872a6d]
|
|
17
|
+
- Updated dependencies [84068f2]
|
|
18
|
+
- Updated dependencies [2f6f69e]
|
|
19
|
+
- @open-pioneer/runtime@4.4.0-dev.20251222113627
|
|
20
|
+
- @open-pioneer/core@4.4.0-dev.20251222113627
|
|
21
|
+
|
|
3
22
|
## 4.3.0
|
|
4
23
|
|
|
5
24
|
### Minor Changes
|
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@open-pioneer/chakra-snippets",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.4.0-dev.20251222113627",
|
|
5
5
|
"description": "Contains snippets for Chakra UI.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"open-pioneer-trails"
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
"directory": "src/packages/chakra-snippets"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@chakra-ui/react": "^3.
|
|
18
|
-
"@ark-ui/react": "^5.
|
|
19
|
-
"react": "^19.2.
|
|
17
|
+
"@chakra-ui/react": "^3.30.0",
|
|
18
|
+
"@ark-ui/react": "^5.30.0",
|
|
19
|
+
"react": "^19.2.3",
|
|
20
20
|
"react-icons": "^5.5.0",
|
|
21
|
-
"@open-pioneer/
|
|
22
|
-
"@open-pioneer/
|
|
21
|
+
"@open-pioneer/runtime": "4.4.0-dev.20251222113627",
|
|
22
|
+
"@open-pioneer/core": "4.4.0-dev.20251222113627"
|
|
23
23
|
},
|
|
24
24
|
"exports": {
|
|
25
25
|
"./package.json": "./package.json",
|
|
@@ -43,14 +43,14 @@
|
|
|
43
43
|
"import": "./carousel.js",
|
|
44
44
|
"types": "./carousel.d.ts"
|
|
45
45
|
},
|
|
46
|
-
"./checkbox": {
|
|
47
|
-
"import": "./checkbox.js",
|
|
48
|
-
"types": "./checkbox.d.ts"
|
|
49
|
-
},
|
|
50
46
|
"./checkbox-card": {
|
|
51
47
|
"import": "./checkbox-card.js",
|
|
52
48
|
"types": "./checkbox-card.d.ts"
|
|
53
49
|
},
|
|
50
|
+
"./checkbox": {
|
|
51
|
+
"import": "./checkbox.js",
|
|
52
|
+
"types": "./checkbox.d.ts"
|
|
53
|
+
},
|
|
54
54
|
"./clipboard": {
|
|
55
55
|
"import": "./clipboard.js",
|
|
56
56
|
"types": "./clipboard.d.ts"
|
|
@@ -107,14 +107,14 @@
|
|
|
107
107
|
"import": "./qr-code.js",
|
|
108
108
|
"types": "./qr-code.d.ts"
|
|
109
109
|
},
|
|
110
|
-
"./radio": {
|
|
111
|
-
"import": "./radio.js",
|
|
112
|
-
"types": "./radio.d.ts"
|
|
113
|
-
},
|
|
114
110
|
"./radio-card": {
|
|
115
111
|
"import": "./radio-card.js",
|
|
116
112
|
"types": "./radio-card.d.ts"
|
|
117
113
|
},
|
|
114
|
+
"./radio": {
|
|
115
|
+
"import": "./radio.js",
|
|
116
|
+
"types": "./radio.d.ts"
|
|
117
|
+
},
|
|
118
118
|
"./rating": {
|
|
119
119
|
"import": "./rating.js",
|
|
120
120
|
"types": "./rating.d.ts"
|
|
@@ -123,6 +123,10 @@
|
|
|
123
123
|
"import": "./slider.js",
|
|
124
124
|
"types": "./slider.d.ts"
|
|
125
125
|
},
|
|
126
|
+
"./splitter": {
|
|
127
|
+
"import": "./splitter.js",
|
|
128
|
+
"types": "./splitter.d.ts"
|
|
129
|
+
},
|
|
126
130
|
"./status": {
|
|
127
131
|
"import": "./status.js",
|
|
128
132
|
"types": "./status.d.ts"
|
|
@@ -135,18 +139,22 @@
|
|
|
135
139
|
"import": "./switch.js",
|
|
136
140
|
"types": "./switch.d.ts"
|
|
137
141
|
},
|
|
142
|
+
"./tags-input": {
|
|
143
|
+
"import": "./tags-input.js",
|
|
144
|
+
"types": "./tags-input.d.ts"
|
|
145
|
+
},
|
|
138
146
|
"./tag": {
|
|
139
147
|
"import": "./tag.js",
|
|
140
148
|
"types": "./tag.d.ts"
|
|
141
149
|
},
|
|
142
|
-
"./toggle": {
|
|
143
|
-
"import": "./toggle.js",
|
|
144
|
-
"types": "./toggle.d.ts"
|
|
145
|
-
},
|
|
146
150
|
"./toggle-tip": {
|
|
147
151
|
"import": "./toggle-tip.js",
|
|
148
152
|
"types": "./toggle-tip.d.ts"
|
|
149
153
|
},
|
|
154
|
+
"./toggle": {
|
|
155
|
+
"import": "./toggle.js",
|
|
156
|
+
"types": "./toggle.d.ts"
|
|
157
|
+
},
|
|
150
158
|
"./tooltip": {
|
|
151
159
|
"import": "./tooltip.js",
|
|
152
160
|
"types": "./tooltip.d.ts"
|
package/splitter.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Splitter as ChakraSplitter } from "@chakra-ui/react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export interface SplitterProps extends ChakraSplitter.RootProps {
|
|
4
|
+
orientation?: "horizontal" | "vertical";
|
|
5
|
+
}
|
|
6
|
+
export declare const Splitter: React.ForwardRefExoticComponent<SplitterProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export declare const SplitterPanel: React.ForwardRefExoticComponent<ChakraSplitter.PanelProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export declare const SplitterResizeTrigger: React.ForwardRefExoticComponent<ChakraSplitter.ResizeTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
export declare const SplitterRoot: React.ForwardRefExoticComponent<ChakraSplitter.RootProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export declare const SplitterRootProvider: React.ForwardRefExoticComponent<ChakraSplitter.RootProviderProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export declare const SplitterPropsProvider: React.Provider<ChakraSplitter.RootBaseProps>;
|
|
12
|
+
export declare const SplitterContext: (props: import("@ark-ui/react").SplitterContextProps) => import("react").ReactNode;
|
package/splitter.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { Splitter as Splitter$1 } from '@chakra-ui/react';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
|
|
5
|
+
const Splitter = React.forwardRef(
|
|
6
|
+
function Splitter2(props, ref) {
|
|
7
|
+
const { orientation = "horizontal", children, ...rest } = props;
|
|
8
|
+
return /* @__PURE__ */ jsx(Splitter$1.Root, { ref, orientation, ...rest, children });
|
|
9
|
+
}
|
|
10
|
+
);
|
|
11
|
+
const SplitterPanel = React.forwardRef(function SplitterPanel2(props, ref) {
|
|
12
|
+
return /* @__PURE__ */ jsx(Splitter$1.Panel, { ...props, ref });
|
|
13
|
+
});
|
|
14
|
+
const SplitterResizeTrigger = React.forwardRef(function SplitterResizeTrigger2(props, ref) {
|
|
15
|
+
return /* @__PURE__ */ jsx(Splitter$1.ResizeTrigger, { ...props, ref });
|
|
16
|
+
});
|
|
17
|
+
const SplitterRoot = Splitter$1.Root;
|
|
18
|
+
const SplitterRootProvider = Splitter$1.RootProvider;
|
|
19
|
+
const SplitterPropsProvider = Splitter$1.PropsProvider;
|
|
20
|
+
const SplitterContext = Splitter$1.Context;
|
|
21
|
+
|
|
22
|
+
export { Splitter, SplitterContext, SplitterPanel, SplitterPropsProvider, SplitterResizeTrigger, SplitterRoot, SplitterRootProvider };
|
|
23
|
+
//# sourceMappingURL=splitter.js.map
|
package/splitter.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"splitter.js","sources":["splitter.tsx"],"sourcesContent":["import { Splitter as ChakraSplitter } from \"@chakra-ui/react\"\nimport * as React from \"react\"\n\nexport interface SplitterProps extends ChakraSplitter.RootProps {\n orientation?: \"horizontal\" | \"vertical\"\n}\n\nexport const Splitter = React.forwardRef<HTMLDivElement, SplitterProps>(\n function Splitter(props, ref) {\n const { orientation = \"horizontal\", children, ...rest } = props\n return (\n <ChakraSplitter.Root ref={ref} orientation={orientation} {...rest}>\n {children}\n </ChakraSplitter.Root>\n )\n },\n)\n\nexport const SplitterPanel = React.forwardRef<\n HTMLDivElement,\n ChakraSplitter.PanelProps\n>(function SplitterPanel(props, ref) {\n return <ChakraSplitter.Panel {...props} ref={ref} />\n})\n\nexport const SplitterResizeTrigger = React.forwardRef<\n HTMLButtonElement,\n ChakraSplitter.ResizeTriggerProps\n>(function SplitterResizeTrigger(props, ref) {\n return <ChakraSplitter.ResizeTrigger {...props} ref={ref} />\n})\n\nexport const SplitterRoot = ChakraSplitter.Root\nexport const SplitterRootProvider = ChakraSplitter.RootProvider\nexport const SplitterPropsProvider = ChakraSplitter.PropsProvider\nexport const SplitterContext = ChakraSplitter.Context\n"],"names":["Splitter","ChakraSplitter","SplitterPanel","SplitterResizeTrigger"],"mappings":";;;;AAOO,MAAM,WAAW,KAAA,CAAM,UAAA;AAAA,EAC5B,SAASA,SAAAA,CAAS,KAAA,EAAO,GAAA,EAAK;AAC5B,IAAA,MAAM,EAAE,WAAA,GAAc,YAAA,EAAc,QAAA,EAAU,GAAG,MAAK,GAAI,KAAA;AAC1D,IAAA,uBACE,GAAA,CAACC,WAAe,IAAA,EAAf,EAAoB,KAAU,WAAA,EAA2B,GAAG,MAC1D,QAAA,EACH,CAAA;AAAA,EAEJ;AACF;AAEO,MAAM,gBAAgB,KAAA,CAAM,UAAA,CAGjC,SAASC,cAAAA,CAAc,OAAO,GAAA,EAAK;AACnC,EAAA,2BAAQD,UAAA,CAAe,KAAA,EAAf,EAAsB,GAAG,OAAO,GAAA,EAAU,CAAA;AACpD,CAAC;AAEM,MAAM,wBAAwB,KAAA,CAAM,UAAA,CAGzC,SAASE,sBAAAA,CAAsB,OAAO,GAAA,EAAK;AAC3C,EAAA,2BAAQF,UAAA,CAAe,aAAA,EAAf,EAA8B,GAAG,OAAO,GAAA,EAAU,CAAA;AAC5D,CAAC;AAEM,MAAM,eAAeA,UAAA,CAAe;AACpC,MAAM,uBAAuBA,UAAA,CAAe;AAC5C,MAAM,wBAAwBA,UAAA,CAAe;AAC7C,MAAM,kBAAkBA,UAAA,CAAe;;;;"}
|
package/tags-input.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { TagsInput as ChakraTagsInput } from "@chakra-ui/react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { TagsInputRootBaseProps } from "@ark-ui/react";
|
|
4
|
+
interface TagsInputControlProps extends ChakraTagsInput.ControlProps {
|
|
5
|
+
clearable?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const TagsInputControl: React.ForwardRefExoticComponent<TagsInputControlProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export declare const TagsInputItem: React.ForwardRefExoticComponent<ChakraTagsInput.ItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
export declare const TagsInputRoot: ChakraTagsInput.RootProps;
|
|
10
|
+
export declare const TagsInputItemText: React.ForwardRefExoticComponent<ChakraTagsInput.ItemTextProps & React.RefAttributes<HTMLSpanElement>>;
|
|
11
|
+
export declare const TagsInputItemPreview: React.ForwardRefExoticComponent<Omit<import("@chakra-ui/react").PatchHtmlProps<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">>, "color" | "translate" | "transition" | "width" | "height" | "content" | "_hover" | "_active" | "_focus" | "_focusWithin" | "_focusVisible" | "_disabled" | "_visited" | "_target" | "_readOnly" | "_readWrite" | "_empty" | "_checked" | "_enabled" | "_expanded" | "_highlighted" | "_complete" | "_incomplete" | "_dragging" | "_before" | "_after" | "_firstLetter" | "_firstLine" | "_marker" | "_selection" | "_file" | "_backdrop" | "_first" | "_last" | "_notFirst" | "_notLast" | "_only" | "_even" | "_odd" | "_peerFocus" | "_peerHover" | "_peerActive" | "_peerFocusWithin" | "_peerFocusVisible" | "_peerDisabled" | "_peerChecked" | "_peerInvalid" | "_peerExpanded" | "_peerPlaceholderShown" | "_groupFocus" | "_groupHover" | "_groupActive" | "_groupFocusWithin" | "_groupFocusVisible" | "_groupDisabled" | "_groupChecked" | "_groupExpanded" | "_groupInvalid" | "_indeterminate" | "_required" | "_valid" | "_invalid" | "_autofill" | "_inRange" | "_outOfRange" | "_placeholder" | "_placeholderShown" | "_pressed" | "_selected" | "_grabbed" | "_underValue" | "_overValue" | "_atValue" | "_default" | "_optional" | "_open" | "_closed" | "_fullscreen" | "_loading" | "_hidden" | "_current" | "_currentPage" | "_currentStep" | "_today" | "_unavailable" | "_rangeStart" | "_rangeEnd" | "_now" | "_topmost" | "_motionReduce" | "_motionSafe" | "_print" | "_landscape" | "_portrait" | "_dark" | "_light" | "_osDark" | "_osLight" | "_highContrast" | "_lessContrast" | "_moreContrast" | "_ltr" | "_rtl" | "_scrollbar" | "_scrollbarThumb" | "_scrollbarTrack" | "_horizontal" | "_vertical" | "_icon" | "_starting" | "sm" | "smOnly" | "smDown" | "md" | "mdOnly" | "mdDown" | "lg" | "lgOnly" | "lgDown" | "xl" | "xlOnly" | "xlDown" | "2xl" | "2xlOnly" | "2xlDown" | "smToMd" | "smToLg" | "smToXl" | "smTo2xl" | "mdToLg" | "mdToXl" | "mdTo2xl" | "lgToXl" | "lgTo2xl" | "xlTo2xl" | "base" | "page" | "container" | "css" | "WebkitAppearance" | "WebkitBorderBefore" | "WebkitBorderBeforeColor" | "WebkitBorderBeforeStyle" | "WebkitBorderBeforeWidth" | "WebkitBoxReflect" | "WebkitLineClamp" | "WebkitMask" | "WebkitMaskAttachment" | "WebkitMaskClip" | "WebkitMaskComposite" | "WebkitMaskImage" | "WebkitMaskOrigin" | "WebkitMaskPosition" | "WebkitMaskPositionX" | "WebkitMaskPositionY" | "WebkitMaskRepeat" | "WebkitMaskRepeatX" | "WebkitMaskRepeatY" | "WebkitMaskSize" | "WebkitOverflowScrolling" | "WebkitTapHighlightColor" | "WebkitTextFillColor" | "WebkitTextStroke" | "WebkitTextStrokeColor" | "WebkitTextStrokeWidth" | "WebkitTouchCallout" | "WebkitUserModify" | "WebkitUserSelect" | "accentColor" | "alignContent" | "alignItems" | "alignSelf" | "alignTracks" | "all" | "anchorName" | "anchorScope" | "animation" | "animationComposition" | "animationDelay" | "animationDirection" | "animationDuration" | "animationFillMode" | "animationIterationCount" | "animationName" | "animationPlayState" | "animationRange" | "animationRangeEnd" | "animationRangeStart" | "animationTimeline" | "animationTimingFunction" | "appearance" | "aspectRatio" | "backdropFilter" | "backfaceVisibility" | "background" | "backgroundAttachment" | "backgroundBlendMode" | "backgroundClip" | "backgroundColor" | "backgroundImage" | "backgroundOrigin" | "backgroundPosition" | "backgroundPositionX" | "backgroundPositionY" | "backgroundRepeat" | "backgroundSize" | "blockSize" | "border" | "borderBlock" | "borderBlockColor" | "borderBlockEnd" | "borderBlockEndColor" | "borderBlockEndStyle" | "borderBlockEndWidth" | "borderBlockStart" | "borderBlockStartColor" | "borderBlockStartStyle" | "borderBlockStartWidth" | "borderBlockStyle" | "borderBlockWidth" | "borderBottom" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderCollapse" | "borderColor" | "borderEndEndRadius" | "borderEndStartRadius" | "borderImage" | "borderImageOutset" | "borderImageRepeat" | "borderImageSlice" | "borderImageSource" | "borderImageWidth" | "borderInline" | "borderInlineColor" | "borderInlineEnd" | "borderInlineEndColor" | "borderInlineEndStyle" | "borderInlineEndWidth" | "borderInlineStart" | "borderInlineStartColor" | "borderInlineStartStyle" | "borderInlineStartWidth" | "borderInlineStyle" | "borderInlineWidth" | "borderLeft" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRadius" | "borderRight" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderSpacing" | "borderStartEndRadius" | "borderStartStartRadius" | "borderStyle" | "borderTop" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "borderWidth" | "bottom" | "boxAlign" | "boxDecorationBreak" | "boxDirection" | "boxFlex" | "boxFlexGroup" | "boxLines" | "boxOrdinalGroup" | "boxOrient" | "boxPack" | "boxShadow" | "boxSizing" | "breakAfter" | "breakBefore" | "breakInside" | "captionSide" | "caret" | "caretColor" | "caretShape" | "clear" | "clip" | "clipPath" | "clipRule" | "colorInterpolationFilters" | "colorScheme" | "columnCount" | "columnFill" | "columnGap" | "columnRule" | "columnRuleColor" | "columnRuleStyle" | "columnRuleWidth" | "columnSpan" | "columnWidth" | "columns" | "contain" | "containIntrinsicBlockSize" | "containIntrinsicHeight" | "containIntrinsicInlineSize" | "containIntrinsicSize" | "containIntrinsicWidth" | "containerName" | "containerType" | "contentVisibility" | "counterIncrement" | "counterReset" | "counterSet" | "cursor" | "cx" | "cy" | "d" | "direction" | "display" | "dominantBaseline" | "emptyCells" | "fieldSizing" | "fill" | "fillOpacity" | "fillRule" | "filter" | "flex" | "flexBasis" | "flexDirection" | "flexFlow" | "flexGrow" | "flexShrink" | "flexWrap" | "float" | "floodColor" | "floodOpacity" | "font" | "fontFamily" | "fontFeatureSettings" | "fontKerning" | "fontLanguageOverride" | "fontOpticalSizing" | "fontPalette" | "fontSize" | "fontSizeAdjust" | "fontSmooth" | "fontStretch" | "fontStyle" | "fontSynthesis" | "fontSynthesisPosition" | "fontSynthesisSmallCaps" | "fontSynthesisStyle" | "fontSynthesisWeight" | "fontVariant" | "fontVariantAlternates" | "fontVariantCaps" | "fontVariantEastAsian" | "fontVariantEmoji" | "fontVariantLigatures" | "fontVariantNumeric" | "fontVariantPosition" | "fontVariationSettings" | "fontWeight" | "forcedColorAdjust" | "gap" | "grid" | "gridArea" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumn" | "gridColumnEnd" | "gridColumnGap" | "gridColumnStart" | "gridGap" | "gridRow" | "gridRowEnd" | "gridRowGap" | "gridRowStart" | "gridTemplate" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "hangingPunctuation" | "hyphenateCharacter" | "hyphenateLimitChars" | "hyphens" | "imageOrientation" | "imageRendering" | "imageResolution" | "imeMode" | "initialLetter" | "initialLetterAlign" | "inlineSize" | "inset" | "insetBlock" | "insetBlockEnd" | "insetBlockStart" | "insetInline" | "insetInlineEnd" | "insetInlineStart" | "interpolateSize" | "isolation" | "justifyContent" | "justifyItems" | "justifySelf" | "justifyTracks" | "left" | "letterSpacing" | "lightingColor" | "lineBreak" | "lineClamp" | "lineHeight" | "lineHeightStep" | "listStyle" | "listStyleImage" | "listStylePosition" | "listStyleType" | "margin" | "marginBlock" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInline" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "marginTrim" | "marker" | "markerEnd" | "markerMid" | "markerStart" | "mask" | "maskBorder" | "maskBorderMode" | "maskBorderOutset" | "maskBorderRepeat" | "maskBorderSlice" | "maskBorderSource" | "maskBorderWidth" | "maskClip" | "maskComposite" | "maskImage" | "maskMode" | "maskOrigin" | "maskPosition" | "maskRepeat" | "maskSize" | "maskType" | "masonryAutoFlow" | "mathDepth" | "mathShift" | "mathStyle" | "maxBlockSize" | "maxHeight" | "maxInlineSize" | "maxLines" | "maxWidth" | "minBlockSize" | "minHeight" | "minInlineSize" | "minWidth" | "mixBlendMode" | "objectFit" | "objectPosition" | "offset" | "offsetAnchor" | "offsetDistance" | "offsetPath" | "offsetPosition" | "offsetRotate" | "opacity" | "order" | "orphans" | "outline" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "overflow" | "overflowAnchor" | "overflowBlock" | "overflowClipBox" | "overflowClipMargin" | "overflowInline" | "overflowWrap" | "overflowX" | "overflowY" | "overlay" | "overscrollBehavior" | "overscrollBehaviorBlock" | "overscrollBehaviorInline" | "overscrollBehaviorX" | "overscrollBehaviorY" | "padding" | "paddingBlock" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInline" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "pageBreakAfter" | "pageBreakBefore" | "pageBreakInside" | "paintOrder" | "perspective" | "perspectiveOrigin" | "placeContent" | "placeItems" | "placeSelf" | "pointerEvents" | "position" | "positionAnchor" | "positionArea" | "positionTry" | "positionTryFallbacks" | "positionTryOrder" | "positionVisibility" | "printColorAdjust" | "quotes" | "r" | "resize" | "right" | "rotate" | "rowGap" | "rubyAlign" | "rubyMerge" | "rubyPosition" | "rx" | "ry" | "scale" | "scrollBehavior" | "scrollMargin" | "scrollMarginBlock" | "scrollMarginBlockEnd" | "scrollMarginBlockStart" | "scrollMarginBottom" | "scrollMarginInline" | "scrollMarginInlineEnd" | "scrollMarginInlineStart" | "scrollMarginLeft" | "scrollMarginRight" | "scrollMarginTop" | "scrollPadding" | "scrollPaddingBlock" | "scrollPaddingBlockEnd" | "scrollPaddingBlockStart" | "scrollPaddingBottom" | "scrollPaddingInline" | "scrollPaddingInlineEnd" | "scrollPaddingInlineStart" | "scrollPaddingLeft" | "scrollPaddingRight" | "scrollPaddingTop" | "scrollSnapAlign" | "scrollSnapCoordinate" | "scrollSnapDestination" | "scrollSnapPointsX" | "scrollSnapPointsY" | "scrollSnapStop" | "scrollSnapType" | "scrollSnapTypeX" | "scrollSnapTypeY" | "scrollTimeline" | "scrollTimelineAxis" | "scrollTimelineName" | "scrollbarColor" | "scrollbarGutter" | "scrollbarWidth" | "shapeImageThreshold" | "shapeMargin" | "shapeOutside" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "tabSize" | "tableLayout" | "textAlign" | "textAlignLast" | "textAnchor" | "textBox" | "textBoxEdge" | "textBoxTrim" | "textCombineUpright" | "textDecoration" | "textDecorationColor" | "textDecorationLine" | "textDecorationSkip" | "textDecorationSkipInk" | "textDecorationStyle" | "textDecorationThickness" | "textEmphasis" | "textEmphasisColor" | "textEmphasisPosition" | "textEmphasisStyle" | "textIndent" | "textJustify" | "textOrientation" | "textOverflow" | "textRendering" | "textShadow" | "textSizeAdjust" | "textSpacingTrim" | "textTransform" | "textUnderlineOffset" | "textUnderlinePosition" | "textWrap" | "textWrapMode" | "textWrapStyle" | "timelineScope" | "top" | "touchAction" | "transform" | "transformBox" | "transformOrigin" | "transformStyle" | "transitionBehavior" | "transitionDelay" | "transitionDuration" | "transitionProperty" | "transitionTimingFunction" | "unicodeBidi" | "userSelect" | "vectorEffect" | "verticalAlign" | "viewTimeline" | "viewTimelineAxis" | "viewTimelineInset" | "viewTimelineName" | "viewTransitionName" | "visibility" | "whiteSpace" | "whiteSpaceCollapse" | "widows" | "willChange" | "wordBreak" | "wordSpacing" | "wordWrap" | "writingMode" | "x" | "y" | "zIndex" | "zoom" | "alignmentBaseline" | "baselineShift" | "colorInterpolation" | "colorRendering" | "glyphOrientationVertical" | "bg" | "bgColor" | "bgSize" | "bgPos" | "bgRepeat" | "bgAttachment" | "bgClip" | "bgGradient" | "bgImg" | "bgImage" | "borderStart" | "borderEnd" | "borderX" | "borderY" | "borderStartColor" | "borderEndColor" | "borderStartStyle" | "borderEndStyle" | "rounded" | "roundedTopLeft" | "roundedStartStart" | "borderTopStartRadius" | "roundedEndStart" | "borderBottomStartRadius" | "roundedTopRight" | "roundedStartEnd" | "borderTopEndRadius" | "roundedEndEnd" | "borderBottomEndRadius" | "roundedBottomLeft" | "roundedBottomRight" | "roundedStart" | "borderStartRadius" | "roundedEnd" | "borderEndRadius" | "roundedTop" | "roundedBottom" | "roundedLeft" | "roundedRight" | "borderXWidth" | "borderStartWidth" | "borderEndWidth" | "borderYWidth" | "shadow" | "shadowColor" | "blendMode" | "bgBlendMode" | "gapY" | "gapX" | "flexDir" | "w" | "h" | "minW" | "minH" | "maxW" | "maxH" | "overscroll" | "overscrollX" | "overscrollY" | "scrollPaddingX" | "scrollPaddingY" | "listStylePos" | "listStyleImg" | "pos" | "insetX" | "insetY" | "insetStart" | "insetEnd" | "m" | "mt" | "mr" | "mb" | "ml" | "ms" | "marginStart" | "me" | "marginEnd" | "mx" | "marginX" | "my" | "marginY" | "p" | "pt" | "pr" | "pb" | "pl" | "ps" | "paddingStart" | "pe" | "paddingEnd" | "px" | "paddingX" | "py" | "paddingY" | "textDecor" | "backgroundGradient" | "gradientFrom" | "gradientTo" | "gradientVia" | "borderInlineStartRadius" | "borderInlineEndRadius" | "borderTopRadius" | "borderBottomRadius" | "borderLeftRadius" | "borderRightRadius" | "divideX" | "divideY" | "divideColor" | "divideStyle" | "boxShadowColor" | "blur" | "brightness" | "contrast" | "grayscale" | "hueRotate" | "invert" | "saturate" | "sepia" | "dropShadow" | "backdropBlur" | "backdropBrightness" | "backdropContrast" | "backdropGrayscale" | "backdropHueRotate" | "backdropInvert" | "backdropOpacity" | "backdropSaturate" | "backdropSepia" | "focusRing" | "focusVisibleRing" | "focusRingColor" | "focusRingOffset" | "focusRingWidth" | "focusRingStyle" | "boxSize" | "hideFrom" | "hideBelow" | "scrollbar" | "scrollMarginX" | "scrollMarginY" | "scrollSnapStrictness" | "scrollSnapMargin" | "scrollSnapMarginTop" | "scrollSnapMarginBottom" | "scrollSnapMarginLeft" | "scrollSnapMarginRight" | "ring" | "ringColor" | "ringOffset" | "ringOffsetColor" | "ringInset" | "skewX" | "skewY" | "scaleX" | "scaleY" | "spaceXReverse" | "spaceX" | "spaceYReverse" | "spaceY" | "rotateX" | "rotateY" | "translateX" | "translateY" | "truncate" | "borderSpacingX" | "borderSpacingY" | "srOnly" | "debug" | "colorPalette" | "textStyle" | "layerStyle" | "animationStyle" | keyof import("@chakra-ui/react").PolymorphicProps> & Omit<import("@chakra-ui/react").JsxStyleProps, "asChild"> & import("@ark-ui/react").TagsInputItemPreviewBaseProps & import("@chakra-ui/react").PolymorphicProps & import("@chakra-ui/react").UnstyledProp & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
export declare const TagsInputItemInput: React.ForwardRefExoticComponent<ChakraTagsInput.ItemInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
13
|
+
export declare const TagsInputItemContext: (props: import("@ark-ui/react").TagsInputItemContextProps) => import("react").ReactNode;
|
|
14
|
+
export declare const TagsInputRootProvider: React.ForwardRefExoticComponent<ChakraTagsInput.RootProviderProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
export declare const TagsInputPropsProvider: React.Provider<TagsInputRootBaseProps>;
|
|
16
|
+
export declare const TagsInputLabel: React.ForwardRefExoticComponent<ChakraTagsInput.LabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
17
|
+
export declare const TagsInputInput: React.ForwardRefExoticComponent<ChakraTagsInput.InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
18
|
+
export declare const TagsInputContext: (props: import("@ark-ui/react").TagsInputContextProps) => import("react").ReactNode;
|
|
19
|
+
export declare const TagsInputHiddenInput: React.ForwardRefExoticComponent<import("@ark-ui/react").TagsInputHiddenInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
20
|
+
export {};
|
package/tags-input.js
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { TagsInput } from '@chakra-ui/react';
|
|
3
|
+
import { CloseButton } from './close-button.js';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
|
|
6
|
+
const TagsInputControl = React.forwardRef(function TagsInputControl2(props, ref) {
|
|
7
|
+
const { children, clearable, ...rest } = props;
|
|
8
|
+
return /* @__PURE__ */ jsxs(TagsInput.Control, { ...rest, ref, children: [
|
|
9
|
+
children,
|
|
10
|
+
clearable && /* @__PURE__ */ jsx(TagsInputClearTrigger, {})
|
|
11
|
+
] });
|
|
12
|
+
});
|
|
13
|
+
const TagsInputClearTrigger = React.forwardRef(function TagsInputClearTrigger2(props, ref) {
|
|
14
|
+
return /* @__PURE__ */ jsx(TagsInput.ClearTrigger, { asChild: true, ...props, ref, children: /* @__PURE__ */ jsx(
|
|
15
|
+
CloseButton,
|
|
16
|
+
{
|
|
17
|
+
size: "xs",
|
|
18
|
+
variant: "plain",
|
|
19
|
+
focusVisibleRing: "inside",
|
|
20
|
+
focusRingWidth: "2px",
|
|
21
|
+
pointerEvents: "auto"
|
|
22
|
+
}
|
|
23
|
+
) });
|
|
24
|
+
});
|
|
25
|
+
const TagsInputItem = React.forwardRef(function TagsInputItem2(props, ref) {
|
|
26
|
+
const { children, ...rest } = props;
|
|
27
|
+
return /* @__PURE__ */ jsxs(TagsInput.Item, { ...rest, ref, children: [
|
|
28
|
+
/* @__PURE__ */ jsx(TagsInput.ItemText, { children }),
|
|
29
|
+
/* @__PURE__ */ jsx(TagsInput.ItemDeleteTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
30
|
+
CloseButton,
|
|
31
|
+
{
|
|
32
|
+
size: "2xs",
|
|
33
|
+
variant: "plain",
|
|
34
|
+
focusVisibleRing: "inside",
|
|
35
|
+
focusRingWidth: "2px",
|
|
36
|
+
pointerEvents: "auto"
|
|
37
|
+
}
|
|
38
|
+
) })
|
|
39
|
+
] });
|
|
40
|
+
});
|
|
41
|
+
const TagsInputRoot = React.forwardRef(function TagsInputRoot2(props, ref) {
|
|
42
|
+
return /* @__PURE__ */ jsx(TagsInput.Root, { ...props, ref });
|
|
43
|
+
});
|
|
44
|
+
const TagsInputItemText = TagsInput.ItemText;
|
|
45
|
+
const TagsInputItemPreview = TagsInput.ItemPreview;
|
|
46
|
+
const TagsInputItemInput = TagsInput.ItemInput;
|
|
47
|
+
const TagsInputItemContext = TagsInput.ItemContext;
|
|
48
|
+
const TagsInputRootProvider = TagsInput.RootProvider;
|
|
49
|
+
const TagsInputPropsProvider = TagsInput.PropsProvider;
|
|
50
|
+
const TagsInputLabel = TagsInput.Label;
|
|
51
|
+
const TagsInputInput = TagsInput.Input;
|
|
52
|
+
const TagsInputContext = TagsInput.Context;
|
|
53
|
+
const TagsInputHiddenInput = TagsInput.HiddenInput;
|
|
54
|
+
|
|
55
|
+
export { TagsInputContext, TagsInputControl, TagsInputHiddenInput, TagsInputInput, TagsInputItem, TagsInputItemContext, TagsInputItemInput, TagsInputItemPreview, TagsInputItemText, TagsInputLabel, TagsInputPropsProvider, TagsInputRoot, TagsInputRootProvider };
|
|
56
|
+
//# sourceMappingURL=tags-input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tags-input.js","sources":["tags-input.tsx"],"sourcesContent":["\"use client\"\n\nimport { TagsInput as ChakraTagsInput } from \"@chakra-ui/react\"\nimport { CloseButton } from \"./close-button\"\nimport * as React from \"react\"\nimport { TagsInputRootBaseProps } from \"@ark-ui/react\"\n\ninterface TagsInputControlProps extends ChakraTagsInput.ControlProps {\n clearable?: boolean\n}\n\nexport const TagsInputControl = React.forwardRef<\n HTMLDivElement,\n TagsInputControlProps\n>(function TagsInputControl(props, ref) {\n const { children, clearable, ...rest } = props\n return (\n <ChakraTagsInput.Control {...rest} ref={ref}>\n {children}\n {clearable && <TagsInputClearTrigger />}\n </ChakraTagsInput.Control>\n )\n})\n\nconst TagsInputClearTrigger = React.forwardRef<\n HTMLButtonElement,\n ChakraTagsInput.ClearTriggerProps\n>(function TagsInputClearTrigger(props, ref) {\n return (\n <ChakraTagsInput.ClearTrigger asChild {...props} ref={ref}>\n <CloseButton\n size=\"xs\"\n variant=\"plain\"\n focusVisibleRing=\"inside\"\n focusRingWidth=\"2px\"\n pointerEvents=\"auto\"\n />\n </ChakraTagsInput.ClearTrigger>\n )\n})\n\nexport const TagsInputItem = React.forwardRef<\n HTMLDivElement,\n ChakraTagsInput.ItemProps\n>(function TagsInputItem(props, ref) {\n const { children, ...rest } = props\n return (\n <ChakraTagsInput.Item {...rest} ref={ref}>\n <ChakraTagsInput.ItemText>{children}</ChakraTagsInput.ItemText>\n <ChakraTagsInput.ItemDeleteTrigger asChild>\n <CloseButton\n size=\"2xs\"\n variant=\"plain\"\n focusVisibleRing=\"inside\"\n focusRingWidth=\"2px\"\n pointerEvents=\"auto\"\n />\n </ChakraTagsInput.ItemDeleteTrigger>\n </ChakraTagsInput.Item>\n )\n})\n\nexport const TagsInputRoot = React.forwardRef<\n HTMLDivElement,\n ChakraTagsInput.RootProps\n>(function TagsInputRoot(props, ref) {\n return <ChakraTagsInput.Root {...props} ref={ref} />\n}) as ChakraTagsInput.RootProps\n\nexport const TagsInputItemText = ChakraTagsInput.ItemText\nexport const TagsInputItemPreview = ChakraTagsInput.ItemPreview\nexport const TagsInputItemInput = ChakraTagsInput.ItemInput\nexport const TagsInputItemContext = ChakraTagsInput.ItemContext\nexport const TagsInputRootProvider = ChakraTagsInput.RootProvider\n// PATCH: Add type annotation\nexport const TagsInputPropsProvider: React.Provider<TagsInputRootBaseProps> = ChakraTagsInput.PropsProvider\nexport const TagsInputLabel = ChakraTagsInput.Label\nexport const TagsInputInput = ChakraTagsInput.Input\nexport const TagsInputContext = ChakraTagsInput.Context\nexport const TagsInputHiddenInput = ChakraTagsInput.HiddenInput\n"],"names":["TagsInputControl","ChakraTagsInput","TagsInputClearTrigger","TagsInputItem","TagsInputRoot"],"mappings":";;;;;AAWO,MAAM,mBAAmB,KAAA,CAAM,UAAA,CAGpC,SAASA,iBAAAA,CAAiB,OAAO,GAAA,EAAK;AACtC,EAAA,MAAM,EAAE,QAAA,EAAU,SAAA,EAAW,GAAG,MAAK,GAAI,KAAA;AACzC,EAAA,4BACGC,SAAA,CAAgB,OAAA,EAAhB,EAAyB,GAAG,MAAM,GAAA,EAChC,QAAA,EAAA;AAAA,IAAA,QAAA;AAAA,IACA,SAAA,wBAAc,qBAAA,EAAA,EAAsB;AAAA,GAAA,EACvC,CAAA;AAEJ,CAAC;AAED,MAAM,wBAAwB,KAAA,CAAM,UAAA,CAGlC,SAASC,sBAAAA,CAAsB,OAAO,GAAA,EAAK;AAC3C,EAAA,uBACE,GAAA,CAACD,UAAgB,YAAA,EAAhB,EAA6B,SAAO,IAAA,EAAE,GAAG,OAAO,GAAA,EAC/C,QAAA,kBAAA,GAAA;AAAA,IAAC,WAAA;AAAA,IAAA;AAAA,MACC,IAAA,EAAK,IAAA;AAAA,MACL,OAAA,EAAQ,OAAA;AAAA,MACR,gBAAA,EAAiB,QAAA;AAAA,MACjB,cAAA,EAAe,KAAA;AAAA,MACf,aAAA,EAAc;AAAA;AAAA,GAChB,EACF,CAAA;AAEJ,CAAC,CAAA;AAEM,MAAM,gBAAgB,KAAA,CAAM,UAAA,CAGjC,SAASE,cAAAA,CAAc,OAAO,GAAA,EAAK;AACnC,EAAA,MAAM,EAAE,QAAA,EAAU,GAAG,IAAA,EAAK,GAAI,KAAA;AAC9B,EAAA,4BACGF,SAAA,CAAgB,IAAA,EAAhB,EAAsB,GAAG,MAAM,GAAA,EAC9B,QAAA,EAAA;AAAA,oBAAA,GAAA,CAACA,SAAA,CAAgB,QAAA,EAAhB,EAA0B,QAAA,EAAS,CAAA;AAAA,oBACpC,GAAA,CAACA,SAAA,CAAgB,iBAAA,EAAhB,EAAkC,SAAO,IAAA,EACxC,QAAA,kBAAA,GAAA;AAAA,MAAC,WAAA;AAAA,MAAA;AAAA,QACC,IAAA,EAAK,KAAA;AAAA,QACL,OAAA,EAAQ,OAAA;AAAA,QACR,gBAAA,EAAiB,QAAA;AAAA,QACjB,cAAA,EAAe,KAAA;AAAA,QACf,aAAA,EAAc;AAAA;AAAA,KAChB,EACF;AAAA,GAAA,EACF,CAAA;AAEJ,CAAC;AAEM,MAAM,gBAAgB,KAAA,CAAM,UAAA,CAGjC,SAASG,cAAAA,CAAc,OAAO,GAAA,EAAK;AACnC,EAAA,2BAAQH,SAAA,CAAgB,IAAA,EAAhB,EAAsB,GAAG,OAAO,GAAA,EAAU,CAAA;AACpD,CAAC;AAEM,MAAM,oBAAoBA,SAAA,CAAgB;AAC1C,MAAM,uBAAuBA,SAAA,CAAgB;AAC7C,MAAM,qBAAqBA,SAAA,CAAgB;AAC3C,MAAM,uBAAuBA,SAAA,CAAgB;AAC7C,MAAM,wBAAwBA,SAAA,CAAgB;AAE9C,MAAM,yBAAiEA,SAAA,CAAgB;AACvF,MAAM,iBAAiBA,SAAA,CAAgB;AACvC,MAAM,iBAAiBA,SAAA,CAAgB;AACvC,MAAM,mBAAmBA,SAAA,CAAgB;AACzC,MAAM,uBAAuBA,SAAA,CAAgB;;;;"}
|