@jamsrui/divider 0.0.2

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/README.md ADDED
@@ -0,0 +1,40 @@
1
+ # πŸš€ **JamsrUI**
2
+
3
+ **A comprehensive React UI component library designed for developers, with Tailwind CSS integration for seamless styling.**
4
+
5
+
6
+ ## πŸ“– **Overview**
7
+
8
+ [JamsrUI](https://jamsr-ui.jamsrworld.com) is designed to help developers build modern, fast and visually appealing web applications with ease.
9
+
10
+ ## πŸš€ Getting Started
11
+
12
+ Boost & Build your websites using [JamsrUI](https://jamsr-ui.jamsrworld.com).
13
+
14
+ ## ✨ Features
15
+
16
+ - πŸš€ **Production-Ready**: Optimized for modern React projects.
17
+ - 🎨 **Customizable**: Easily override styles and themes.
18
+ - πŸ› οΈ **Reusable Components**: Save time with prebuilt, efficient UI elements.
19
+ - ⚑ **Developer-Friendly**: Simple API and well-documented usage.
20
+ - πŸ“¦ **Lightweight**: Minimal dependencies for fast performance.
21
+ - πŸ–₯️ **Modern Design**: Clean, responsive, and user-friendly components.
22
+
23
+ ## 🌱 Community
24
+
25
+ We’re thrilled to see the community actively engage with **JamsrUI**! Whether you're sharing feedback, reporting bugs, requesting features, or showcasing projects built with JamsrUI, your involvement helps us grow and improve.
26
+
27
+ ### How to Engage
28
+
29
+ - πŸ’¬ **Report Bugs**: [GitHub Issues](https://github.com/jamsrworld/jamsr-ui/issues)
30
+ - πŸš€ **Request Features**: Share ideas for new components.
31
+ - 🀝 **Showcase Projects**: Let us know how you use JamsrUI.
32
+
33
+ ## Contributing
34
+
35
+ We welcome contributions from developers of all skill levels!
36
+
37
+ ## ⭐ Support the Project
38
+
39
+ If you find **JamsrUI** helpful, consider giving it a ⭐ on [GitHub](https://github.com/jamsrworld/jamsr-ui).
40
+
@@ -0,0 +1 @@
1
+ import{tv as r}from"@jamsrui/utils";var i="",a=r({slots:{root:"flex items-center gap-2",divider:""},variants:{orientation:{vertical:{root:"flex-col",divider:"h-full w-px"},horizontal:{divider:"h-px w-full"}},variant:{light:{divider:"bg-stroke-secondary"},dark:{divider:"bg-stroke-secondary"},default:{divider:"bg-stroke-primary"},gradient:{divider:"from-transparent via-[#989AA6]/[0.5] to-transparent"}}},compoundVariants:[{orientation:"horizontal",variant:"gradient",className:{divider:"bg-gradient-to-r"}},{orientation:"vertical",variant:"gradient",className:{divider:"bg-gradient-to-b"}}],defaultVariants:{variant:"default",orientation:"horizontal",color:"default"}});export{i as a,a as b};
@@ -0,0 +1 @@
1
+ import{b as i}from"./chunk-5TIOUT4L.mjs";import{useCallback as p,useMemo as n}from"react";import{cn as m,dataAttrDev as P,mapPropsVariants as D,mergeProps as N}from"@jamsrui/utils";var x=v=>{let[l,c]=D(v,i.variantKeys),r=i(c),{classNames:s,slotProps:e,...o}=l,t=p(()=>({...o,"data-component":P("divider"),"data-slot":"root",className:r.root({className:m(s?.root,o.className)})}),[s?.root,o,r]),a=p(d=>({...N(e?.divider,d),"data-slot":"divider",className:r.divider({className:m(e?.divider?.className,s?.divider,d.className)})}),[s?.divider,e?.divider,r]);return n(()=>({getRootProps:t,getDividerProps:a}),[t,a])};export{x as a};
@@ -0,0 +1 @@
1
+ import{b as t}from"./chunk-NU7HNFTG.mjs";import{a as n}from"./chunk-65AQCZWD.mjs";import{useRenderElement as c}from"@jamsrui/hooks";import{mergeConfigProps as v}from"@jamsrui/utils";var D=e=>{let r=t(),s=v(r,r,e),d=n(s),{getRootProps:p,getDividerProps:o}=d,{children:i}=e,m=React.createElement(React.Fragment,null,React.createElement("div",{...o({})}),!!i&&React.createElement(React.Fragment,null,i,React.createElement("div",{...o({})})));return c("div",{props:[p({}),{children:m}]})};export{D as a};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _utils = require('@jamsrui/utils');var[r,e]=_utils.createConfigContext.call(void 0, {displayName:"DividerConfig"});exports.a = r; exports.b = e;
@@ -0,0 +1 @@
1
+ import{createConfigContext as i}from"@jamsrui/utils";var[r,e]=i({displayName:"DividerConfig"});export{r as a,e as b};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkSRJCOHXDjs = require('./chunk-SRJCOHXD.js');var _react = require('react');var _utils = require('@jamsrui/utils');var x=v=>{let[l,c]=_utils.mapPropsVariants.call(void 0, v,_chunkSRJCOHXDjs.b.variantKeys),r=_chunkSRJCOHXDjs.b.call(void 0, c),{classNames:s,slotProps:e,...o}=l,t=_react.useCallback.call(void 0, ()=>({...o,"data-component":_utils.dataAttrDev.call(void 0, "divider"),"data-slot":"root",className:r.root({className:_utils.cn.call(void 0, _optionalChain([s, 'optionalAccess', _ => _.root]),o.className)})}),[_optionalChain([s, 'optionalAccess', _2 => _2.root]),o,r]),a=_react.useCallback.call(void 0, d=>({..._utils.mergeProps.call(void 0, _optionalChain([e, 'optionalAccess', _3 => _3.divider]),d),"data-slot":"divider",className:r.divider({className:_utils.cn.call(void 0, _optionalChain([e, 'optionalAccess', _4 => _4.divider, 'optionalAccess', _5 => _5.className]),_optionalChain([s, 'optionalAccess', _6 => _6.divider]),d.className)})}),[_optionalChain([s, 'optionalAccess', _7 => _7.divider]),_optionalChain([e, 'optionalAccess', _8 => _8.divider]),r]);return _react.useMemo.call(void 0, ()=>({getRootProps:t,getDividerProps:a}),[t,a])};exports.a = x;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _utils = require('@jamsrui/utils');var i="",a= exports.b =_utils.tv.call(void 0, {slots:{root:"flex items-center gap-2",divider:""},variants:{orientation:{vertical:{root:"flex-col",divider:"h-full w-px"},horizontal:{divider:"h-px w-full"}},variant:{light:{divider:"bg-stroke-secondary"},dark:{divider:"bg-stroke-secondary"},default:{divider:"bg-stroke-primary"},gradient:{divider:"from-transparent via-[#989AA6]/[0.5] to-transparent"}}},compoundVariants:[{orientation:"horizontal",variant:"gradient",className:{divider:"bg-gradient-to-r"}},{orientation:"vertical",variant:"gradient",className:{divider:"bg-gradient-to-b"}}],defaultVariants:{variant:"default",orientation:"horizontal",color:"default"}});exports.a = i; exports.b = a;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkHZZZ2FIEjs = require('./chunk-HZZZ2FIE.js');var _chunkO3EGLMGJjs = require('./chunk-O3EGLMGJ.js');var _hooks = require('@jamsrui/hooks');var _utils = require('@jamsrui/utils');var D=e=>{let r=_chunkHZZZ2FIEjs.b.call(void 0, ),s=_utils.mergeConfigProps.call(void 0, r,r,e),d=_chunkO3EGLMGJjs.a.call(void 0, s),{getRootProps:p,getDividerProps:o}=d,{children:i}=e,m=React.createElement(React.Fragment,null,React.createElement("div",{...o({})}),!!i&&React.createElement(React.Fragment,null,i,React.createElement("div",{...o({})})));return _hooks.useRenderElement.call(void 0, "div",{props:[p({}),{children:m}]})};exports.a = D;
@@ -0,0 +1,15 @@
1
+ import { Divider } from './divider.mjs';
2
+ import * as react from 'react';
3
+ import { GlobalConfigProps } from '@jamsrui/core';
4
+ import '@jamsrui/utils';
5
+
6
+ declare const useDividerConfig: () => DividerConfig.Props;
7
+ declare const DividerConfig: (props: DividerConfig.Props & {
8
+ merge?: boolean;
9
+ }) => react.JSX.Element;
10
+ declare namespace DividerConfig {
11
+ interface Props extends Divider.Props, GlobalConfigProps<Divider.Props> {
12
+ }
13
+ }
14
+
15
+ export { DividerConfig, useDividerConfig };
@@ -0,0 +1,15 @@
1
+ import { Divider } from './divider.js';
2
+ import * as react from 'react';
3
+ import { GlobalConfigProps } from '@jamsrui/core';
4
+ import '@jamsrui/utils';
5
+
6
+ declare const useDividerConfig: () => DividerConfig.Props;
7
+ declare const DividerConfig: (props: DividerConfig.Props & {
8
+ merge?: boolean;
9
+ }) => react.JSX.Element;
10
+ declare namespace DividerConfig {
11
+ interface Props extends Divider.Props, GlobalConfigProps<Divider.Props> {
12
+ }
13
+ }
14
+
15
+ export { DividerConfig, useDividerConfig };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkHZZZ2FIEjs = require('./chunk-HZZZ2FIE.js');exports.DividerConfig = _chunkHZZZ2FIEjs.a; exports.useDividerConfig = _chunkHZZZ2FIEjs.b;
@@ -0,0 +1 @@
1
+ import{a,b}from"./chunk-NU7HNFTG.mjs";export{a as DividerConfig,b as useDividerConfig};
@@ -0,0 +1,10 @@
1
+ import * as react from 'react';
2
+ import { UIProps } from '@jamsrui/utils';
3
+
4
+ declare const Divider: (props: Divider.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
5
+ declare namespace Divider {
6
+ interface Props extends UIProps<"div"> {
7
+ }
8
+ }
9
+
10
+ export { Divider };
@@ -0,0 +1,10 @@
1
+ import * as react from 'react';
2
+ import { UIProps } from '@jamsrui/utils';
3
+
4
+ declare const Divider: (props: Divider.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
5
+ declare namespace Divider {
6
+ interface Props extends UIProps<"div"> {
7
+ }
8
+ }
9
+
10
+ export { Divider };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkZYIIUDSKjs = require('./chunk-ZYIIUDSK.js');require('./chunk-HZZZ2FIE.js');require('./chunk-O3EGLMGJ.js');require('./chunk-SRJCOHXD.js');exports.Divider = _chunkZYIIUDSKjs.a;
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-D6NH2KRI.mjs";import"./chunk-NU7HNFTG.mjs";import"./chunk-65AQCZWD.mjs";import"./chunk-5TIOUT4L.mjs";export{a as Divider};
@@ -0,0 +1,5 @@
1
+ export { Divider } from './divider.mjs';
2
+ export { DividerConfig, useDividerConfig } from './divider-config.mjs';
3
+ import 'react';
4
+ import '@jamsrui/utils';
5
+ import '@jamsrui/core';
@@ -0,0 +1,5 @@
1
+ export { Divider } from './divider.js';
2
+ export { DividerConfig, useDividerConfig } from './divider-config.js';
3
+ import 'react';
4
+ import '@jamsrui/utils';
5
+ import '@jamsrui/core';
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var _chunkZYIIUDSKjs = require('./chunk-ZYIIUDSK.js');var _chunkHZZZ2FIEjs = require('./chunk-HZZZ2FIE.js');require('./chunk-O3EGLMGJ.js');require('./chunk-SRJCOHXD.js');exports.Divider = _chunkZYIIUDSKjs.a; exports.DividerConfig = _chunkHZZZ2FIEjs.a; exports.useDividerConfig = _chunkHZZZ2FIEjs.b;
package/dist/index.mjs ADDED
@@ -0,0 +1 @@
1
+ "use client";import{a as r}from"./chunk-D6NH2KRI.mjs";import{a as i,b as e}from"./chunk-NU7HNFTG.mjs";import"./chunk-65AQCZWD.mjs";import"./chunk-5TIOUT4L.mjs";export{r as Divider,i as DividerConfig,e as useDividerConfig};
@@ -0,0 +1,90 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from '@jamsrui/utils';
3
+
4
+ declare const test = "";
5
+ declare const dividerVariants: tailwind_variants.TVReturnType<{
6
+ orientation: {
7
+ vertical: {
8
+ root: string;
9
+ divider: string;
10
+ };
11
+ horizontal: {
12
+ divider: string;
13
+ };
14
+ };
15
+ variant: {
16
+ light: {
17
+ divider: string;
18
+ };
19
+ dark: {
20
+ divider: string;
21
+ };
22
+ default: {
23
+ divider: string;
24
+ };
25
+ gradient: {
26
+ divider: string;
27
+ };
28
+ };
29
+ }, {
30
+ root: string;
31
+ divider: string;
32
+ }, undefined, {
33
+ orientation: {
34
+ vertical: {
35
+ root: string;
36
+ divider: string;
37
+ };
38
+ horizontal: {
39
+ divider: string;
40
+ };
41
+ };
42
+ variant: {
43
+ light: {
44
+ divider: string;
45
+ };
46
+ dark: {
47
+ divider: string;
48
+ };
49
+ default: {
50
+ divider: string;
51
+ };
52
+ gradient: {
53
+ divider: string;
54
+ };
55
+ };
56
+ }, {
57
+ root: string;
58
+ divider: string;
59
+ }, tailwind_variants.TVReturnType<{
60
+ orientation: {
61
+ vertical: {
62
+ root: string;
63
+ divider: string;
64
+ };
65
+ horizontal: {
66
+ divider: string;
67
+ };
68
+ };
69
+ variant: {
70
+ light: {
71
+ divider: string;
72
+ };
73
+ dark: {
74
+ divider: string;
75
+ };
76
+ default: {
77
+ divider: string;
78
+ };
79
+ gradient: {
80
+ divider: string;
81
+ };
82
+ };
83
+ }, {
84
+ root: string;
85
+ divider: string;
86
+ }, undefined, unknown, unknown, undefined>>;
87
+ type DividerVariants = VariantProps<typeof dividerVariants>;
88
+ type DividerSlots = keyof ReturnType<typeof dividerVariants>;
89
+
90
+ export { type DividerSlots, type DividerVariants, dividerVariants, test };
@@ -0,0 +1,90 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from '@jamsrui/utils';
3
+
4
+ declare const test = "";
5
+ declare const dividerVariants: tailwind_variants.TVReturnType<{
6
+ orientation: {
7
+ vertical: {
8
+ root: string;
9
+ divider: string;
10
+ };
11
+ horizontal: {
12
+ divider: string;
13
+ };
14
+ };
15
+ variant: {
16
+ light: {
17
+ divider: string;
18
+ };
19
+ dark: {
20
+ divider: string;
21
+ };
22
+ default: {
23
+ divider: string;
24
+ };
25
+ gradient: {
26
+ divider: string;
27
+ };
28
+ };
29
+ }, {
30
+ root: string;
31
+ divider: string;
32
+ }, undefined, {
33
+ orientation: {
34
+ vertical: {
35
+ root: string;
36
+ divider: string;
37
+ };
38
+ horizontal: {
39
+ divider: string;
40
+ };
41
+ };
42
+ variant: {
43
+ light: {
44
+ divider: string;
45
+ };
46
+ dark: {
47
+ divider: string;
48
+ };
49
+ default: {
50
+ divider: string;
51
+ };
52
+ gradient: {
53
+ divider: string;
54
+ };
55
+ };
56
+ }, {
57
+ root: string;
58
+ divider: string;
59
+ }, tailwind_variants.TVReturnType<{
60
+ orientation: {
61
+ vertical: {
62
+ root: string;
63
+ divider: string;
64
+ };
65
+ horizontal: {
66
+ divider: string;
67
+ };
68
+ };
69
+ variant: {
70
+ light: {
71
+ divider: string;
72
+ };
73
+ dark: {
74
+ divider: string;
75
+ };
76
+ default: {
77
+ divider: string;
78
+ };
79
+ gradient: {
80
+ divider: string;
81
+ };
82
+ };
83
+ }, {
84
+ root: string;
85
+ divider: string;
86
+ }, undefined, unknown, unknown, undefined>>;
87
+ type DividerVariants = VariantProps<typeof dividerVariants>;
88
+ type DividerSlots = keyof ReturnType<typeof dividerVariants>;
89
+
90
+ export { type DividerSlots, type DividerVariants, dividerVariants, test };
package/dist/styles.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSRJCOHXDjs = require('./chunk-SRJCOHXD.js');exports.dividerVariants = _chunkSRJCOHXDjs.b; exports.test = _chunkSRJCOHXDjs.a;
@@ -0,0 +1 @@
1
+ import{a,b}from"./chunk-5TIOUT4L.mjs";export{b as dividerVariants,a as test};
@@ -0,0 +1,20 @@
1
+ import { PropGetter, UIProps, SlotsToClassNames } from '@jamsrui/utils';
2
+ import { Divider } from './divider.mjs';
3
+ import { DividerVariants, DividerSlots } from './styles.mjs';
4
+ import 'react';
5
+ import 'tailwind-variants';
6
+
7
+ declare const useDivider: (props: useDivider.Props) => {
8
+ getRootProps: PropGetter<Divider.Props>;
9
+ getDividerProps: PropGetter<Divider.Props>;
10
+ };
11
+ declare namespace useDivider {
12
+ interface Props extends UIProps<"div">, DividerVariants {
13
+ classNames?: SlotsToClassNames<DividerSlots>;
14
+ slotProps?: {
15
+ divider?: UIProps<"div">;
16
+ };
17
+ }
18
+ }
19
+
20
+ export { useDivider };
@@ -0,0 +1,20 @@
1
+ import { PropGetter, UIProps, SlotsToClassNames } from '@jamsrui/utils';
2
+ import { Divider } from './divider.js';
3
+ import { DividerVariants, DividerSlots } from './styles.js';
4
+ import 'react';
5
+ import 'tailwind-variants';
6
+
7
+ declare const useDivider: (props: useDivider.Props) => {
8
+ getRootProps: PropGetter<Divider.Props>;
9
+ getDividerProps: PropGetter<Divider.Props>;
10
+ };
11
+ declare namespace useDivider {
12
+ interface Props extends UIProps<"div">, DividerVariants {
13
+ classNames?: SlotsToClassNames<DividerSlots>;
14
+ slotProps?: {
15
+ divider?: UIProps<"div">;
16
+ };
17
+ }
18
+ }
19
+
20
+ export { useDivider };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkO3EGLMGJjs = require('./chunk-O3EGLMGJ.js');require('./chunk-SRJCOHXD.js');exports.useDivider = _chunkO3EGLMGJjs.a;
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-65AQCZWD.mjs";import"./chunk-5TIOUT4L.mjs";export{a as useDivider};
package/package.json ADDED
@@ -0,0 +1,48 @@
1
+ {
2
+ "name": "@jamsrui/divider",
3
+ "version": "0.0.2",
4
+ "peerDependencies": {
5
+ "react": ">=19"
6
+ },
7
+ "dependencies": {
8
+ "@jamsrui/hooks": "^0.0.2",
9
+ "@jamsrui/core": "^0.0.2",
10
+ "@jamsrui/utils": "^0.0.2"
11
+ },
12
+ "exports": {
13
+ ".": {
14
+ "types": "./dist/index.d.ts",
15
+ "import": "./dist/index.mjs",
16
+ "require": "./dist/index.js"
17
+ }
18
+ },
19
+ "description": "A modern and beautiful Next.js UI components library.",
20
+ "keywords": [
21
+ "react",
22
+ "ui",
23
+ "UI components",
24
+ "Next.js",
25
+ "React",
26
+ "JamsrUI",
27
+ "jamsr-ui",
28
+ "TypeScript"
29
+ ],
30
+ "sideEffects": false,
31
+ "license": "MIT",
32
+ "author": "@jamsrworld",
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "https://github.com/jamsrworld/jamsr-ui"
36
+ },
37
+ "bugs": {
38
+ "url": "https://github.com/jamsrworld/jamsr-ui/issues"
39
+ },
40
+ "homepage": "https://jamsr-ui.jamsrworld.com",
41
+ "files": [
42
+ "dist",
43
+ "README",
44
+ "README.md",
45
+ "package.json",
46
+ "LICENSE"
47
+ ]
48
+ }