@szum-tech/design-system 2.1.0 → 2.1.1

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.
@@ -6,6 +6,7 @@ var reactIcons = require('@radix-ui/react-icons');
6
6
  var classVarianceAuthority = require('class-variance-authority');
7
7
  var jsxRuntime = require('react/jsx-runtime');
8
8
 
9
+ // src/components/dialog/dialog.tsx
9
10
  var Dialog = radixUi.Dialog.Root;
10
11
  var DialogClose = radixUi.Dialog.Close;
11
12
  var dialogContentStyles = classVarianceAuthority.cva(
@@ -3,6 +3,7 @@
3
3
  var radixUi = require('radix-ui');
4
4
  var jsxRuntime = require('react/jsx-runtime');
5
5
 
6
+ // src/components/tooltip/Tooltip.tsx
6
7
  function Tooltip({
7
8
  defaultOpen,
8
9
  content,
@@ -3,6 +3,7 @@
3
3
  var clsx = require('clsx');
4
4
  var tailwindMerge = require('tailwind-merge');
5
5
 
6
+ // src/utils/index.ts
6
7
  function cn(...inputs) {
7
8
  return tailwindMerge.twMerge(clsx.clsx(inputs));
8
9
  }
@@ -3,6 +3,7 @@ import { CaretSortIcon, CheckIcon } from '@radix-ui/react-icons';
3
3
  import { cva } from 'class-variance-authority';
4
4
  import { jsxs, jsx } from 'react/jsx-runtime';
5
5
 
6
+ // src/components/select/select.tsx
6
7
  var selectCva = cva(
7
8
  [
8
9
  "bg-app-foreground text-body-2 inline-flex h-10 w-full appearance-none items-center justify-between gap-2 border px-3 py-2 text-gray-100 outline-0 transition-colors duration-300 ease-in-out",
@@ -1,6 +1,7 @@
1
1
  import { Tooltip as Tooltip$1 } from 'radix-ui';
2
2
  import { jsxs, jsx } from 'react/jsx-runtime';
3
3
 
4
+ // src/components/tooltip/Tooltip.tsx
4
5
  function Tooltip({
5
6
  defaultOpen,
6
7
  content,
@@ -1,6 +1,7 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  export * from '@radix-ui/react-icons';
3
3
 
4
+ // src/icons/google-logo.tsx
4
5
  function GoogleLogoIcon(props) {
5
6
  return /* @__PURE__ */ jsxs(
6
7
  "svg",
@@ -4,6 +4,7 @@ import { Cross1Icon } from '@radix-ui/react-icons';
4
4
  import { cva } from 'class-variance-authority';
5
5
  import { jsxs, jsx } from 'react/jsx-runtime';
6
6
 
7
+ // src/components/dialog/dialog.tsx
7
8
  var Dialog = Dialog$1.Root;
8
9
  var DialogClose = Dialog$1.Close;
9
10
  var dialogContentStyles = cva(
@@ -3,6 +3,7 @@
3
3
  var tailwindMerge = require('tailwind-merge');
4
4
  var jsxRuntime = require('react/jsx-runtime');
5
5
 
6
+ // src/components/card/card.tsx
6
7
  function Card({ className, ...props }) {
7
8
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: tailwindMerge.twMerge("bg-app-foreground h-full rounded border border-gray-400", className), ...props });
8
9
  }
@@ -4,6 +4,7 @@ var radixUi = require('radix-ui');
4
4
  var tailwindMerge = require('tailwind-merge');
5
5
  var jsxRuntime = require('react/jsx-runtime');
6
6
 
7
+ // src/components/label/label.tsx
7
8
  function Label({ className, ...props }) {
8
9
  return /* @__PURE__ */ jsxRuntime.jsx(
9
10
  radixUi.Label.Root,
@@ -3,6 +3,7 @@
3
3
  var classVarianceAuthority = require('class-variance-authority');
4
4
  var jsxRuntime = require('react/jsx-runtime');
5
5
 
6
+ // src/components/textarea/Textarea.styles.tsx
6
7
  var textareaCva = classVarianceAuthority.cva(
7
8
  [
8
9
  "bg-app-primary font-poppins text-body-2 h-28 min-h-10 w-full appearance-none border px-3 py-2 outline-0 transition-colors duration-300 ease-in-out placeholder:select-none placeholder:text-gray-200",
@@ -5,6 +5,7 @@ var reactIcons = require('@radix-ui/react-icons');
5
5
  var classVarianceAuthority = require('class-variance-authority');
6
6
  var jsxRuntime = require('react/jsx-runtime');
7
7
 
8
+ // src/components/select/select.tsx
8
9
  var selectCva = classVarianceAuthority.cva(
9
10
  [
10
11
  "bg-app-foreground text-body-2 inline-flex h-10 w-full appearance-none items-center justify-between gap-2 border px-3 py-2 text-gray-100 outline-0 transition-colors duration-300 ease-in-out",
@@ -4,6 +4,7 @@ import { Cross1Icon } from '@radix-ui/react-icons';
4
4
  import { cva } from 'class-variance-authority';
5
5
  import { jsxs, jsx } from 'react/jsx-runtime';
6
6
 
7
+ // src/components/sheet/sheet.tsx
7
8
  var Sheet = Dialog.Root;
8
9
  var SheetTrigger = Dialog.Trigger;
9
10
  var SheetClose = Dialog.Close;
@@ -3,6 +3,7 @@
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
4
  var reactIcons = require('@radix-ui/react-icons');
5
5
 
6
+ // src/icons/google-logo.tsx
6
7
  function GoogleLogoIcon(props) {
7
8
  return /* @__PURE__ */ jsxRuntime.jsxs(
8
9
  "svg",
@@ -2,6 +2,7 @@ import { Label as Label$1 } from 'radix-ui';
2
2
  import { twMerge } from 'tailwind-merge';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
 
5
+ // src/components/label/label.tsx
5
6
  function Label({ className, ...props }) {
6
7
  return /* @__PURE__ */ jsx(
7
8
  Label$1.Root,
@@ -1,6 +1,7 @@
1
1
  import { cva } from 'class-variance-authority';
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
 
4
+ // src/components/textarea/Textarea.styles.tsx
4
5
  var textareaCva = cva(
5
6
  [
6
7
  "bg-app-primary font-poppins text-body-2 h-28 min-h-10 w-full appearance-none border px-3 py-2 outline-0 transition-colors duration-300 ease-in-out placeholder:select-none placeholder:text-gray-200",
@@ -2,6 +2,7 @@
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
4
 
5
+ // src/components/header/header.tsx
5
6
  function Header({ children, ...props }) {
6
7
  return /* @__PURE__ */ jsxRuntime.jsx(
7
8
  "header",
@@ -6,6 +6,7 @@ var reactIcons = require('@radix-ui/react-icons');
6
6
  var classVarianceAuthority = require('class-variance-authority');
7
7
  var jsxRuntime = require('react/jsx-runtime');
8
8
 
9
+ // src/components/sheet/sheet.tsx
9
10
  var Sheet = radixUi.Dialog.Root;
10
11
  var SheetTrigger = radixUi.Dialog.Trigger;
11
12
  var SheetClose = radixUi.Dialog.Close;
@@ -2,6 +2,7 @@ import { twMerge } from 'tailwind-merge';
2
2
  import { cva } from 'class-variance-authority';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
 
5
+ // src/components/helper-text/helper-text.tsx
5
6
  var helperTextCva = cva("", {
6
7
  variants: {
7
8
  type: {
@@ -1,6 +1,7 @@
1
1
  import { twMerge } from 'tailwind-merge';
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
 
4
+ // src/components/card/card.tsx
4
5
  function Card({ className, ...props }) {
5
6
  return /* @__PURE__ */ jsx("div", { className: twMerge("bg-app-foreground h-full rounded border border-gray-400", className), ...props });
6
7
  }
@@ -1,5 +1,6 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
2
 
3
+ // src/components/header/header.tsx
3
4
  function Header({ children, ...props }) {
4
5
  return /* @__PURE__ */ jsx(
5
6
  "header",
@@ -4,6 +4,7 @@ var tailwindMerge = require('tailwind-merge');
4
4
  var classVarianceAuthority = require('class-variance-authority');
5
5
  var jsxRuntime = require('react/jsx-runtime');
6
6
 
7
+ // src/components/helper-text/helper-text.tsx
7
8
  var helperTextCva = classVarianceAuthority.cva("", {
8
9
  variants: {
9
10
  type: {
@@ -1,6 +1,7 @@
1
1
  import { clsx } from 'clsx';
2
2
  import { twMerge } from 'tailwind-merge';
3
3
 
4
+ // src/utils/index.ts
4
5
  function cn(...inputs) {
5
6
  return twMerge(clsx(inputs));
6
7
  }
@@ -8,7 +8,7 @@ import { Slot } from '@radix-ui/react-slot';
8
8
  import 'radix-ui';
9
9
 
10
10
  type FormProps = FormProviderProps;
11
- declare const Form: <TFieldValues extends react_hook_form.FieldValues, TContext = any, TTransformedValues extends react_hook_form.FieldValues | undefined = undefined>(props: FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
11
+ declare const Form: <TFieldValues extends react_hook_form.FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
12
12
 
13
13
  type FormItemProps = React$1.HTMLAttributes<HTMLDivElement>;
14
14
  declare const FormItem: React$1.ForwardRefExoticComponent<FormItemProps & React$1.RefAttributes<HTMLDivElement>>;
@@ -8,7 +8,7 @@ import { Slot } from '@radix-ui/react-slot';
8
8
  import 'radix-ui';
9
9
 
10
10
  type FormProps = FormProviderProps;
11
- declare const Form: <TFieldValues extends react_hook_form.FieldValues, TContext = any, TTransformedValues extends react_hook_form.FieldValues | undefined = undefined>(props: FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
11
+ declare const Form: <TFieldValues extends react_hook_form.FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
12
12
 
13
13
  type FormItemProps = React$1.HTMLAttributes<HTMLDivElement>;
14
14
  declare const FormItem: React$1.ForwardRefExoticComponent<FormItemProps & React$1.RefAttributes<HTMLDivElement>>;
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  'use strict';
2
4
 
3
5
  var chunkPB3EGVTV_cjs = require('../chunk-PB3EGVTV.cjs');
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from '../chunk-AO4TMCYJ.js';
2
4
  export { Textarea } from '../chunk-UZBZFCWX.js';
3
5
  export { Tooltip, TooltipProvider } from '../chunk-HXC3EALP.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@szum-tech/design-system",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Szum-Tech design system with tailwindcss support",
5
5
  "keywords": [
6
6
  "szum-tech",
@@ -79,11 +79,12 @@
79
79
  "tailwind/**"
80
80
  ],
81
81
  "scripts": {
82
- "build": "tsup && cpy 'src/tailwind/*.css' './tailwind' --flat",
82
+ "build": "tsup && cpy 'src/tailwind/*.css' './tailwind' --flat && npm run post-build",
83
83
  "lint": "eslint .",
84
84
  "lint:ci": "eslint . -o eslint-results.sarif -f @microsoft/eslint-formatter-sarif",
85
85
  "lint:fix": "eslint . --fix",
86
86
  "lint:inspect": "npx @eslint/config-inspector@latest",
87
+ "post-build": "node src/scripts/post-build.js",
87
88
  "prettier:check": "prettier --check .",
88
89
  "prettier:write": "prettier --write .",
89
90
  "storybook:build": "storybook build --docs",
@@ -102,59 +103,59 @@
102
103
  "@radix-ui/react-icons": "^1.3.2",
103
104
  "class-variance-authority": "^0.7.1",
104
105
  "clsx": "^2.1.1",
105
- "radix-ui": "^1.1.3",
106
- "tailwind-merge": "^3.0.2",
106
+ "radix-ui": "^1.4.1",
107
+ "tailwind-merge": "^3.3.0",
107
108
  "tailwindcss-animate": "^1.0.7"
108
109
  },
109
110
  "devDependencies": {
110
- "@hookform/resolvers": "^4.1.3",
111
- "@storybook/addon-essentials": "^8.6.9",
112
- "@storybook/addon-links": "^8.6.9",
113
- "@storybook/experimental-addon-test": "^8.6.9",
114
- "@storybook/react": "^8.6.9",
115
- "@storybook/react-vite": "^8.6.9",
116
- "@storybook/theming": "^8.6.9",
111
+ "@hookform/resolvers": "^5.0.1",
112
+ "@storybook/addon-essentials": "^8.6.14",
113
+ "@storybook/addon-links": "^8.6.14",
114
+ "@storybook/experimental-addon-test": "^8.6.14",
115
+ "@storybook/react": "^8.6.14",
116
+ "@storybook/react-vite": "^8.6.14",
117
+ "@storybook/theming": "^8.6.14",
117
118
  "@szum-tech/eslint-config": "^2.1.6",
118
119
  "@szum-tech/prettier-config": "^1.6.1",
119
120
  "@szum-tech/semantic-release-config": "^2.3.0",
120
- "@tailwindcss/postcss": "^4.0.16",
121
+ "@tailwindcss/postcss": "^4.1.7",
121
122
  "@testing-library/dom": "^10.4.0",
122
123
  "@testing-library/jest-dom": "^6.6.3",
123
- "@testing-library/react": "^16.2.0",
124
+ "@testing-library/react": "^16.3.0",
124
125
  "@testing-library/user-event": "^14.6.1",
125
- "@types/node": "^22.13.13",
126
- "@types/react": "^19.0.12",
127
- "@types/react-dom": "^19.0.4",
128
- "@vitejs/plugin-react": "^4.3.4",
126
+ "@types/node": "^22.15.19",
127
+ "@types/react": "^19.1.4",
128
+ "@types/react-dom": "^19.1.5",
129
+ "@vitejs/plugin-react": "^4.4.1",
129
130
  "@vitest/browser": "^3.0.9",
130
- "@vitest/coverage-v8": "^3.0.9",
131
- "@vitest/ui": "^3.0.9",
131
+ "@vitest/coverage-v8": "^3.1.3",
132
+ "@vitest/ui": "^3.1.3",
132
133
  "cpy-cli": "^5.0.0",
133
- "eslint": "^9.23.0",
134
- "playwright": "^1.51.1",
134
+ "eslint": "^9.27.0",
135
+ "playwright": "^1.52.0",
135
136
  "postcss": "^8.5.3",
136
137
  "prettier": "^3.5.3",
137
- "react": "^19.0.0",
138
+ "react": "^19.1.0",
138
139
  "react-docgen-typescript": "^2.2.2",
139
- "react-dom": "^19.0.0",
140
- "react-hook-form": "^7.54.2",
141
- "semantic-release": "^24.2.3",
140
+ "react-dom": "^19.1.0",
141
+ "react-hook-form": "^7.56.4",
142
+ "semantic-release": "^24.2.4",
142
143
  "serve": "^14.2.4",
143
- "storybook": "^8.6.9",
144
+ "storybook": "^8.6.14",
144
145
  "storybook-dark-mode": "^4.0.2",
145
- "tailwindcss": "^4.0.16",
146
- "tsup": "^8.4.0",
147
- "typescript": "^5.8.2",
148
- "vite": "^6.2.3",
146
+ "tailwindcss": "^4.1.7",
147
+ "tsup": "^8.5.0",
148
+ "typescript": "^5.8.3",
149
+ "vite": "^6.3.5",
149
150
  "vite-tsconfig-paths": "^5.1.4",
150
- "vitest": "^3.0.9",
151
- "zod": "^3.24.2"
151
+ "vitest": "^3.1.3",
152
+ "zod": "^3.24.4"
152
153
  },
153
154
  "peerDependencies": {
154
- "react": "^19.0.0",
155
- "react-dom": "^19.0.0",
156
- "react-hook-form": "^7.54.2",
157
- "tailwindcss": "^4.0.5"
155
+ "react": ">=19.0.0",
156
+ "react-dom": ">=19.0.0",
157
+ "react-hook-form": "^7.56.4",
158
+ "tailwindcss": ">=4"
158
159
  },
159
160
  "engines": {
160
161
  "node": ">=22"