@betterlb/kapwa 1.1.12 → 1.2.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/dist/{utils-BWXuiikn.js → index-CRZxS9UL.js} +3 -3
- package/dist/index-CRZxS9UL.js.map +1 -0
- package/dist/{utils-GVl92sVg.cjs → index-GVl92sVg.cjs} +1 -1
- package/dist/index-GVl92sVg.cjs.map +1 -0
- package/dist/kapwa/article/index.d.ts +24 -0
- package/dist/kapwa/article/index.tsx.cjs +2 -0
- package/dist/kapwa/article/index.tsx.cjs.map +1 -0
- package/dist/kapwa/article/index.tsx.js +36 -0
- package/dist/kapwa/article/index.tsx.js.map +1 -0
- package/dist/kapwa/banner/index.tsx.cjs +1 -1
- package/dist/kapwa/banner/index.tsx.cjs.map +1 -1
- package/dist/kapwa/banner/index.tsx.js +1 -1
- package/dist/kapwa/banner/index.tsx.js.map +1 -1
- package/dist/kapwa/button/hooks/index.ts.cjs.map +1 -1
- package/dist/kapwa/button/hooks/index.ts.js.map +1 -1
- package/dist/kapwa/button/index.tsx.cjs +1 -1
- package/dist/kapwa/button/index.tsx.cjs.map +1 -1
- package/dist/kapwa/button/index.tsx.js +1 -1
- package/dist/kapwa/button/index.tsx.js.map +1 -1
- package/dist/kapwa/card/index.tsx.cjs +1 -1
- package/dist/kapwa/card/index.tsx.cjs.map +1 -1
- package/dist/kapwa/card/index.tsx.js +1 -1
- package/dist/kapwa/card/index.tsx.js.map +1 -1
- package/dist/kapwa/civic-tech-banner/index.d.ts +22 -0
- package/dist/kapwa/civic-tech-banner/index.tsx.cjs +2 -0
- package/dist/kapwa/civic-tech-banner/index.tsx.cjs.map +1 -0
- package/dist/kapwa/civic-tech-banner/index.tsx.js +45 -0
- package/dist/kapwa/civic-tech-banner/index.tsx.js.map +1 -0
- package/dist/kapwa/index.d.ts +11 -0
- package/dist/kapwa/input/index.tsx.cjs +1 -1
- package/dist/kapwa/input/index.tsx.cjs.map +1 -1
- package/dist/kapwa/input/index.tsx.js +1 -1
- package/dist/kapwa/input/index.tsx.js.map +1 -1
- package/dist/kapwa/label/index.tsx.cjs +1 -1
- package/dist/kapwa/label/index.tsx.cjs.map +1 -1
- package/dist/kapwa/label/index.tsx.js +1 -1
- package/dist/kapwa/label/index.tsx.js.map +1 -1
- package/dist/kapwa/list/index.d.ts +21 -0
- package/dist/kapwa/list/index.tsx.cjs +27 -0
- package/dist/kapwa/list/index.tsx.cjs.map +1 -0
- package/dist/kapwa/list/index.tsx.js +140 -0
- package/dist/kapwa/list/index.tsx.js.map +1 -0
- package/dist/kapwa/strip-banner/index.d.ts +22 -0
- package/dist/kapwa/strip-banner/index.tsx.cjs +2 -0
- package/dist/kapwa/strip-banner/index.tsx.cjs.map +1 -0
- package/dist/kapwa/strip-banner/index.tsx.js +39 -0
- package/dist/kapwa/strip-banner/index.tsx.js.map +1 -0
- package/dist/kapwa/table/index.d.ts +13 -0
- package/dist/kapwa/table/index.tsx.cjs +2 -0
- package/dist/kapwa/table/index.tsx.cjs.map +1 -0
- package/dist/kapwa/table/index.tsx.js +37 -0
- package/dist/kapwa/table/index.tsx.js.map +1 -0
- package/dist/kapwa/utils/index.ts.cjs +2 -0
- package/dist/kapwa/utils/index.ts.cjs.map +1 -0
- package/dist/kapwa/utils/index.ts.js +8 -0
- package/dist/kapwa/utils/index.ts.js.map +1 -0
- package/dist/kapwa.css +50 -17
- package/package.json +57 -20
- package/dist/index.cjs +0 -2
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.ts +0 -6
- package/dist/index.js +0 -22
- package/dist/index.js.map +0 -1
- package/dist/lib/utils.cjs +0 -2
- package/dist/lib/utils.cjs.map +0 -1
- package/dist/lib/utils.js +0 -8
- package/dist/lib/utils.js.map +0 -1
- package/dist/utils-BWXuiikn.js.map +0 -1
- package/dist/utils-GVl92sVg.cjs.map +0 -1
- /package/dist/{lib/utils.d.ts → kapwa/utils/index.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.tsx.js","sources":["../../../node_modules/@radix-ui/react-compose-refs/dist/index.mjs","../../../node_modules/@radix-ui/react-slot/dist/index.mjs","../../../node_modules/@radix-ui/react-primitive/dist/index.mjs","../../../node_modules/@radix-ui/react-label/dist/index.mjs","../../../node_modules/class-variance-authority/dist/index.mjs","../../../src/kapwa/label/index.tsx"],"sourcesContent":["// packages/react/compose-refs/src/compose-refs.tsx\nimport * as React from \"react\";\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n } else if (ref !== null && ref !== void 0) {\n ref.current = value;\n }\n}\nfunction composeRefs(...refs) {\n return (node) => {\n let hasCleanup = false;\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup == \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup == \"function\") {\n cleanup();\n } else {\n setRef(refs[i], null);\n }\n }\n };\n }\n };\n}\nfunction useComposedRefs(...refs) {\n return React.useCallback(composeRefs(...refs), refs);\n}\nexport {\n composeRefs,\n useComposedRefs\n};\n//# sourceMappingURL=index.mjs.map\n","// src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n });\n Slot2.displayName = `${ownerName}.Slot`;\n return Slot2;\n}\nvar Slot = /* @__PURE__ */ createSlot(\"Slot\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlotClone(ownerName) {\n const SlotClone = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n });\n SlotClone.displayName = `${ownerName}.SlotClone`;\n return SlotClone;\n}\nvar SLOTTABLE_IDENTIFIER = Symbol(\"radix.slottable\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlottable(ownerName) {\n const Slottable2 = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n };\n Slottable2.displayName = `${ownerName}.Slottable`;\n Slottable2.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable2;\n}\nvar Slottable = /* @__PURE__ */ createSlottable(\"Slottable\");\nfunction isSlottable(child) {\n return React.isValidElement(child) && typeof child.type === \"function\" && \"__radixId\" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n const result = childPropValue(...args);\n slotPropValue(...args);\n return result;\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nexport {\n Slot as Root,\n Slot,\n Slottable,\n createSlot,\n createSlottable\n};\n//# sourceMappingURL=index.mjs.map\n","// src/primitive.tsx\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NODES = [\n \"a\",\n \"button\",\n \"div\",\n \"form\",\n \"h2\",\n \"h3\",\n \"img\",\n \"input\",\n \"label\",\n \"li\",\n \"nav\",\n \"ol\",\n \"p\",\n \"select\",\n \"span\",\n \"svg\",\n \"ul\"\n];\nvar Primitive = NODES.reduce((primitive, node) => {\n const Slot = createSlot(`Primitive.${node}`);\n const Node = React.forwardRef((props, forwardedRef) => {\n const { asChild, ...primitiveProps } = props;\n const Comp = asChild ? Slot : node;\n if (typeof window !== \"undefined\") {\n window[Symbol.for(\"radix-ui\")] = true;\n }\n return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });\n });\n Node.displayName = `Primitive.${node}`;\n return { ...primitive, [node]: Node };\n}, {});\nfunction dispatchDiscreteCustomEvent(target, event) {\n if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));\n}\nvar Root = Primitive;\nexport {\n Primitive,\n Root,\n dispatchDiscreteCustomEvent\n};\n//# sourceMappingURL=index.mjs.map\n","\"use client\";\n\n// src/label.tsx\nimport * as React from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NAME = \"Label\";\nvar Label = React.forwardRef((props, forwardedRef) => {\n return /* @__PURE__ */ jsx(\n Primitive.label,\n {\n ...props,\n ref: forwardedRef,\n onMouseDown: (event) => {\n const target = event.target;\n if (target.closest(\"button, input, select, textarea\")) return;\n props.onMouseDown?.(event);\n if (!event.defaultPrevented && event.detail > 1) event.preventDefault();\n }\n }\n );\n});\nLabel.displayName = NAME;\nvar Root = Label;\nexport {\n Label,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n","/**\n * Copyright 2022 Joe Bell. All rights reserved.\n *\n * This file is licensed to you under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with the\n * License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or implied. See the\n * License for the specific language governing permissions and limitations under\n * the License.\n */ import { clsx } from \"clsx\";\nconst falsyToString = (value)=>typeof value === \"boolean\" ? `${value}` : value === 0 ? \"0\" : value;\nexport const cx = clsx;\nexport const cva = (base, config)=>(props)=>{\n var _config_compoundVariants;\n if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n const { variants, defaultVariants } = config;\n const getVariantClassNames = Object.keys(variants).map((variant)=>{\n const variantProp = props === null || props === void 0 ? void 0 : props[variant];\n const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];\n if (variantProp === null) return null;\n const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);\n return variants[variant][variantKey];\n });\n const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{\n let [key, value] = param;\n if (value === undefined) {\n return acc;\n }\n acc[key] = value;\n return acc;\n }, {});\n const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param)=>{\n let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;\n return Object.entries(compoundVariantOptions).every((param)=>{\n let [key, value] = param;\n return Array.isArray(value) ? value.includes({\n ...defaultVariants,\n ...propsWithoutUndefined\n }[key]) : ({\n ...defaultVariants,\n ...propsWithoutUndefined\n })[key] === value;\n }) ? [\n ...acc,\n cvClass,\n cvClassName\n ] : acc;\n }, []);\n return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n };\n\n","import * as React from 'react';\nimport * as LabelPrimitive from '@radix-ui/react-label';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '@lib/utils';\n\nconst labelVariants = cva(\n 'text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70'\n);\n\nconst Label = React.forwardRef<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &\n VariantProps<typeof labelVariants>\n>(({ className, ...props }, ref) => (\n <LabelPrimitive.Root\n ref={ref}\n className={cn(labelVariants(), className)}\n {...props}\n />\n));\nLabel.displayName = LabelPrimitive.Root.displayName;\n\nexport { Label };\n"],"names":["setRef","ref","value","composeRefs","refs","node","hasCleanup","cleanups","cleanup","i","createSlot","ownerName","SlotClone","createSlotClone","Slot2","React","props","forwardedRef","children","slotProps","childrenArray","slottable","isSlottable","newElement","newChildren","child","jsx","childrenRef","getElementRef","props2","mergeProps","SLOTTABLE_IDENTIFIER","childProps","overrideProps","propName","slotPropValue","childPropValue","args","result","element","getter","_a","mayWarn","_b","NODES","Primitive","primitive","Slot","Node","asChild","primitiveProps","Comp","NAME","Label","event","Root","cx","clsx","cva","base","config","labelVariants","className","LabelPrimitive.Root","c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;AAAA,EAC3E,CAAC;AACD,SAAA+B,EAAK,cAAc,aAAa3C,CAAI,IAC7B,EAAE,GAAGyC,GAAW,CAACzC,CAAI,GAAG2C,EAAI;AACrC,GAAG,EAAE,GC9BDI,IAAO,SACPC,IAAQtC,EAAM,WAAW,CAACC,GAAOC,MACZS,gBAAAA,EAAAA;AAAAA,EACrBmB,EAAU;AAAA,EACV;AAAA,IACE,GAAG7B;AAAA,IACH,KAAKC;AAAA,IACL,aAAa,CAACqC,MAAU;;AAEtB,MADeA,EAAM,OACV,QAAQ,iCAAiC,OACpDb,IAAAzB,EAAM,gBAAN,QAAAyB,EAAA,KAAAzB,GAAoBsC,IAChB,CAACA,EAAM,oBAAoBA,EAAM,SAAS,KAAGA,EAAM,eAAc;AAAA,IACvE;AAAA,EACN;AACA,CACC;AACDD,EAAM,cAAcD;AACpB,IAAIG,IAAOF;ACPJ,MAAMG,IAAKC,GACLC,IAAM,CAACC,GAAMC,MAAS,CAAC5C,MAE0DwC,EAAGG,GAAM3C,KAAU,OAA2B,SAASA,EAAM,OAAOA,KAAU,OAA2B,SAASA,EAAM,SAAS,GCbzN6C,IAAgBH;AAAA,EACpB;AACF,GAEML,IAAQtC,EAAM,WAIlB,CAAC,EAAE,WAAA+C,GAAW,GAAG9C,EAAA,GAASf,MAC1ByB,gBAAAA,EAAAA;AAAAA,EAACqC;AAAAA,EAAA;AAAA,IACC,KAAA9D;AAAA,IACA,WAAW+D,EAAGH,EAAA,GAAiBC,CAAS;AAAA,IACvC,GAAG9C;AAAA,EAAA;AACN,CACD;AACDqC,EAAM,cAAcU,EAAoB;","x_google_ignoreList":[0,1,2,3,4]}
|
|
1
|
+
{"version":3,"file":"index.tsx.js","sources":["../../../node_modules/@radix-ui/react-compose-refs/dist/index.mjs","../../../node_modules/@radix-ui/react-slot/dist/index.mjs","../../../node_modules/@radix-ui/react-primitive/dist/index.mjs","../../../node_modules/@radix-ui/react-label/dist/index.mjs","../../../node_modules/class-variance-authority/dist/index.mjs","../../../src/lib/kapwa/label/index.tsx"],"sourcesContent":["// packages/react/compose-refs/src/compose-refs.tsx\nimport * as React from \"react\";\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n } else if (ref !== null && ref !== void 0) {\n ref.current = value;\n }\n}\nfunction composeRefs(...refs) {\n return (node) => {\n let hasCleanup = false;\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup == \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup == \"function\") {\n cleanup();\n } else {\n setRef(refs[i], null);\n }\n }\n };\n }\n };\n}\nfunction useComposedRefs(...refs) {\n return React.useCallback(composeRefs(...refs), refs);\n}\nexport {\n composeRefs,\n useComposedRefs\n};\n//# sourceMappingURL=index.mjs.map\n","// src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n });\n Slot2.displayName = `${ownerName}.Slot`;\n return Slot2;\n}\nvar Slot = /* @__PURE__ */ createSlot(\"Slot\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlotClone(ownerName) {\n const SlotClone = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n });\n SlotClone.displayName = `${ownerName}.SlotClone`;\n return SlotClone;\n}\nvar SLOTTABLE_IDENTIFIER = Symbol(\"radix.slottable\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlottable(ownerName) {\n const Slottable2 = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n };\n Slottable2.displayName = `${ownerName}.Slottable`;\n Slottable2.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable2;\n}\nvar Slottable = /* @__PURE__ */ createSlottable(\"Slottable\");\nfunction isSlottable(child) {\n return React.isValidElement(child) && typeof child.type === \"function\" && \"__radixId\" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n const result = childPropValue(...args);\n slotPropValue(...args);\n return result;\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nexport {\n Slot as Root,\n Slot,\n Slottable,\n createSlot,\n createSlottable\n};\n//# sourceMappingURL=index.mjs.map\n","// src/primitive.tsx\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NODES = [\n \"a\",\n \"button\",\n \"div\",\n \"form\",\n \"h2\",\n \"h3\",\n \"img\",\n \"input\",\n \"label\",\n \"li\",\n \"nav\",\n \"ol\",\n \"p\",\n \"select\",\n \"span\",\n \"svg\",\n \"ul\"\n];\nvar Primitive = NODES.reduce((primitive, node) => {\n const Slot = createSlot(`Primitive.${node}`);\n const Node = React.forwardRef((props, forwardedRef) => {\n const { asChild, ...primitiveProps } = props;\n const Comp = asChild ? Slot : node;\n if (typeof window !== \"undefined\") {\n window[Symbol.for(\"radix-ui\")] = true;\n }\n return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });\n });\n Node.displayName = `Primitive.${node}`;\n return { ...primitive, [node]: Node };\n}, {});\nfunction dispatchDiscreteCustomEvent(target, event) {\n if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));\n}\nvar Root = Primitive;\nexport {\n Primitive,\n Root,\n dispatchDiscreteCustomEvent\n};\n//# sourceMappingURL=index.mjs.map\n","\"use client\";\n\n// src/label.tsx\nimport * as React from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NAME = \"Label\";\nvar Label = React.forwardRef((props, forwardedRef) => {\n return /* @__PURE__ */ jsx(\n Primitive.label,\n {\n ...props,\n ref: forwardedRef,\n onMouseDown: (event) => {\n const target = event.target;\n if (target.closest(\"button, input, select, textarea\")) return;\n props.onMouseDown?.(event);\n if (!event.defaultPrevented && event.detail > 1) event.preventDefault();\n }\n }\n );\n});\nLabel.displayName = NAME;\nvar Root = Label;\nexport {\n Label,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n","/**\n * Copyright 2022 Joe Bell. All rights reserved.\n *\n * This file is licensed to you under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with the\n * License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or implied. See the\n * License for the specific language governing permissions and limitations under\n * the License.\n */ import { clsx } from \"clsx\";\nconst falsyToString = (value)=>typeof value === \"boolean\" ? `${value}` : value === 0 ? \"0\" : value;\nexport const cx = clsx;\nexport const cva = (base, config)=>(props)=>{\n var _config_compoundVariants;\n if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n const { variants, defaultVariants } = config;\n const getVariantClassNames = Object.keys(variants).map((variant)=>{\n const variantProp = props === null || props === void 0 ? void 0 : props[variant];\n const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];\n if (variantProp === null) return null;\n const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);\n return variants[variant][variantKey];\n });\n const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{\n let [key, value] = param;\n if (value === undefined) {\n return acc;\n }\n acc[key] = value;\n return acc;\n }, {});\n const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param)=>{\n let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;\n return Object.entries(compoundVariantOptions).every((param)=>{\n let [key, value] = param;\n return Array.isArray(value) ? value.includes({\n ...defaultVariants,\n ...propsWithoutUndefined\n }[key]) : ({\n ...defaultVariants,\n ...propsWithoutUndefined\n })[key] === value;\n }) ? [\n ...acc,\n cvClass,\n cvClassName\n ] : acc;\n }, []);\n return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n };\n\n","import * as React from 'react';\nimport * as LabelPrimitive from '@radix-ui/react-label';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '@kapwa/utils';\n\nconst labelVariants = cva(\n 'text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70'\n);\n\nconst Label = React.forwardRef<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &\n VariantProps<typeof labelVariants>\n>(({ className, ...props }, ref) => (\n <LabelPrimitive.Root\n ref={ref}\n className={cn(labelVariants(), className)}\n {...props}\n />\n));\nLabel.displayName = LabelPrimitive.Root.displayName;\n\nexport { Label };\n"],"names":["setRef","ref","value","composeRefs","refs","node","hasCleanup","cleanups","cleanup","i","createSlot","ownerName","SlotClone","createSlotClone","Slot2","React","props","forwardedRef","children","slotProps","childrenArray","slottable","isSlottable","newElement","newChildren","child","jsx","childrenRef","getElementRef","props2","mergeProps","SLOTTABLE_IDENTIFIER","childProps","overrideProps","propName","slotPropValue","childPropValue","args","result","element","getter","_a","mayWarn","_b","NODES","Primitive","primitive","Slot","Node","asChild","primitiveProps","Comp","NAME","Label","event","Root","cx","clsx","cva","base","config","labelVariants","className","LabelPrimitive.Root","cn"],"mappings":";;;;AAEA,SAASA,EAAOC,GAAKC,GAAO;AAC1B,MAAI,OAAOD,KAAQ;AACjB,WAAOA,EAAIC,CAAK;AACX,EAAID,KAAQ,SACjBA,EAAI,UAAUC;AAElB;AACA,SAASC,KAAeC,GAAM;AAC5B,SAAO,CAACC,MAAS;AAC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AAA,EAAAA;AAAAA,EACrBmB,EAAU;AAAA,EACV;AAAA,IACE,GAAG7B;AAAA,IACH,KAAKC;AAAA,IACL,aAAa,CAACqC,MAAU;;AAEtB,MADeA,EAAM,OACV,QAAQ,iCAAiC,OACpDb,IAAAzB,EAAM,gBAAN,QAAAyB,EAAA,KAAAzB,GAAoBsC,IAChB,CAACA,EAAM,oBAAoBA,EAAM,SAAS,KAAGA,EAAM,eAAc;AAAA,IACvE;AAAA,EACN;AACA,CACC;AACDD,EAAM,cAAcD;AACpB,IAAIG,IAAOF;ACPJ,MAAMG,IAAKC,GACLC,IAAM,CAACC,GAAMC,MAAS,CAAC5C,MAE0DwC,EAAGG,GAAM3C,KAAU,OAA2B,SAASA,EAAM,OAAOA,KAAU,OAA2B,SAASA,EAAM,SAAS,GCbzN6C,IAAgBH;AAAA,EACpB;AACF,GAEML,IAAQtC,EAAM,WAIlB,CAAC,EAAE,WAAA+C,GAAW,GAAG9C,EAAA,GAASf,MAC1ByB,gBAAAA,EAAAA;AAAAA,EAACqC;AAAAA,EAAA;AAAA,IACC,KAAA9D;AAAA,IACA,WAAW+D,EAAGH,EAAA,GAAiBC,CAAS;AAAA,IACvC,GAAG9C;AAAA,EAAA;AACN,CACD;AACDqC,EAAM,cAAcU,EAAoB;","x_google_ignoreList":[0,1,2,3,4]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
type ListSectionItem = {
|
|
2
|
+
id: number;
|
|
3
|
+
title: string;
|
|
4
|
+
category: string;
|
|
5
|
+
};
|
|
6
|
+
type ListsSectionProps = {
|
|
7
|
+
title: string;
|
|
8
|
+
headerTitle: string;
|
|
9
|
+
headerSubtitle?: string;
|
|
10
|
+
externalLinkText?: string;
|
|
11
|
+
listItems: ListSectionItem[];
|
|
12
|
+
};
|
|
13
|
+
declare const List: ({ headerTitle, headerSubtitle, externalLinkText, listItems, title, }: {
|
|
14
|
+
title: string;
|
|
15
|
+
headerTitle: string;
|
|
16
|
+
headerSubtitle?: string;
|
|
17
|
+
externalLinkText?: string;
|
|
18
|
+
listItems: ListSectionItem[];
|
|
19
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export { List };
|
|
21
|
+
export type { ListsSectionProps, ListSectionItem };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../../jsx-runtime-KWq1EBG2.cjs"),j=require("../button/index.tsx.cjs"),c=require("../card/index.tsx.cjs"),i=require("react");/**
|
|
2
|
+
* @license lucide-react v0.513.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const g=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),y=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,n)=>n?n.toUpperCase():r.toLowerCase()),l=t=>{const e=y(t);return e.charAt(0).toUpperCase()+e.slice(1)},d=(...t)=>t.filter((e,r,n)=>!!e&&e.trim()!==""&&n.indexOf(e)===r).join(" ").trim(),E=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0};/**
|
|
7
|
+
* @license lucide-react v0.513.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/var R={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
12
|
+
* @license lucide-react v0.513.0 - ISC
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the ISC license.
|
|
15
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/const f=i.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:m,...x},u)=>i.createElement("svg",{ref:u,...R,width:e,height:e,stroke:t,strokeWidth:n?Number(r)*24/Number(e):r,className:d("lucide",o),...!a&&!E(x)&&{"aria-hidden":"true"},...x},[...m.map(([p,h])=>i.createElement(p,h)),...Array.isArray(a)?a:[a]]));/**
|
|
17
|
+
* @license lucide-react v0.513.0 - ISC
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the ISC license.
|
|
20
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/const w=(t,e)=>{const r=i.forwardRef(({className:n,...o},a)=>i.createElement(f,{ref:a,iconNode:e,className:d(`lucide-${g(l(t))}`,`lucide-${t}`,n),...o}));return r.displayName=l(t),r};/**
|
|
22
|
+
* @license lucide-react v0.513.0 - ISC
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the ISC license.
|
|
25
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/const b=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],C=w("external-link",b),v=({headerTitle:t,headerSubtitle:e,externalLinkText:r,listItems:n,title:o})=>s.jsxRuntimeExports.jsxs(c.Card,{className:"mb-8",children:[s.jsxRuntimeExports.jsxs(c.CardHeader,{children:[s.jsxRuntimeExports.jsx("h2",{className:"text-2xl font-semibold",children:t}),e&&s.jsxRuntimeExports.jsx("p",{className:"text-gray-800",children:e})]}),s.jsxRuntimeExports.jsx(c.CardContent,{children:s.jsxRuntimeExports.jsx("div",{className:"space-y-8",children:s.jsxRuntimeExports.jsxs("div",{children:[s.jsxRuntimeExports.jsx("h3",{className:"font-medium mb-4",children:o}),s.jsxRuntimeExports.jsx("div",{className:"space-y-4",children:n.map(a=>s.jsxRuntimeExports.jsx("div",{className:"p-4 bg-white border border-gray-200 rounded-lg hover:border-primary-500 transition-colors",children:s.jsxRuntimeExports.jsxs("div",{className:"flex items-start justify-between",children:[s.jsxRuntimeExports.jsxs("div",{children:[s.jsxRuntimeExports.jsx("h4",{className:"text-lg font-medium text-gray-900",children:a.title}),s.jsxRuntimeExports.jsx("span",{className:"inline-block px-2 py-1 mt-2 text-xs font-medium rounded-sm bg-gray-100 text-gray-800",children:a.category})]}),r&&s.jsxRuntimeExports.jsxs(j.Button,{variant:"ghost",size:"sm",children:[r,s.jsxRuntimeExports.jsx(C,{className:"ml-2 h-4 w-4"})]})]})},a.id))})]})})})]});exports.List=v;
|
|
27
|
+
//# sourceMappingURL=index.tsx.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.tsx.cjs","sources":["../../../node_modules/lucide-react/dist/esm/shared/src/utils.js","../../../node_modules/lucide-react/dist/esm/defaultAttributes.js","../../../node_modules/lucide-react/dist/esm/Icon.js","../../../node_modules/lucide-react/dist/esm/createLucideIcon.js","../../../node_modules/lucide-react/dist/esm/icons/external-link.js","../../../src/lib/kapwa/list/index.tsx"],"sourcesContent":["/**\n * @license lucide-react v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nconst toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, \"$1-$2\").toLowerCase();\nconst toCamelCase = (string) => string.replace(\n /^([A-Z])|[\\s-_]+(\\w)/g,\n (match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase()\n);\nconst toPascalCase = (string) => {\n const camelCase = toCamelCase(string);\n return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);\n};\nconst mergeClasses = (...classes) => classes.filter((className, index, array) => {\n return Boolean(className) && className.trim() !== \"\" && array.indexOf(className) === index;\n}).join(\" \").trim();\nconst hasA11yProp = (props) => {\n for (const prop in props) {\n if (prop.startsWith(\"aria-\") || prop === \"role\" || prop === \"title\") {\n return true;\n }\n }\n};\n\nexport { hasA11yProp, mergeClasses, toCamelCase, toKebabCase, toPascalCase };\n//# sourceMappingURL=utils.js.map\n","/**\n * @license lucide-react v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nvar defaultAttributes = {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n};\n\nexport { defaultAttributes as default };\n//# sourceMappingURL=defaultAttributes.js.map\n","/**\n * @license lucide-react v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { forwardRef, createElement } from 'react';\nimport defaultAttributes from './defaultAttributes.js';\nimport { mergeClasses, hasA11yProp } from './shared/src/utils.js';\n\nconst Icon = forwardRef(\n ({\n color = \"currentColor\",\n size = 24,\n strokeWidth = 2,\n absoluteStrokeWidth,\n className = \"\",\n children,\n iconNode,\n ...rest\n }, ref) => createElement(\n \"svg\",\n {\n ref,\n ...defaultAttributes,\n width: size,\n height: size,\n stroke: color,\n strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,\n className: mergeClasses(\"lucide\", className),\n ...!children && !hasA11yProp(rest) && { \"aria-hidden\": \"true\" },\n ...rest\n },\n [\n ...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),\n ...Array.isArray(children) ? children : [children]\n ]\n )\n);\n\nexport { Icon as default };\n//# sourceMappingURL=Icon.js.map\n","/**\n * @license lucide-react v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { forwardRef, createElement } from 'react';\nimport { mergeClasses, toKebabCase, toPascalCase } from './shared/src/utils.js';\nimport Icon from './Icon.js';\n\nconst createLucideIcon = (iconName, iconNode) => {\n const Component = forwardRef(\n ({ className, ...props }, ref) => createElement(Icon, {\n ref,\n iconNode,\n className: mergeClasses(\n `lucide-${toKebabCase(toPascalCase(iconName))}`,\n `lucide-${iconName}`,\n className\n ),\n ...props\n })\n );\n Component.displayName = toPascalCase(iconName);\n return Component;\n};\n\nexport { createLucideIcon as default };\n//# sourceMappingURL=createLucideIcon.js.map\n","/**\n * @license lucide-react v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"M15 3h6v6\", key: \"1q9fwt\" }],\n [\"path\", { d: \"M10 14 21 3\", key: \"gplh6r\" }],\n [\"path\", { d: \"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6\", key: \"a6xqqp\" }]\n];\nconst ExternalLink = createLucideIcon(\"external-link\", __iconNode);\n\nexport { __iconNode, ExternalLink as default };\n//# sourceMappingURL=external-link.js.map\n","import { Button } from '@kapwa/button';\nimport { Card, CardHeader, CardContent } from '@kapwa/card';\nimport { ExternalLink } from 'lucide-react';\n\ntype ListSectionItem = {\n id: number;\n title: string;\n category: string;\n};\n\ntype ListsSectionProps = {\n title: string;\n headerTitle: string;\n headerSubtitle?: string;\n externalLinkText?: string;\n listItems: ListSectionItem[];\n};\n\nconst List = ({\n headerTitle,\n headerSubtitle,\n externalLinkText,\n listItems,\n title,\n}: {\n title: string;\n headerTitle: string;\n headerSubtitle?: string;\n externalLinkText?: string;\n listItems: ListSectionItem[];\n}) => {\n return (\n <Card className='mb-8'>\n <CardHeader>\n <h2 className='text-2xl font-semibold'>{headerTitle}</h2>\n {headerSubtitle && <p className='text-gray-800'>{headerSubtitle}</p>}\n </CardHeader>\n <CardContent>\n <div className='space-y-8'>\n <div>\n <h3 className='font-medium mb-4'>{title}</h3>\n <div className='space-y-4'>\n {listItems.map(item => (\n <div\n key={item.id}\n className='p-4 bg-white border border-gray-200 rounded-lg hover:border-primary-500 transition-colors'\n >\n <div className='flex items-start justify-between'>\n <div>\n <h4 className='text-lg font-medium text-gray-900'>\n {item.title}\n </h4>\n <span className='inline-block px-2 py-1 mt-2 text-xs font-medium rounded-sm bg-gray-100 text-gray-800'>\n {item.category}\n </span>\n </div>\n {externalLinkText && (\n <Button variant='ghost' size='sm'>\n {externalLinkText}\n <ExternalLink className='ml-2 h-4 w-4' />\n </Button>\n )}\n </div>\n </div>\n ))}\n </div>\n </div>\n </div>\n </CardContent>\n </Card>\n );\n};\n\nexport { List };\nexport type { ListsSectionProps, ListSectionItem };\n"],"names":["toKebabCase","string","toCamelCase","match","p1","p2","toPascalCase","camelCase","mergeClasses","classes","className","index","array","hasA11yProp","props","prop","defaultAttributes","Icon","forwardRef","color","size","strokeWidth","absoluteStrokeWidth","children","iconNode","rest","ref","createElement","tag","attrs","createLucideIcon","iconName","Component","__iconNode","ExternalLink","List","headerTitle","headerSubtitle","externalLinkText","listItems","title","jsxs","Card","CardHeader","jsx","CardContent","item","Button"],"mappings":"6NAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAOA,MAAMA,EAAeC,GAAWA,EAAO,QAAQ,qBAAsB,OAAO,EAAE,YAAW,EACnFC,EAAeD,GAAWA,EAAO,QACrC,wBACA,CAACE,EAAOC,EAAIC,IAAOA,EAAKA,EAAG,YAAW,EAAKD,EAAG,YAAW,CAC3D,EACME,EAAgBL,GAAW,CAC/B,MAAMM,EAAYL,EAAYD,CAAM,EACpC,OAAOM,EAAU,OAAO,CAAC,EAAE,YAAW,EAAKA,EAAU,MAAM,CAAC,CAC9D,EACMC,EAAe,IAAIC,IAAYA,EAAQ,OAAO,CAACC,EAAWC,EAAOC,IAC9D,EAAQF,GAAcA,EAAU,KAAI,IAAO,IAAME,EAAM,QAAQF,CAAS,IAAMC,CACtF,EAAE,KAAK,GAAG,EAAE,KAAI,EACXE,EAAeC,GAAU,CAC7B,UAAWC,KAAQD,EACjB,GAAIC,EAAK,WAAW,OAAO,GAAKA,IAAS,QAAUA,IAAS,QAC1D,MAAO,EAGb,ECzBA;A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AAA,CAAa,UAAU,cAAA,CAAe,CAAA,CAAA,CACzC,CAAA,CAAA,CAEJ,CAAA,EAlBKY,EAAK,EAAA,CAoBb,CAAA,CACH,CAAA,CAAA,CACF,EACF,CAAA,CACF,CAAA,EACF","x_google_ignoreList":[0,1,2,3,4]}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { j as s } from "../../jsx-runtime-DdAyboqB.js";
|
|
2
|
+
import { Button as j } from "../button/index.tsx.js";
|
|
3
|
+
import { Card as g, CardHeader as f, CardContent as y } from "../card/index.tsx.js";
|
|
4
|
+
import { forwardRef as d, createElement as i } from "react";
|
|
5
|
+
/**
|
|
6
|
+
* @license lucide-react v0.513.0 - ISC
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the ISC license.
|
|
9
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/
|
|
11
|
+
const C = (r) => r.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), w = (r) => r.replace(
|
|
12
|
+
/^([A-Z])|[\s-_]+(\w)/g,
|
|
13
|
+
(e, t, a) => a ? a.toUpperCase() : t.toLowerCase()
|
|
14
|
+
), l = (r) => {
|
|
15
|
+
const e = w(r);
|
|
16
|
+
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
17
|
+
}, m = (...r) => r.filter((e, t, a) => !!e && e.trim() !== "" && a.indexOf(e) === t).join(" ").trim(), b = (r) => {
|
|
18
|
+
for (const e in r)
|
|
19
|
+
if (e.startsWith("aria-") || e === "role" || e === "title")
|
|
20
|
+
return !0;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* @license lucide-react v0.513.0 - ISC
|
|
24
|
+
*
|
|
25
|
+
* This source code is licensed under the ISC license.
|
|
26
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
27
|
+
*/
|
|
28
|
+
var v = {
|
|
29
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
30
|
+
width: 24,
|
|
31
|
+
height: 24,
|
|
32
|
+
viewBox: "0 0 24 24",
|
|
33
|
+
fill: "none",
|
|
34
|
+
stroke: "currentColor",
|
|
35
|
+
strokeWidth: 2,
|
|
36
|
+
strokeLinecap: "round",
|
|
37
|
+
strokeLinejoin: "round"
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* @license lucide-react v0.513.0 - ISC
|
|
41
|
+
*
|
|
42
|
+
* This source code is licensed under the ISC license.
|
|
43
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
44
|
+
*/
|
|
45
|
+
const N = d(
|
|
46
|
+
({
|
|
47
|
+
color: r = "currentColor",
|
|
48
|
+
size: e = 24,
|
|
49
|
+
strokeWidth: t = 2,
|
|
50
|
+
absoluteStrokeWidth: a,
|
|
51
|
+
className: n = "",
|
|
52
|
+
children: o,
|
|
53
|
+
iconNode: h,
|
|
54
|
+
...c
|
|
55
|
+
}, p) => i(
|
|
56
|
+
"svg",
|
|
57
|
+
{
|
|
58
|
+
ref: p,
|
|
59
|
+
...v,
|
|
60
|
+
width: e,
|
|
61
|
+
height: e,
|
|
62
|
+
stroke: r,
|
|
63
|
+
strokeWidth: a ? Number(t) * 24 / Number(e) : t,
|
|
64
|
+
className: m("lucide", n),
|
|
65
|
+
...!o && !b(c) && { "aria-hidden": "true" },
|
|
66
|
+
...c
|
|
67
|
+
},
|
|
68
|
+
[
|
|
69
|
+
...h.map(([x, u]) => i(x, u)),
|
|
70
|
+
...Array.isArray(o) ? o : [o]
|
|
71
|
+
]
|
|
72
|
+
)
|
|
73
|
+
);
|
|
74
|
+
/**
|
|
75
|
+
* @license lucide-react v0.513.0 - ISC
|
|
76
|
+
*
|
|
77
|
+
* This source code is licensed under the ISC license.
|
|
78
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
+
*/
|
|
80
|
+
const k = (r, e) => {
|
|
81
|
+
const t = d(
|
|
82
|
+
({ className: a, ...n }, o) => i(N, {
|
|
83
|
+
ref: o,
|
|
84
|
+
iconNode: e,
|
|
85
|
+
className: m(
|
|
86
|
+
`lucide-${C(l(r))}`,
|
|
87
|
+
`lucide-${r}`,
|
|
88
|
+
a
|
|
89
|
+
),
|
|
90
|
+
...n
|
|
91
|
+
})
|
|
92
|
+
);
|
|
93
|
+
return t.displayName = l(r), t;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* @license lucide-react v0.513.0 - ISC
|
|
97
|
+
*
|
|
98
|
+
* This source code is licensed under the ISC license.
|
|
99
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
+
*/
|
|
101
|
+
const A = [
|
|
102
|
+
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
103
|
+
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
104
|
+
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
105
|
+
], L = k("external-link", A), M = ({
|
|
106
|
+
headerTitle: r,
|
|
107
|
+
headerSubtitle: e,
|
|
108
|
+
externalLinkText: t,
|
|
109
|
+
listItems: a,
|
|
110
|
+
title: n
|
|
111
|
+
}) => /* @__PURE__ */ s.jsxs(g, { className: "mb-8", children: [
|
|
112
|
+
/* @__PURE__ */ s.jsxs(f, { children: [
|
|
113
|
+
/* @__PURE__ */ s.jsx("h2", { className: "text-2xl font-semibold", children: r }),
|
|
114
|
+
e && /* @__PURE__ */ s.jsx("p", { className: "text-gray-800", children: e })
|
|
115
|
+
] }),
|
|
116
|
+
/* @__PURE__ */ s.jsx(y, { children: /* @__PURE__ */ s.jsx("div", { className: "space-y-8", children: /* @__PURE__ */ s.jsxs("div", { children: [
|
|
117
|
+
/* @__PURE__ */ s.jsx("h3", { className: "font-medium mb-4", children: n }),
|
|
118
|
+
/* @__PURE__ */ s.jsx("div", { className: "space-y-4", children: a.map((o) => /* @__PURE__ */ s.jsx(
|
|
119
|
+
"div",
|
|
120
|
+
{
|
|
121
|
+
className: "p-4 bg-white border border-gray-200 rounded-lg hover:border-primary-500 transition-colors",
|
|
122
|
+
children: /* @__PURE__ */ s.jsxs("div", { className: "flex items-start justify-between", children: [
|
|
123
|
+
/* @__PURE__ */ s.jsxs("div", { children: [
|
|
124
|
+
/* @__PURE__ */ s.jsx("h4", { className: "text-lg font-medium text-gray-900", children: o.title }),
|
|
125
|
+
/* @__PURE__ */ s.jsx("span", { className: "inline-block px-2 py-1 mt-2 text-xs font-medium rounded-sm bg-gray-100 text-gray-800", children: o.category })
|
|
126
|
+
] }),
|
|
127
|
+
t && /* @__PURE__ */ s.jsxs(j, { variant: "ghost", size: "sm", children: [
|
|
128
|
+
t,
|
|
129
|
+
/* @__PURE__ */ s.jsx(L, { className: "ml-2 h-4 w-4" })
|
|
130
|
+
] })
|
|
131
|
+
] })
|
|
132
|
+
},
|
|
133
|
+
o.id
|
|
134
|
+
)) })
|
|
135
|
+
] }) }) })
|
|
136
|
+
] });
|
|
137
|
+
export {
|
|
138
|
+
M as List
|
|
139
|
+
};
|
|
140
|
+
//# sourceMappingURL=index.tsx.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.tsx.js","sources":["../../../node_modules/lucide-react/dist/esm/shared/src/utils.js","../../../node_modules/lucide-react/dist/esm/defaultAttributes.js","../../../node_modules/lucide-react/dist/esm/Icon.js","../../../node_modules/lucide-react/dist/esm/createLucideIcon.js","../../../node_modules/lucide-react/dist/esm/icons/external-link.js","../../../src/lib/kapwa/list/index.tsx"],"sourcesContent":["/**\n * @license lucide-react v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nconst toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, \"$1-$2\").toLowerCase();\nconst toCamelCase = (string) => string.replace(\n /^([A-Z])|[\\s-_]+(\\w)/g,\n (match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase()\n);\nconst toPascalCase = (string) => {\n const camelCase = toCamelCase(string);\n return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);\n};\nconst mergeClasses = (...classes) => classes.filter((className, index, array) => {\n return Boolean(className) && className.trim() !== \"\" && array.indexOf(className) === index;\n}).join(\" \").trim();\nconst hasA11yProp = (props) => {\n for (const prop in props) {\n if (prop.startsWith(\"aria-\") || prop === \"role\" || prop === \"title\") {\n return true;\n }\n }\n};\n\nexport { hasA11yProp, mergeClasses, toCamelCase, toKebabCase, toPascalCase };\n//# sourceMappingURL=utils.js.map\n","/**\n * @license lucide-react v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nvar defaultAttributes = {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n};\n\nexport { defaultAttributes as default };\n//# sourceMappingURL=defaultAttributes.js.map\n","/**\n * @license lucide-react v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { forwardRef, createElement } from 'react';\nimport defaultAttributes from './defaultAttributes.js';\nimport { mergeClasses, hasA11yProp } from './shared/src/utils.js';\n\nconst Icon = forwardRef(\n ({\n color = \"currentColor\",\n size = 24,\n strokeWidth = 2,\n absoluteStrokeWidth,\n className = \"\",\n children,\n iconNode,\n ...rest\n }, ref) => createElement(\n \"svg\",\n {\n ref,\n ...defaultAttributes,\n width: size,\n height: size,\n stroke: color,\n strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,\n className: mergeClasses(\"lucide\", className),\n ...!children && !hasA11yProp(rest) && { \"aria-hidden\": \"true\" },\n ...rest\n },\n [\n ...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),\n ...Array.isArray(children) ? children : [children]\n ]\n )\n);\n\nexport { Icon as default };\n//# sourceMappingURL=Icon.js.map\n","/**\n * @license lucide-react v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { forwardRef, createElement } from 'react';\nimport { mergeClasses, toKebabCase, toPascalCase } from './shared/src/utils.js';\nimport Icon from './Icon.js';\n\nconst createLucideIcon = (iconName, iconNode) => {\n const Component = forwardRef(\n ({ className, ...props }, ref) => createElement(Icon, {\n ref,\n iconNode,\n className: mergeClasses(\n `lucide-${toKebabCase(toPascalCase(iconName))}`,\n `lucide-${iconName}`,\n className\n ),\n ...props\n })\n );\n Component.displayName = toPascalCase(iconName);\n return Component;\n};\n\nexport { createLucideIcon as default };\n//# sourceMappingURL=createLucideIcon.js.map\n","/**\n * @license lucide-react v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"M15 3h6v6\", key: \"1q9fwt\" }],\n [\"path\", { d: \"M10 14 21 3\", key: \"gplh6r\" }],\n [\"path\", { d: \"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6\", key: \"a6xqqp\" }]\n];\nconst ExternalLink = createLucideIcon(\"external-link\", __iconNode);\n\nexport { __iconNode, ExternalLink as default };\n//# sourceMappingURL=external-link.js.map\n","import { Button } from '@kapwa/button';\nimport { Card, CardHeader, CardContent } from '@kapwa/card';\nimport { ExternalLink } from 'lucide-react';\n\ntype ListSectionItem = {\n id: number;\n title: string;\n category: string;\n};\n\ntype ListsSectionProps = {\n title: string;\n headerTitle: string;\n headerSubtitle?: string;\n externalLinkText?: string;\n listItems: ListSectionItem[];\n};\n\nconst List = ({\n headerTitle,\n headerSubtitle,\n externalLinkText,\n listItems,\n title,\n}: {\n title: string;\n headerTitle: string;\n headerSubtitle?: string;\n externalLinkText?: string;\n listItems: ListSectionItem[];\n}) => {\n return (\n <Card className='mb-8'>\n <CardHeader>\n <h2 className='text-2xl font-semibold'>{headerTitle}</h2>\n {headerSubtitle && <p className='text-gray-800'>{headerSubtitle}</p>}\n </CardHeader>\n <CardContent>\n <div className='space-y-8'>\n <div>\n <h3 className='font-medium mb-4'>{title}</h3>\n <div className='space-y-4'>\n {listItems.map(item => (\n <div\n key={item.id}\n className='p-4 bg-white border border-gray-200 rounded-lg hover:border-primary-500 transition-colors'\n >\n <div className='flex items-start justify-between'>\n <div>\n <h4 className='text-lg font-medium text-gray-900'>\n {item.title}\n </h4>\n <span className='inline-block px-2 py-1 mt-2 text-xs font-medium rounded-sm bg-gray-100 text-gray-800'>\n {item.category}\n </span>\n </div>\n {externalLinkText && (\n <Button variant='ghost' size='sm'>\n {externalLinkText}\n <ExternalLink className='ml-2 h-4 w-4' />\n </Button>\n )}\n </div>\n </div>\n ))}\n </div>\n </div>\n </div>\n </CardContent>\n </Card>\n );\n};\n\nexport { List };\nexport type { ListsSectionProps, ListSectionItem };\n"],"names":["toKebabCase","string","toCamelCase","match","p1","p2","toPascalCase","camelCase","mergeClasses","classes","className","index","array","hasA11yProp","props","prop","defaultAttributes","Icon","forwardRef","color","size","strokeWidth","absoluteStrokeWidth","children","iconNode","rest","ref","createElement","tag","attrs","createLucideIcon","iconName","Component","__iconNode","ExternalLink","List","headerTitle","headerSubtitle","externalLinkText","listItems","title","jsxs","Card","CardHeader","jsx","CardContent","item","Button"],"mappings":";;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOA,MAAMA,IAAc,CAACC,MAAWA,EAAO,QAAQ,sBAAsB,OAAO,EAAE,YAAW,GACnFC,IAAc,CAACD,MAAWA,EAAO;AAAA,EACrC;AAAA,EACA,CAACE,GAAOC,GAAIC,MAAOA,IAAKA,EAAG,YAAW,IAAKD,EAAG,YAAW;AAC3D,GACME,IAAe,CAACL,MAAW;AAC/B,QAAMM,IAAYL,EAAYD,CAAM;AACpC,SAAOM,EAAU,OAAO,CAAC,EAAE,YAAW,IAAKA,EAAU,MAAM,CAAC;AAC9D,GACMC,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AAD,gBAAAA,EAAAA,IAAC,SAAI,WAAU,aACb,iCAAC,OAAA,EACC,UAAA;AAAA,IAAAA,gBAAAA,EAAAA,IAAC,MAAA,EAAG,WAAU,oBAAoB,UAAAJ,GAAM;AAAA,0BACvC,OAAA,EAAI,WAAU,aACZ,UAAAD,EAAU,IAAI,CAAAO,MACbF,gBAAAA,EAAAA;AAAAA,MAAC;AAAA,MAAA;AAAA,QAEC,WAAU;AAAA,QAEV,UAAAH,gBAAAA,EAAAA,KAAC,OAAA,EAAI,WAAU,oCACb,UAAA;AAAA,UAAAA,gBAAAA,OAAC,OAAA,EACC,UAAA;AAAA,YAAAG,gBAAAA,EAAAA,IAAC,MAAA,EAAG,WAAU,qCACX,UAAAE,EAAK,OACR;AAAA,YACAF,gBAAAA,EAAAA,IAAC,QAAA,EAAK,WAAU,wFACb,YAAK,SAAA,CACR;AAAA,UAAA,GACF;AAAA,UACCN,KACCG,gBAAAA,EAAAA,KAACM,GAAA,EAAO,SAAQ,SAAQ,MAAK,MAC1B,UAAA;AAAA,YAAAT;AAAA,YACDM,gBAAAA,EAAAA,IAACV,GAAA,EAAa,WAAU,eAAA,CAAe;AAAA,UAAA,EAAA,CACzC;AAAA,QAAA,EAAA,CAEJ;AAAA,MAAA;AAAA,MAlBKY,EAAK;AAAA,IAAA,CAoBb,EAAA,CACH;AAAA,EAAA,EAAA,CACF,GACF,EAAA,CACF;AAAA,GACF;","x_google_ignoreList":[0,1,2,3,4]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
type StripBannerItem = {
|
|
2
|
+
id: number;
|
|
3
|
+
emoji: string;
|
|
4
|
+
mainText: string;
|
|
5
|
+
subText: string;
|
|
6
|
+
primaryButton: {
|
|
7
|
+
text: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
href: string;
|
|
10
|
+
};
|
|
11
|
+
secondaryLink: {
|
|
12
|
+
text: string;
|
|
13
|
+
className?: string;
|
|
14
|
+
href: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
declare const StripBanner: ({ stripBannerTitle, stripBanner, }: {
|
|
18
|
+
stripBannerTitle: string;
|
|
19
|
+
stripBanner: StripBannerItem;
|
|
20
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export { StripBanner };
|
|
22
|
+
export type { StripBannerItem };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../jsx-runtime-KWq1EBG2.cjs"),x=({stripBannerTitle:t,stripBanner:s})=>e.jsxRuntimeExports.jsxs("div",{children:[e.jsxRuntimeExports.jsx("h3",{className:"font-medium mb-4",children:t}),e.jsxRuntimeExports.jsx("div",{className:"relative overflow-hidden bg-linear-to-r from-orange-500 via-red-500 to-pink-500 text-white py-3 rounded-lg",children:e.jsxRuntimeExports.jsx("div",{className:"container mx-auto px-4",children:e.jsxRuntimeExports.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-between gap-2",children:[e.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxRuntimeExports.jsxs("span",{className:"font-bold text-sm",children:[s.emoji," ",s.mainText]}),e.jsxRuntimeExports.jsx("span",{className:"hidden md:inline text-sm text-orange-100",children:s.subText})]}),e.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxRuntimeExports.jsx("a",{className:s.primaryButton.className||"bg-gray-100 text-gray-800 px-4 py-1.5 rounded-full text-sm font-semibold hover:bg-gray-200",href:s.primaryButton.href,children:s.primaryButton.text}),e.jsxRuntimeExports.jsx("a",{className:s.secondaryLink.className||"text-xs text-orange-200 underline",href:s.secondaryLink.href,children:s.secondaryLink.text})]})]})})})]});exports.StripBanner=x;
|
|
2
|
+
//# sourceMappingURL=index.tsx.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.tsx.cjs","sources":["../../../src/lib/kapwa/strip-banner/index.tsx"],"sourcesContent":["type StripBannerItem = {\n id: number;\n emoji: string;\n mainText: string;\n subText: string;\n primaryButton: {\n text: string;\n className?: string;\n href: string;\n };\n secondaryLink: {\n text: string;\n className?: string;\n href: string;\n };\n};\nconst StripBanner = ({\n stripBannerTitle,\n stripBanner,\n}: {\n stripBannerTitle: string;\n stripBanner: StripBannerItem;\n}) => {\n return (\n <div>\n <h3 className='font-medium mb-4'>{stripBannerTitle}</h3>\n <div className='relative overflow-hidden bg-linear-to-r from-orange-500 via-red-500 to-pink-500 text-white py-3 rounded-lg'>\n <div className='container mx-auto px-4'>\n <div className='flex flex-col sm:flex-row items-center justify-between gap-2'>\n <div className='flex items-center gap-3'>\n <span className='font-bold text-sm'>\n {stripBanner.emoji} {stripBanner.mainText}\n </span>\n <span className='hidden md:inline text-sm text-orange-100'>\n {stripBanner.subText}\n </span>\n </div>\n <div className='flex items-center gap-3'>\n <a\n className={\n stripBanner.primaryButton.className ||\n 'bg-gray-100 text-gray-800 px-4 py-1.5 rounded-full text-sm font-semibold hover:bg-gray-200'\n }\n href={stripBanner.primaryButton.href}\n >\n {stripBanner.primaryButton.text}\n </a>\n <a\n className={\n stripBanner.secondaryLink.className ||\n 'text-xs text-orange-200 underline'\n }\n href={stripBanner.secondaryLink.href}\n >\n {stripBanner.secondaryLink.text}\n </a>\n </div>\n </div>\n </div>\n </div>\n </div>\n );\n};\n\nexport { StripBanner };\nexport type { StripBannerItem };\n"],"names":["StripBanner","stripBannerTitle","stripBanner","jsx","jsxs"],"mappings":"kIAgBMA,EAAc,CAAC,CACnB,iBAAAC,EACA,YAAAC,CACF,6BAKK,MAAA,CACC,SAAA,CAAAC,EAAAA,kBAAAA,IAAC,KAAA,CAAG,UAAU,mBAAoB,SAAAF,EAAiB,EACnDE,EAAAA,kBAAAA,IAAC,MAAA,CAAI,UAAU,6GACb,SAAAA,EAAAA,kBAAAA,IAAC,MAAA,CAAI,UAAU,yBACb,SAAAC,yBAAC,MAAA,CAAI,UAAU,+DACb,SAAA,CAAAA,EAAAA,kBAAAA,KAAC,MAAA,CAAI,UAAU,0BACb,SAAA,CAAAA,EAAAA,kBAAAA,KAAC,OAAA,CAAK,UAAU,oBACb,SAAA,CAAAF,EAAY,MAAM,IAAEA,EAAY,QAAA,EACnC,EACAC,EAAAA,kBAAAA,IAAC,OAAA,CAAK,UAAU,2CACb,WAAY,OAAA,CACf,CAAA,EACF,EACAC,EAAAA,kBAAAA,KAAC,MAAA,CAAI,UAAU,0BACb,SAAA,CAAAD,EAAAA,kBAAAA,IAAC,IAAA,CACC,UACED,EAAY,cAAc,WAC1B,6FAEF,KAAMA,EAAY,cAAc,KAE/B,WAAY,cAAc,IAAA,CAAA,EAE7BC,EAAAA,kBAAAA,IAAC,IAAA,CACC,UACED,EAAY,cAAc,WAC1B,oCAEF,KAAMA,EAAY,cAAc,KAE/B,WAAY,cAAc,IAAA,CAAA,CAC7B,CAAA,CACF,CAAA,CAAA,CACF,EACF,CAAA,CACF,CAAA,EACF"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { j as e } from "../../jsx-runtime-DdAyboqB.js";
|
|
2
|
+
const l = ({
|
|
3
|
+
stripBannerTitle: t,
|
|
4
|
+
stripBanner: s
|
|
5
|
+
}) => /* @__PURE__ */ e.jsxs("div", { children: [
|
|
6
|
+
/* @__PURE__ */ e.jsx("h3", { className: "font-medium mb-4", children: t }),
|
|
7
|
+
/* @__PURE__ */ e.jsx("div", { className: "relative overflow-hidden bg-linear-to-r from-orange-500 via-red-500 to-pink-500 text-white py-3 rounded-lg", children: /* @__PURE__ */ e.jsx("div", { className: "container mx-auto px-4", children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-2", children: [
|
|
8
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
9
|
+
/* @__PURE__ */ e.jsxs("span", { className: "font-bold text-sm", children: [
|
|
10
|
+
s.emoji,
|
|
11
|
+
" ",
|
|
12
|
+
s.mainText
|
|
13
|
+
] }),
|
|
14
|
+
/* @__PURE__ */ e.jsx("span", { className: "hidden md:inline text-sm text-orange-100", children: s.subText })
|
|
15
|
+
] }),
|
|
16
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
17
|
+
/* @__PURE__ */ e.jsx(
|
|
18
|
+
"a",
|
|
19
|
+
{
|
|
20
|
+
className: s.primaryButton.className || "bg-gray-100 text-gray-800 px-4 py-1.5 rounded-full text-sm font-semibold hover:bg-gray-200",
|
|
21
|
+
href: s.primaryButton.href,
|
|
22
|
+
children: s.primaryButton.text
|
|
23
|
+
}
|
|
24
|
+
),
|
|
25
|
+
/* @__PURE__ */ e.jsx(
|
|
26
|
+
"a",
|
|
27
|
+
{
|
|
28
|
+
className: s.secondaryLink.className || "text-xs text-orange-200 underline",
|
|
29
|
+
href: s.secondaryLink.href,
|
|
30
|
+
children: s.secondaryLink.text
|
|
31
|
+
}
|
|
32
|
+
)
|
|
33
|
+
] })
|
|
34
|
+
] }) }) })
|
|
35
|
+
] });
|
|
36
|
+
export {
|
|
37
|
+
l as StripBanner
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=index.tsx.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.tsx.js","sources":["../../../src/lib/kapwa/strip-banner/index.tsx"],"sourcesContent":["type StripBannerItem = {\n id: number;\n emoji: string;\n mainText: string;\n subText: string;\n primaryButton: {\n text: string;\n className?: string;\n href: string;\n };\n secondaryLink: {\n text: string;\n className?: string;\n href: string;\n };\n};\nconst StripBanner = ({\n stripBannerTitle,\n stripBanner,\n}: {\n stripBannerTitle: string;\n stripBanner: StripBannerItem;\n}) => {\n return (\n <div>\n <h3 className='font-medium mb-4'>{stripBannerTitle}</h3>\n <div className='relative overflow-hidden bg-linear-to-r from-orange-500 via-red-500 to-pink-500 text-white py-3 rounded-lg'>\n <div className='container mx-auto px-4'>\n <div className='flex flex-col sm:flex-row items-center justify-between gap-2'>\n <div className='flex items-center gap-3'>\n <span className='font-bold text-sm'>\n {stripBanner.emoji} {stripBanner.mainText}\n </span>\n <span className='hidden md:inline text-sm text-orange-100'>\n {stripBanner.subText}\n </span>\n </div>\n <div className='flex items-center gap-3'>\n <a\n className={\n stripBanner.primaryButton.className ||\n 'bg-gray-100 text-gray-800 px-4 py-1.5 rounded-full text-sm font-semibold hover:bg-gray-200'\n }\n href={stripBanner.primaryButton.href}\n >\n {stripBanner.primaryButton.text}\n </a>\n <a\n className={\n stripBanner.secondaryLink.className ||\n 'text-xs text-orange-200 underline'\n }\n href={stripBanner.secondaryLink.href}\n >\n {stripBanner.secondaryLink.text}\n </a>\n </div>\n </div>\n </div>\n </div>\n </div>\n );\n};\n\nexport { StripBanner };\nexport type { StripBannerItem };\n"],"names":["StripBanner","stripBannerTitle","stripBanner","jsx","jsxs"],"mappings":";AAgBA,MAAMA,IAAc,CAAC;AAAA,EACnB,kBAAAC;AAAA,EACA,aAAAC;AACF,6BAKK,OAAA,EACC,UAAA;AAAA,EAAAC,gBAAAA,EAAAA,IAAC,MAAA,EAAG,WAAU,oBAAoB,UAAAF,GAAiB;AAAA,EACnDE,gBAAAA,EAAAA,IAAC,OAAA,EAAI,WAAU,8GACb,UAAAA,gBAAAA,EAAAA,IAAC,OAAA,EAAI,WAAU,0BACb,UAAAC,gBAAAA,OAAC,OAAA,EAAI,WAAU,gEACb,UAAA;AAAA,IAAAA,gBAAAA,EAAAA,KAAC,OAAA,EAAI,WAAU,2BACb,UAAA;AAAA,MAAAA,gBAAAA,EAAAA,KAAC,QAAA,EAAK,WAAU,qBACb,UAAA;AAAA,QAAAF,EAAY;AAAA,QAAM;AAAA,QAAEA,EAAY;AAAA,MAAA,GACnC;AAAA,MACAC,gBAAAA,EAAAA,IAAC,QAAA,EAAK,WAAU,4CACb,YAAY,QAAA,CACf;AAAA,IAAA,GACF;AAAA,IACAC,gBAAAA,EAAAA,KAAC,OAAA,EAAI,WAAU,2BACb,UAAA;AAAA,MAAAD,gBAAAA,EAAAA;AAAAA,QAAC;AAAA,QAAA;AAAA,UACC,WACED,EAAY,cAAc,aAC1B;AAAA,UAEF,MAAMA,EAAY,cAAc;AAAA,UAE/B,YAAY,cAAc;AAAA,QAAA;AAAA,MAAA;AAAA,MAE7BC,gBAAAA,EAAAA;AAAAA,QAAC;AAAA,QAAA;AAAA,UACC,WACED,EAAY,cAAc,aAC1B;AAAA,UAEF,MAAMA,EAAY,cAAc;AAAA,UAE/B,YAAY,cAAc;AAAA,QAAA;AAAA,MAAA;AAAA,IAC7B,EAAA,CACF;AAAA,EAAA,EAAA,CACF,GACF,EAAA,CACF;AAAA,GACF;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type TableDataItem = {
|
|
2
|
+
id: number;
|
|
3
|
+
name: string;
|
|
4
|
+
email: string;
|
|
5
|
+
status: 'Active' | 'Pending' | 'Inactive';
|
|
6
|
+
};
|
|
7
|
+
declare const Table: ({ title, subtitle, tableData, }: {
|
|
8
|
+
title: string;
|
|
9
|
+
subtitle: string;
|
|
10
|
+
tableData: TableDataItem[];
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export { Table };
|
|
13
|
+
export type { TableDataItem };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../jsx-runtime-KWq1EBG2.cjs"),s=require("../card/index.tsx.cjs"),a=require("../button/index.tsx.cjs"),n=({title:x,subtitle:i,tableData:r})=>e.jsxRuntimeExports.jsxs(s.Card,{className:"mb-8",children:[e.jsxRuntimeExports.jsxs(s.CardHeader,{children:[e.jsxRuntimeExports.jsx("h2",{className:"text-2xl font-semibold",children:x}),e.jsxRuntimeExports.jsx("p",{className:"text-gray-800",children:i})]}),e.jsxRuntimeExports.jsx(s.CardContent,{children:e.jsxRuntimeExports.jsx("div",{className:"overflow-x-auto space-y-8",children:e.jsxRuntimeExports.jsxs("table",{className:"min-w-full divide-y divide-gray-200",children:[e.jsxRuntimeExports.jsx("thead",{className:"bg-gray-50",children:e.jsxRuntimeExports.jsxs("tr",{children:[e.jsxRuntimeExports.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider",children:"Name"}),e.jsxRuntimeExports.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider",children:"Email"}),e.jsxRuntimeExports.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider",children:"Status"}),e.jsxRuntimeExports.jsx("th",{className:"px-6 py-3 text-right text-xs font-medium text-gray-800 uppercase tracking-wider",children:"Actions"})]})}),e.jsxRuntimeExports.jsx("tbody",{className:"bg-white divide-y divide-gray-200",children:r.map(t=>e.jsxRuntimeExports.jsxs("tr",{className:"hover:bg-gray-50",children:[e.jsxRuntimeExports.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:e.jsxRuntimeExports.jsx("div",{className:"text-sm font-medium text-gray-900",children:t.name})}),e.jsxRuntimeExports.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:e.jsxRuntimeExports.jsx("div",{className:"text-sm text-gray-800",children:t.email})}),e.jsxRuntimeExports.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:e.jsxRuntimeExports.jsx("span",{className:`inline-flex px-2 py-1 text-xs font-medium rounded-full ${t.status==="Active"?"bg-green-100 text-green-800":t.status==="Pending"?"bg-yellow-100 text-yellow-800":"bg-red-100 text-red-800"}`,children:t.status})}),e.jsxRuntimeExports.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-right text-sm font-medium",children:e.jsxRuntimeExports.jsx(a.Button,{variant:"ghost",size:"sm",children:"Edit"})})]},t.id))})]})})})]});exports.Table=n;
|
|
2
|
+
//# sourceMappingURL=index.tsx.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.tsx.cjs","sources":["../../../src/lib/kapwa/table/index.tsx"],"sourcesContent":["import { Card, CardContent, CardHeader } from '@kapwa/card';\nimport { Button } from '@kapwa/button';\n\ntype TableDataItem = {\n id: number;\n name: string;\n email: string;\n status: 'Active' | 'Pending' | 'Inactive';\n};\n\nconst Table = ({\n title,\n subtitle,\n tableData,\n}: {\n title: string;\n subtitle: string;\n tableData: TableDataItem[];\n}) => {\n return (\n <Card className='mb-8'>\n <CardHeader>\n <h2 className='text-2xl font-semibold'>{title}</h2>\n <p className='text-gray-800'>{subtitle}</p>\n </CardHeader>\n <CardContent>\n <div className='overflow-x-auto space-y-8'>\n <table className='min-w-full divide-y divide-gray-200'>\n <thead className='bg-gray-50'>\n <tr>\n <th className='px-6 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider'>\n Name\n </th>\n <th className='px-6 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider'>\n Email\n </th>\n <th className='px-6 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider'>\n Status\n </th>\n <th className='px-6 py-3 text-right text-xs font-medium text-gray-800 uppercase tracking-wider'>\n Actions\n </th>\n </tr>\n </thead>\n <tbody className='bg-white divide-y divide-gray-200'>\n {tableData.map(row => (\n <tr key={row.id} className='hover:bg-gray-50'>\n <td className='px-6 py-4 whitespace-nowrap'>\n <div className='text-sm font-medium text-gray-900'>\n {row.name}\n </div>\n </td>\n <td className='px-6 py-4 whitespace-nowrap'>\n <div className='text-sm text-gray-800'>{row.email}</div>\n </td>\n <td className='px-6 py-4 whitespace-nowrap'>\n <span\n className={`inline-flex px-2 py-1 text-xs font-medium rounded-full ${\n row.status === 'Active'\n ? 'bg-green-100 text-green-800'\n : row.status === 'Pending'\n ? 'bg-yellow-100 text-yellow-800'\n : 'bg-red-100 text-red-800'\n }`}\n >\n {row.status}\n </span>\n </td>\n <td className='px-6 py-4 whitespace-nowrap text-right text-sm font-medium'>\n <Button variant='ghost' size='sm'>\n Edit\n </Button>\n </td>\n </tr>\n ))}\n </tbody>\n </table>\n </div>\n </CardContent>\n </Card>\n );\n};\n\nexport { Table };\nexport type { TableDataItem };\n"],"names":["Table","title","subtitle","tableData","jsxs","Card","CardHeader","jsx","CardContent","row","Button"],"mappings":"0MAUMA,EAAQ,CAAC,CACb,MAAAC,EACA,SAAAC,EACA,UAAAC,CACF,IAMIC,EAAAA,kBAAAA,KAACC,EAAAA,KAAA,CAAK,UAAU,OACd,SAAA,CAAAD,yBAACE,EAAAA,WAAA,CACC,SAAA,CAAAC,EAAAA,kBAAAA,IAAC,KAAA,CAAG,UAAU,yBAA0B,SAAAN,EAAM,EAC9CM,EAAAA,kBAAAA,IAAC,IAAA,CAAE,UAAU,gBAAiB,SAAAL,CAAA,CAAS,CAAA,EACzC,EACAK,EAAAA,kBAAAA,IAACC,EAAAA,aACC,SAAAD,EAAAA,kBAAAA,IAAC,MAAA,CAAI,UAAU,4BACb,SAAAH,EAAAA,kBAAAA,KAAC,QAAA,CAAM,UAAU,sCACf,SAAA,CAAAG,wBAAC,QAAA,CAAM,UAAU,aACf,SAAAH,EAAAA,kBAAAA,KAAC,KAAA,CACC,SAAA,CAAAG,EAAAA,kBAAAA,IAAC,KAAA,CAAG,UAAU,iFAAiF,SAAA,OAE/F,EACAA,EAAAA,kBAAAA,IAAC,KAAA,CAAG,UAAU,iFAAiF,SAAA,QAE/F,EACAA,EAAAA,kBAAAA,IAAC,KAAA,CAAG,UAAU,iFAAiF,SAAA,SAE/F,EACAA,EAAAA,kBAAAA,IAAC,KAAA,CAAG,UAAU,kFAAkF,SAAA,SAAA,CAEhG,CAAA,CAAA,CACF,CAAA,CACF,EACAA,EAAAA,kBAAAA,IAAC,QAAA,CAAM,UAAU,oCACd,SAAAJ,EAAU,IAAIM,GACbL,EAAAA,kBAAAA,KAAC,KAAA,CAAgB,UAAU,mBACzB,SAAA,CAAAG,EAAAA,kBAAAA,IAAC,KAAA,CAAG,UAAU,8BACZ,SAAAA,EAAAA,kBAAAA,IAAC,OAAI,UAAU,oCACZ,SAAAE,EAAI,IAAA,CACP,CAAA,CACF,EACAF,EAAAA,kBAAAA,IAAC,KAAA,CAAG,UAAU,8BACZ,SAAAA,EAAAA,kBAAAA,IAAC,OAAI,UAAU,wBAAyB,SAAAE,EAAI,KAAA,CAAM,CAAA,CACpD,EACAF,EAAAA,kBAAAA,IAAC,KAAA,CAAG,UAAU,8BACZ,SAAAA,EAAAA,kBAAAA,IAAC,OAAA,CACC,UAAW,0DACTE,EAAI,SAAW,SACX,8BACAA,EAAI,SAAW,UACb,gCACA,yBACR,GAEC,SAAAA,EAAI,MAAA,CAAA,EAET,EACAF,EAAAA,kBAAAA,IAAC,KAAA,CAAG,UAAU,6DACZ,SAAAA,EAAAA,kBAAAA,IAACG,EAAAA,OAAA,CAAO,QAAQ,QAAQ,KAAK,KAAK,SAAA,MAAA,CAElC,CAAA,CACF,CAAA,GA1BOD,EAAI,EA2Bb,CACD,CAAA,CACH,CAAA,CAAA,CACF,EACF,CAAA,CACF,CAAA,EACF"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { j as e } from "../../jsx-runtime-DdAyboqB.js";
|
|
2
|
+
import { Card as r, CardHeader as x, CardContent as d } from "../card/index.tsx.js";
|
|
3
|
+
import { Button as l } from "../button/index.tsx.js";
|
|
4
|
+
const p = ({
|
|
5
|
+
title: s,
|
|
6
|
+
subtitle: a,
|
|
7
|
+
tableData: i
|
|
8
|
+
}) => /* @__PURE__ */ e.jsxs(r, { className: "mb-8", children: [
|
|
9
|
+
/* @__PURE__ */ e.jsxs(x, { children: [
|
|
10
|
+
/* @__PURE__ */ e.jsx("h2", { className: "text-2xl font-semibold", children: s }),
|
|
11
|
+
/* @__PURE__ */ e.jsx("p", { className: "text-gray-800", children: a })
|
|
12
|
+
] }),
|
|
13
|
+
/* @__PURE__ */ e.jsx(d, { children: /* @__PURE__ */ e.jsx("div", { className: "overflow-x-auto space-y-8", children: /* @__PURE__ */ e.jsxs("table", { className: "min-w-full divide-y divide-gray-200", children: [
|
|
14
|
+
/* @__PURE__ */ e.jsx("thead", { className: "bg-gray-50", children: /* @__PURE__ */ e.jsxs("tr", { children: [
|
|
15
|
+
/* @__PURE__ */ e.jsx("th", { className: "px-6 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider", children: "Name" }),
|
|
16
|
+
/* @__PURE__ */ e.jsx("th", { className: "px-6 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider", children: "Email" }),
|
|
17
|
+
/* @__PURE__ */ e.jsx("th", { className: "px-6 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider", children: "Status" }),
|
|
18
|
+
/* @__PURE__ */ e.jsx("th", { className: "px-6 py-3 text-right text-xs font-medium text-gray-800 uppercase tracking-wider", children: "Actions" })
|
|
19
|
+
] }) }),
|
|
20
|
+
/* @__PURE__ */ e.jsx("tbody", { className: "bg-white divide-y divide-gray-200", children: i.map((t) => /* @__PURE__ */ e.jsxs("tr", { className: "hover:bg-gray-50", children: [
|
|
21
|
+
/* @__PURE__ */ e.jsx("td", { className: "px-6 py-4 whitespace-nowrap", children: /* @__PURE__ */ e.jsx("div", { className: "text-sm font-medium text-gray-900", children: t.name }) }),
|
|
22
|
+
/* @__PURE__ */ e.jsx("td", { className: "px-6 py-4 whitespace-nowrap", children: /* @__PURE__ */ e.jsx("div", { className: "text-sm text-gray-800", children: t.email }) }),
|
|
23
|
+
/* @__PURE__ */ e.jsx("td", { className: "px-6 py-4 whitespace-nowrap", children: /* @__PURE__ */ e.jsx(
|
|
24
|
+
"span",
|
|
25
|
+
{
|
|
26
|
+
className: `inline-flex px-2 py-1 text-xs font-medium rounded-full ${t.status === "Active" ? "bg-green-100 text-green-800" : t.status === "Pending" ? "bg-yellow-100 text-yellow-800" : "bg-red-100 text-red-800"}`,
|
|
27
|
+
children: t.status
|
|
28
|
+
}
|
|
29
|
+
) }),
|
|
30
|
+
/* @__PURE__ */ e.jsx("td", { className: "px-6 py-4 whitespace-nowrap text-right text-sm font-medium", children: /* @__PURE__ */ e.jsx(l, { variant: "ghost", size: "sm", children: "Edit" }) })
|
|
31
|
+
] }, t.id)) })
|
|
32
|
+
] }) }) })
|
|
33
|
+
] });
|
|
34
|
+
export {
|
|
35
|
+
p as Table
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=index.tsx.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.tsx.js","sources":["../../../src/lib/kapwa/table/index.tsx"],"sourcesContent":["import { Card, CardContent, CardHeader } from '@kapwa/card';\nimport { Button } from '@kapwa/button';\n\ntype TableDataItem = {\n id: number;\n name: string;\n email: string;\n status: 'Active' | 'Pending' | 'Inactive';\n};\n\nconst Table = ({\n title,\n subtitle,\n tableData,\n}: {\n title: string;\n subtitle: string;\n tableData: TableDataItem[];\n}) => {\n return (\n <Card className='mb-8'>\n <CardHeader>\n <h2 className='text-2xl font-semibold'>{title}</h2>\n <p className='text-gray-800'>{subtitle}</p>\n </CardHeader>\n <CardContent>\n <div className='overflow-x-auto space-y-8'>\n <table className='min-w-full divide-y divide-gray-200'>\n <thead className='bg-gray-50'>\n <tr>\n <th className='px-6 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider'>\n Name\n </th>\n <th className='px-6 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider'>\n Email\n </th>\n <th className='px-6 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider'>\n Status\n </th>\n <th className='px-6 py-3 text-right text-xs font-medium text-gray-800 uppercase tracking-wider'>\n Actions\n </th>\n </tr>\n </thead>\n <tbody className='bg-white divide-y divide-gray-200'>\n {tableData.map(row => (\n <tr key={row.id} className='hover:bg-gray-50'>\n <td className='px-6 py-4 whitespace-nowrap'>\n <div className='text-sm font-medium text-gray-900'>\n {row.name}\n </div>\n </td>\n <td className='px-6 py-4 whitespace-nowrap'>\n <div className='text-sm text-gray-800'>{row.email}</div>\n </td>\n <td className='px-6 py-4 whitespace-nowrap'>\n <span\n className={`inline-flex px-2 py-1 text-xs font-medium rounded-full ${\n row.status === 'Active'\n ? 'bg-green-100 text-green-800'\n : row.status === 'Pending'\n ? 'bg-yellow-100 text-yellow-800'\n : 'bg-red-100 text-red-800'\n }`}\n >\n {row.status}\n </span>\n </td>\n <td className='px-6 py-4 whitespace-nowrap text-right text-sm font-medium'>\n <Button variant='ghost' size='sm'>\n Edit\n </Button>\n </td>\n </tr>\n ))}\n </tbody>\n </table>\n </div>\n </CardContent>\n </Card>\n );\n};\n\nexport { Table };\nexport type { TableDataItem };\n"],"names":["Table","title","subtitle","tableData","jsxs","Card","CardHeader","jsx","CardContent","row","Button"],"mappings":";;;AAUA,MAAMA,IAAQ,CAAC;AAAA,EACb,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AACF,MAMIC,gBAAAA,EAAAA,KAACC,GAAA,EAAK,WAAU,QACd,UAAA;AAAA,EAAAD,gBAAAA,OAACE,GAAA,EACC,UAAA;AAAA,IAAAC,gBAAAA,EAAAA,IAAC,MAAA,EAAG,WAAU,0BAA0B,UAAAN,GAAM;AAAA,IAC9CM,gBAAAA,EAAAA,IAAC,KAAA,EAAE,WAAU,iBAAiB,UAAAL,EAAA,CAAS;AAAA,EAAA,GACzC;AAAA,EACAK,gBAAAA,EAAAA,IAACC,KACC,UAAAD,gBAAAA,EAAAA,IAAC,OAAA,EAAI,WAAU,6BACb,UAAAH,gBAAAA,EAAAA,KAAC,SAAA,EAAM,WAAU,uCACf,UAAA;AAAA,IAAAG,gBAAAA,MAAC,SAAA,EAAM,WAAU,cACf,UAAAH,gBAAAA,EAAAA,KAAC,MAAA,EACC,UAAA;AAAA,MAAAG,gBAAAA,EAAAA,IAAC,MAAA,EAAG,WAAU,kFAAiF,UAAA,QAE/F;AAAA,MACAA,gBAAAA,EAAAA,IAAC,MAAA,EAAG,WAAU,kFAAiF,UAAA,SAE/F;AAAA,MACAA,gBAAAA,EAAAA,IAAC,MAAA,EAAG,WAAU,kFAAiF,UAAA,UAE/F;AAAA,MACAA,gBAAAA,EAAAA,IAAC,MAAA,EAAG,WAAU,mFAAkF,UAAA,UAAA,CAEhG;AAAA,IAAA,EAAA,CACF,EAAA,CACF;AAAA,IACAA,gBAAAA,EAAAA,IAAC,SAAA,EAAM,WAAU,qCACd,UAAAJ,EAAU,IAAI,CAAAM,MACbL,gBAAAA,EAAAA,KAAC,MAAA,EAAgB,WAAU,oBACzB,UAAA;AAAA,MAAAG,gBAAAA,EAAAA,IAAC,MAAA,EAAG,WAAU,+BACZ,UAAAA,gBAAAA,EAAAA,IAAC,SAAI,WAAU,qCACZ,UAAAE,EAAI,KAAA,CACP,EAAA,CACF;AAAA,MACAF,gBAAAA,EAAAA,IAAC,MAAA,EAAG,WAAU,+BACZ,UAAAA,gBAAAA,EAAAA,IAAC,SAAI,WAAU,yBAAyB,UAAAE,EAAI,MAAA,CAAM,EAAA,CACpD;AAAA,MACAF,gBAAAA,EAAAA,IAAC,MAAA,EAAG,WAAU,+BACZ,UAAAA,gBAAAA,EAAAA;AAAAA,QAAC;AAAA,QAAA;AAAA,UACC,WAAW,0DACTE,EAAI,WAAW,WACX,gCACAA,EAAI,WAAW,YACb,kCACA,yBACR;AAAA,UAEC,UAAAA,EAAI;AAAA,QAAA;AAAA,MAAA,GAET;AAAA,MACAF,gBAAAA,EAAAA,IAAC,MAAA,EAAG,WAAU,8DACZ,UAAAA,gBAAAA,EAAAA,IAACG,GAAA,EAAO,SAAQ,SAAQ,MAAK,MAAK,UAAA,OAAA,CAElC,EAAA,CACF;AAAA,IAAA,KA1BOD,EAAI,EA2Bb,CACD,EAAA,CACH;AAAA,EAAA,EAAA,CACF,GACF,EAAA,CACF;AAAA,GACF;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../index-GVl92sVg.cjs");exports.cn=t.cn;exports.formatDate=t.formatDate;exports.getRandomNumber=t.getRandomNumber;exports.truncateText=t.truncateText;
|
|
2
|
+
//# sourceMappingURL=index.ts.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.ts.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.ts.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|