Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@formbricks/react

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@formbricks/react - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

dist/chunk-2M2SAKXW.mjs

4

dist/components/Form.js
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
var _chunkFW64YYAKjs = require('../chunk-FW64YYAK.js');
var _chunkZ2K5IH6Ojs = require('../chunk-Z2K5IH6O.js');
exports.Form = _chunkFW64YYAKjs.Form; exports.SchemaContext = _chunkFW64YYAKjs.SchemaContext;
exports.Form = _chunkZ2K5IH6Ojs.Form; exports.SchemaContext = _chunkZ2K5IH6Ojs.SchemaContext;
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
var _chunkFCDJX3UNjs = require('../chunk-FCDJX3UN.js');
require('../chunk-62426IWR.js');
require('../chunk-FW64YYAK.js');
var _chunkCBM6EW76js = require('../chunk-CBM6EW76.js');
require('../chunk-MBDQONOF.js');
require('../chunk-Z2K5IH6O.js');
exports.FormbricksSchema = _chunkFCDJX3UNjs.FormbricksSchema;
exports.FormbricksSchema = _chunkCBM6EW76js.FormbricksSchema;

@@ -1,1 +0,2 @@

export { S as Submit, T as Text, a as Textarea } from '../Textarea-6ab6fabd.js';
export { B as Button, S as Submit, T as Text, a as Textarea } from '../Textarea-52d14c0a.js';
import 'react';

@@ -5,8 +5,10 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true});

var _chunk62426IWRjs = require('../chunk-62426IWR.js');
require('../chunk-FW64YYAK.js');
var _chunkMBDQONOFjs = require('../chunk-MBDQONOF.js');
require('../chunk-Z2K5IH6O.js');
exports.Submit = _chunk62426IWRjs.Submit; exports.Text = _chunk62426IWRjs.Text; exports.Textarea = _chunk62426IWRjs.Textarea;
exports.Button = _chunkMBDQONOFjs.Button; exports.Submit = _chunkMBDQONOFjs.Submit; exports.Text = _chunkMBDQONOFjs.Text; exports.Textarea = _chunkMBDQONOFjs.Textarea;
export { Form, SchemaContext } from './components/Form.js';
export { FormbricksSchema } from './components/FormbricksSchema.js';
export { S as Submit, T as Text, a as Textarea } from './Textarea-6ab6fabd.js';
export { B as Button, S as Submit, T as Text, a as Textarea } from './Textarea-52d14c0a.js';
import 'react';
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
var _chunkFCDJX3UNjs = require('./chunk-FCDJX3UN.js');
var _chunkCBM6EW76js = require('./chunk-CBM6EW76.js');

@@ -8,8 +8,8 @@

var _chunk62426IWRjs = require('./chunk-62426IWR.js');
var _chunkMBDQONOFjs = require('./chunk-MBDQONOF.js');
var _chunkFW64YYAKjs = require('./chunk-FW64YYAK.js');
var _chunkZ2K5IH6Ojs = require('./chunk-Z2K5IH6O.js');

@@ -21,2 +21,4 @@

exports.Form = _chunkFW64YYAKjs.Form; exports.FormbricksSchema = _chunkFCDJX3UNjs.FormbricksSchema; exports.SchemaContext = _chunkFW64YYAKjs.SchemaContext; exports.Submit = _chunk62426IWRjs.Submit; exports.Text = _chunk62426IWRjs.Text; exports.Textarea = _chunk62426IWRjs.Textarea;
exports.Button = _chunkMBDQONOFjs.Button; exports.Form = _chunkZ2K5IH6Ojs.Form; exports.FormbricksSchema = _chunkCBM6EW76js.FormbricksSchema; exports.SchemaContext = _chunkZ2K5IH6Ojs.SchemaContext; exports.Submit = _chunkMBDQONOFjs.Submit; exports.Text = _chunkMBDQONOFjs.Text; exports.Textarea = _chunkMBDQONOFjs.Textarea;
{
"name": "@formbricks/react",
"version": "0.0.7",
"version": "0.0.8",
"author": "Formbricks <hola@formbricks.com>",

@@ -22,3 +22,2 @@ "description": "Building React forms has never been quicker.",

"devDependencies": {
"@formbricks/tailwind-config": "1.0.0",
"@formbricks/tsconfig": "1.0.0",

@@ -36,2 +35,3 @@ "@types/react": "^18.0.25",

"dependencies": {
"@hookform/error-message": "^2.0.1",
"clsx": "^1.2.1",

@@ -63,6 +63,6 @@ "react-hook-form": "^7.39.1"

"scripts": {
"build": "tsup --dts && tailwindcss -i ./src/styles.css -o ./dist/styles.css",
"dev": "concurrently \"tsup src/index.tsx --format esm,cjs --dts --external react --watch\" \"tailwindcss -i ./src/styles.css -o ./dist/styles.css --watch\"",
"build": "tsup --dts && tailwindcss -i ./src/styles.css -o ./dist/styles.css --minify",
"dev": "concurrently \"tsup --dts --external react --watch && generate-tailwind\" \"tailwindcss -i ./src/styles.css -o ./dist/styles.css --watch\"",
"clean": "rm -rf dist"
}
}
import { generateId } from "./utils";
export const getElementId = (id: string | undefined, name: string) =>
typeof id !== "undefined" ? id : `${name}=${generateId(3)}`;
export const getElementId = (id: string | undefined, name?: string) =>
typeof id !== "undefined" ? id : name ? name : generateId(3);

@@ -0,5 +1,7 @@

export type SVGComponent = React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
export interface UniversalInputProps {
id?: string;
help?: string;
name: string;
name?: string;
label?: string;

@@ -12,2 +14,8 @@ validation?: string;

helpClassName?: string;
messagesClassName?: string;
messageClassName?: string;
}
export interface NameRequired {
name: string;
}

@@ -1,3 +0,15 @@

const config = require("@formbricks/tailwind-config/tailwind.config.js");
module.exports = config;
/** @type {import('tailwindcss').Config} */
module.exports = {
corePlugins: {
preflight: false,
},
content: [],
theme: {
extend: {},
},
plugins: [
require("@tailwindcss/forms")({
strategy: "class", // only generate classes
}),
],
};

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc