@jamsrui/chip 0.0.15 → 0.0.17
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-config.d.mts +2 -2
- package/dist/chip-config.mjs +1 -1
- package/dist/chip-root.mjs +1 -1
- package/dist/chip.mjs +1 -1
- package/dist/use-chip.mjs +1 -1
- package/package.json +5 -5
package/dist/chip-config.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { WithGlobalConfig } from '@jamsrui/core';
|
|
3
3
|
import { C as Chip } from './chip-BOENO6Cd.mjs';
|
|
4
4
|
import '@jamsrui/utils';
|
|
5
5
|
import './chip-dot.mjs';
|
|
@@ -13,7 +13,7 @@ declare const ChipConfig: (props: Omit<Partial<ChipConfig.Props>, "children"> &
|
|
|
13
13
|
children: React.ReactNode;
|
|
14
14
|
}) => react_jsx_runtime.JSX.Element;
|
|
15
15
|
declare namespace ChipConfig {
|
|
16
|
-
interface Props extends
|
|
16
|
+
interface Props extends WithGlobalConfig<Chip.Props> {
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
|
package/dist/chip-config.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{createConfigContext as
|
|
1
|
+
"use client";import{createConfigContext as i}from"@jamsrui/utils";const[p,e]=i({displayName:"ChipConfig"});export{p as ChipConfig,e as useChipConfig};
|
package/dist/chip-root.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useRenderElement as
|
|
1
|
+
"use client";import{useRenderElement as t}from"@jamsrui/hooks";import{useChipContext as r}from"./chip-context.mjs";const i=e=>{const{getRootProps:o}=r();return t("div",{props:[o(e)]})};export{i as ChipRoot};
|
package/dist/chip.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as
|
|
1
|
+
"use client";import{jsx as r}from"react/jsx-runtime";import{mergeConfigProps as e}from"@jamsrui/utils";import{useChipConfig as n}from"./chip-config.mjs";import{ChipContext as s}from"./chip-context.mjs";import{ChipRoot as m}from"./chip-root.mjs";import{chipVariants as C}from"./styles.mjs";import{useChip as h}from"./use-chip.mjs";const P=o=>{const t=n(),i=e(C.defaultVariants,t,o),p=h(i);return r(s,{value:p,children:r(m,{children:o.children})})};export{P as Chip};
|
package/dist/use-chip.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useCallback as a,useMemo as h}from"react";import{dataAttrDev as r,mapPropsVariants as
|
|
1
|
+
"use client";import{useCallback as a,useMemo as h}from"react";import{dataAttrDev as r,mapPropsVariants as l}from"@jamsrui/utils";import{chipVariants as i}from"./styles.mjs";const u=m=>{const[c,n]=l(m,i.variantKeys),{...o}=c,t=i(n),s=a(()=>({"data-slot":r("root"),"data-component":r("chip"),...o,className:t.root({className:o.className})}),[o,t]),p=a(e=>({...e,"data-slot":r("dot"),className:t.dot({className:e.className})}),[t]);return h(()=>({getRootProps:s,getDotProps:p}),[p,s])};export{u as useChip};
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jamsrui/chip",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": ">=19"
|
|
6
6
|
},
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@jamsrui/
|
|
9
|
-
"@jamsrui/core": "^0.0.
|
|
10
|
-
"@jamsrui/
|
|
11
|
-
"@jamsrui/utils": "^0.0.
|
|
8
|
+
"@jamsrui/hooks": "^0.0.17",
|
|
9
|
+
"@jamsrui/core": "^0.0.14",
|
|
10
|
+
"@jamsrui/icons": "^0.0.14",
|
|
11
|
+
"@jamsrui/utils": "^0.0.17"
|
|
12
12
|
},
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|