najwer23morsels 0.17.4 → 0.17.9

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/biome.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/2.3.15/schema.json",
2
+ "$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3
3
  "vcs": {
4
4
  "enabled": true,
5
5
  "clientKind": "git",
package/lib/Copybutton.js CHANGED
@@ -1 +1 @@
1
- import{jsx as t}from"react/jsx-runtime";import{useState as o,useRef as e,useCallback as r,useEffect as n}from"react";import{B as i}from"./Button-BYGSUhk2.js";import{T as a}from"./TextBox-dHL75Jj9.js";import{s as l}from"./style-inject.es-BnTDb6vU.js";import"./Loader-D18j8aqL.js";import"./getCssVariableStyle-CBKDTT0s.js";var m={n23mCopyButton:"CopyButton-module_n23mCopyButton__JWZWy"};l("");const u=({children:l,className:u,style:s,textToCopy:c,backgroundColor:p="orangered",...d})=>{const[y,B]=o(!1),C=e(null),g=r(()=>{C.current&&clearTimeout(C.current),navigator.clipboard.writeText(c),B(!0),C.current=setTimeout(()=>{B(!1),C.current=null},800)},[]);return n(()=>()=>{C.current&&clearTimeout(C.current)},[]),t("div",{className:[m.n23mCopyButton,"n23mCopyButton",u].filter(Boolean).join(" "),...d,children:t(i,{padding:"0px 3px",height:"auto",width:"auto",backgroundColor:y?"#4BB543":p,onClick:g,children:l??t(a,{mobileSize:8,desktopSize:8,fontWeight:600,lineHeight:"17px",children:"Copy"})})})};u.displayName="CopyButton";export{u as CopyButton};
1
+ import{jsx as o}from"react/jsx-runtime";import{useState as t,useRef as r,useCallback as e,useEffect as n}from"react";import{B as i}from"./Button-BYGSUhk2.js";import{T as l}from"./TextBox-dHL75Jj9.js";import{s as a}from"./style-inject.es-BnTDb6vU.js";import"./Loader-D18j8aqL.js";import"./getCssVariableStyle-CBKDTT0s.js";var c={n23mCopyButton:"CopyButton-module_n23mCopyButton__JWZWy"};a("");const m=({children:a,className:m,style:u,textToCopy:s,color:p="white",backgroundColor:d="orangered",...y})=>{const[B,C]=t(!1),h=r(null),g=e(()=>{h.current&&clearTimeout(h.current),navigator.clipboard.writeText(s),C(!0),h.current=setTimeout(()=>{C(!1),h.current=null},800)},[]);return n(()=>()=>{h.current&&clearTimeout(h.current)},[]),o("div",{className:[c.n23mCopyButton,"n23mCopyButton",m].filter(Boolean).join(" "),...y,children:o(i,{padding:"0px 3px",height:"auto",width:"auto",backgroundColor:B?"#4BB543":d,onClick:g,children:a??o(l,{mobileSize:8,desktopSize:8,fontWeight:600,lineHeight:"17px",color:p,children:"Copy"})})})};m.displayName="CopyButton";export{m as CopyButton};
@@ -2,6 +2,7 @@ interface CopyButtonProps extends React.HTMLAttributes<HTMLDivElement> {
2
2
  children?: React.ReactNode;
3
3
  style?: React.CSSProperties;
4
4
  backgroundColor?: string;
5
+ color?: string;
5
6
  textToCopy: string;
6
7
  }
7
8
  export declare const CopyButton: React.FC<CopyButtonProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "najwer23morsels",
3
- "version": "0.17.4",
3
+ "version": "0.17.9",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./lib/index.mjs",
6
6
  "types": "./lib/index.d.ts",
@@ -21,13 +21,13 @@
21
21
  "release": "yarn build && yarn && changeset && changeset version && changeset publish && rimraf ./lib && rimraf ./.yarn/cache"
22
22
  },
23
23
  "devDependencies": {
24
- "@biomejs/biome": "2.3.15",
24
+ "@biomejs/biome": "2.4.4",
25
25
  "@changesets/cli": "^2.29.8",
26
26
  "@rollup/plugin-node-resolve": "^16.0.3",
27
27
  "@rollup/plugin-terser": "0.4.4",
28
- "@storybook/addon-a11y": "^10.2.8",
29
- "@storybook/addon-docs": "^10.2.8",
30
- "@storybook/react-vite": "^10.2.8",
28
+ "@storybook/addon-a11y": "^10.2.10",
29
+ "@storybook/addon-docs": "^10.2.10",
30
+ "@storybook/react-vite": "^10.2.10",
31
31
  "@types/react": "^19.2.14",
32
32
  "@types/react-dom": "^19.2.3",
33
33
  "@vitejs/plugin-react": "^5.1.4",
@@ -37,14 +37,14 @@
37
37
  "prettier": "^3.8.1",
38
38
  "react": "^19.2.4",
39
39
  "react-dom": "^19.2.4",
40
- "rimraf": "^6.1.2",
41
- "rollup": "^4.57.1",
40
+ "rimraf": "^6.1.3",
41
+ "rollup": "^4.58.0",
42
42
  "rollup-plugin-dts": "6.3.0",
43
43
  "rollup-plugin-output-size": "^2.0.0",
44
44
  "rollup-plugin-peer-deps-external": "^2.2.4",
45
45
  "rollup-plugin-postcss": "^4.0.2",
46
46
  "rollup-plugin-typescript2": "0.36.0",
47
- "storybook": "^10.2.8",
47
+ "storybook": "^10.2.10",
48
48
  "storybook-css-modules-preset": "^1.1.1",
49
49
  "typescript": "^5.9.3",
50
50
  "vite": "^7.3.1"