@jamsrui/chip 0.0.4 → 0.0.6
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/{chip-C4go3uxN.d.mts → chip-DRTSt1tP.d.mts} +2 -1
- package/dist/chip-close-button.mjs +1 -1
- package/dist/chip-config.d.mts +4 -3
- package/dist/chip-content.mjs +1 -1
- package/dist/chip-context.d.mts +2 -1
- package/dist/chip.d.mts +2 -1
- package/dist/chip.mjs +1 -1
- package/dist/index.d.mts +2 -1
- package/dist/use-chip.d.mts +2 -1
- package/package.json +5 -5
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import * as react from 'react';
|
|
2
3
|
import { PropGetter, UIProps, SlotsToClassNames } from '@jamsrui/utils';
|
|
3
4
|
import { ChipCloseButton } from './chip-close-button.mjs';
|
|
@@ -29,7 +30,7 @@ declare namespace useChip {
|
|
|
29
30
|
}
|
|
30
31
|
}
|
|
31
32
|
|
|
32
|
-
declare const Chip: (props: Chip.Props) =>
|
|
33
|
+
declare const Chip: (props: Chip.Props) => react_jsx_runtime.JSX.Element;
|
|
33
34
|
declare namespace Chip {
|
|
34
35
|
interface Props extends useChip.Props {
|
|
35
36
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useRenderElement as r}from"@jamsrui/hooks";import{CloseFilledIcon as s}from"@jamsrui/icons";import{useChipContext as n}from"./chip-context";const
|
|
1
|
+
import{jsx as p}from"react/jsx-runtime";import{useRenderElement as r}from"@jamsrui/hooks";import{CloseFilledIcon as s}from"@jamsrui/icons";import{useChipContext as n}from"./chip-context";const C=e=>{const{getCloseButtonProps:o}=n(),t=p(s,{className:"size-4"});return r("button",{props:[o(e),{children:t}]})};export{C as ChipCloseButton};
|
package/dist/chip-config.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { C as Chip } from './chip-
|
|
2
|
-
import * as
|
|
1
|
+
import { C as Chip } from './chip-DRTSt1tP.mjs';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import { GlobalConfigProps } from '@jamsrui/core';
|
|
4
|
+
import 'react';
|
|
4
5
|
import '@jamsrui/utils';
|
|
5
6
|
import './chip-close-button.mjs';
|
|
6
7
|
import './chip-content.mjs';
|
|
@@ -11,7 +12,7 @@ import 'tailwind-variants';
|
|
|
11
12
|
declare const useChipConfig: () => ChipConfig.Props;
|
|
12
13
|
declare const ChipConfig: (props: ChipConfig.Props & {
|
|
13
14
|
merge?: boolean;
|
|
14
|
-
}) =>
|
|
15
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
15
16
|
declare namespace ChipConfig {
|
|
16
17
|
interface Props extends Chip.Props, GlobalConfigProps<Chip.Props> {
|
|
17
18
|
}
|
package/dist/chip-content.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useRenderElement as s}from"@jamsrui/hooks";import{useChipContext as m}from"./chip-context";import{ChipDot as C}from"./chip-dot";const
|
|
1
|
+
import{Fragment as c,jsx as d,jsxs as h}from"react/jsx-runtime";import{useRenderElement as s}from"@jamsrui/hooks";import{useChipContext as m}from"./chip-context";import{ChipDot as C}from"./chip-dot";const u=t=>{const{children:e}=t,{getContentProps:n,startContent:o,endContent:r,isDotVariant:p}=m(),i=h(c,{children:[o,!!p&&d(C,{}),e,r]});return s("div",{props:[n(t),{children:i}]})};export{u as ChipContent};
|
package/dist/chip-context.d.mts
CHANGED
package/dist/chip.d.mts
CHANGED
package/dist/chip.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useRenderElement as
|
|
1
|
+
import{Fragment as x,jsx as e,jsxs as P}from"react/jsx-runtime";import{useRenderElement as c}from"@jamsrui/hooks";import{mergeConfigProps as h}from"@jamsrui/utils";import{ChipCloseButton as f}from"./chip-close-button";import{useChipConfig as d}from"./chip-config";import{ChipContent as l}from"./chip-content";import{ChipContext as g}from"./chip-context";import{useChip as u}from"./use-chip";const q=o=>{const{children:n}=o,t=d(),p=h(t,t,o),r=u(p),{getRootProps:i,isClosable:s}=r,C=P(x,{children:[e(l,{children:n}),!!s&&e(f,{})]}),m=c("div",{props:[i(o),{children:C}]});return e(g,{value:r,children:m})};export{q as Chip};
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { C as Chip } from './chip-
|
|
1
|
+
export { C as Chip } from './chip-DRTSt1tP.mjs';
|
|
2
2
|
export { ChipConfig, useChipConfig } from './chip-config.mjs';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
3
4
|
import 'react';
|
|
4
5
|
import '@jamsrui/utils';
|
|
5
6
|
import './chip-close-button.mjs';
|
package/dist/use-chip.d.mts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import '@jamsrui/utils';
|
|
3
|
-
export { u as useChip } from './chip-
|
|
3
|
+
export { u as useChip } from './chip-DRTSt1tP.mjs';
|
|
4
4
|
import './chip-close-button.mjs';
|
|
5
5
|
import './chip-content.mjs';
|
|
6
6
|
import './chip-dot.mjs';
|
|
7
7
|
import './styles.mjs';
|
|
8
|
+
import 'react/jsx-runtime';
|
|
8
9
|
import 'tailwind-variants';
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jamsrui/chip",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": ">=19"
|
|
6
6
|
},
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@jamsrui/
|
|
9
|
-
"@jamsrui/icons": "^0.0.
|
|
10
|
-
"@jamsrui/utils": "^0.0.
|
|
11
|
-
"@jamsrui/
|
|
8
|
+
"@jamsrui/hooks": "^0.0.6",
|
|
9
|
+
"@jamsrui/icons": "^0.0.6",
|
|
10
|
+
"@jamsrui/utils": "^0.0.6",
|
|
11
|
+
"@jamsrui/core": "^0.0.6"
|
|
12
12
|
},
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|