overflow-toolbar 0.1.2 → 0.1.4

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.
@@ -1 +1 @@
1
- div:has(>.overflow){justify-content:space-between;gap:1px}div:has(>.overflow) .overflow>:not([data-state=hidden]):first-child,div:has(>.overflow) .overflow>[data-state=hidden]:first-child+:not([data-state=hidden]){margin-left:auto;margin-right:0}div:has(>.overflow) .overflow.overflow-reverse>:not([data-state=hidden]):first-child,div:has(>.overflow) .overflow.overflow-reverse>[data-state=hidden]:first-child+:not([data-state=hidden]){margin-left:0;margin-right:auto}.overflow{--u: 8px;--u1: calc(var(--u) * 1);--u2: calc(var(--u) * 2);--u3: calc(var(--u) * 3);--u4: calc(var(--u) * 4);--u5: calc(var(--u) * 5);--hiddenCount: 0;display:flex;gap:0;justify-content:flex-start;white-space:nowrap;max-width:100%;overflow:hidden;list-style:none;margin:0 0 0 auto;padding:0;flex:min(var(--hiddenCount, 0)) 1 auto}.overflow>*{flex:0 0 fit-content;list-style:none;padding:0;margin:0}.overflow>li.overflow-opener{margin-left:auto;max-width:var(--u5)}.overflow-compact{gap:1px!important}.overflow-compact:not(.overflow-reverse)>:not([data-state=hidden])~:not([data-state=hidden])>button{border-top-left-radius:0;border-bottom-left-radius:0}.overflow-compact:not(.overflow-reverse)>:not([data-state=hidden]):has(~:not([data-state=hidden]))>button{border-top-right-radius:0;border-bottom-right-radius:0}.overflow-reverse{margin-left:0;margin-right:auto;flex-direction:row-reverse}.overflow-reverse>li.overflow-opener{margin-left:0;margin-right:auto}.overflow-compact.overflow-reverse>:not([data-state=hidden])~:not([data-state=hidden])>button{border-top-right-radius:0;border-bottom-right-radius:0}.overflow-compact.overflow-reverse>:not([data-state=hidden]):has(~:not([data-state=hidden]))>button{border-top-left-radius:0;border-bottom-left-radius:0}:is(.overflow-item-min,.overflow-opener)>button{font-size:0;min-width:100%;width:100%;max-width:100%;align-items:center;justify-content:center;gap:0}
1
+ .overflow{--u: 8px;--u1: calc(var(--u) * 1);--u2: calc(var(--u) * 2);--u3: calc(var(--u) * 3);--u4: calc(var(--u) * 4);--u5: calc(var(--u) * 5);--hiddenCount: 0;display:flex;gap:0;justify-content:flex-start;white-space:nowrap;max-width:100%;overflow:hidden;list-style:none;margin:0 0 0 auto;padding:0;flex:min(var(--hiddenCount, 0)) 1 auto}.overflow>*{flex:0 0 fit-content;list-style:none;padding:0;margin:0}.overflow>:not([data-state=hidden]):first-child,.overflow>[data-state=hidden]:first-child+:not([data-state=hidden]){margin-left:auto;margin-right:0}.overflow>li.overflow-opener{margin-left:auto;max-width:var(--u5)}.overflow-compact{gap:1px!important}.overflow-compact:not(.overflow-reverse)>:not([data-state=hidden])~:not([data-state=hidden])>button{border-top-left-radius:0;border-bottom-left-radius:0}.overflow-compact:not(.overflow-reverse)>:not([data-state=hidden]):has(~:not([data-state=hidden]))>button{border-top-right-radius:0;border-bottom-right-radius:0}.overflow-reverse{margin-left:0;margin-right:auto;flex-direction:row-reverse}.overflow-reverse>:not([data-state=hidden]):first-child,.overflow-reverse>[data-state=hidden]:first-child+:not([data-state=hidden]){margin-left:0;margin-right:auto}.overflow-reverse>li.overflow-opener{margin-left:0;margin-right:auto}.overflow-compact.overflow-reverse>:not([data-state=hidden])~:not([data-state=hidden])>button{border-top-right-radius:0;border-bottom-right-radius:0}.overflow-compact.overflow-reverse>:not([data-state=hidden]):has(~:not([data-state=hidden]))>button{border-top-left-radius:0;border-bottom-left-radius:0}:is(.overflow-item-min,.overflow-opener)>button{font-size:0;min-width:100%;width:100%;max-width:100%;align-items:center;justify-content:center;gap:0}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "overflow-toolbar",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "type": "module",
5
5
  "description": "Responsive toolbar overflow component — items automatically collapse into a dropdown menu as the container shrinks. Supports visible, icon-only (min), and hidden states. Ships with React (Radix UI), MUI, and vanilla JS implementations.",
6
6
  "license": "MIT",
@@ -51,6 +51,7 @@
51
51
  "types": "dist/index.d.ts",
52
52
  "files": [
53
53
  "dist",
54
+ "styles.d.ts",
54
55
  "README.md",
55
56
  "LICENSE"
56
57
  ],
@@ -83,9 +84,18 @@
83
84
  "import": "./dist/vanilla.js",
84
85
  "default": "./dist/vanilla.js"
85
86
  },
86
- "./styles": "./dist/components/Overflow/Overflow.css",
87
- "./rx/styles": "./dist/components/RxOverflow/rx.css",
88
- "./vanilla/styles": "./dist/components/NoFrameworkOverflow/noframework.css"
87
+ "./styles": {
88
+ "types": "./styles.d.ts",
89
+ "default": "./dist/components/Overflow/Overflow.css"
90
+ },
91
+ "./rx/styles": {
92
+ "types": "./styles.d.ts",
93
+ "default": "./dist/components/RxOverflow/rx.css"
94
+ },
95
+ "./vanilla/styles": {
96
+ "types": "./styles.d.ts",
97
+ "default": "./dist/components/NoFrameworkOverflow/noframework.css"
98
+ }
89
99
  },
90
100
  "packageManager": "pnpm@10.5.0",
91
101
  "scripts": {
@@ -99,7 +109,12 @@
99
109
  "test": "vitest",
100
110
  "test:unit": "vitest run --project unit",
101
111
  "test:coverage": "vitest run --project unit --coverage",
102
- "typecheck": "tsc -p tsconfig.build.json --noEmit"
112
+ "typecheck": "tsc -p tsconfig.build.json --noEmit",
113
+ "deploy": "pnpm run build:lib && npm publish --access public"
114
+ },
115
+ "dependencies": {
116
+ "clsx": "^2.0.0",
117
+ "tailwind-merge": "^3.0.0"
103
118
  },
104
119
  "peerDependencies": {
105
120
  "@emotion/react": "^11.0.0",
@@ -107,10 +122,8 @@
107
122
  "@mui/icons-material": "^7.0.0",
108
123
  "@mui/material": "^7.0.0",
109
124
  "@radix-ui/react-popover": "^1.0.0",
110
- "clsx": "^2.0.0",
111
125
  "react": "^18.0.0 || ^19.0.0",
112
- "react-dom": "^18.0.0 || ^19.0.0",
113
- "tailwind-merge": "^3.0.0"
126
+ "react-dom": "^18.0.0 || ^19.0.0"
114
127
  },
115
128
  "peerDependenciesMeta": {
116
129
  "@emotion/react": {
@@ -127,12 +140,6 @@
127
140
  },
128
141
  "@radix-ui/react-popover": {
129
142
  "optional": true
130
- },
131
- "clsx": {
132
- "optional": true
133
- },
134
- "tailwind-merge": {
135
- "optional": true
136
143
  }
137
144
  },
138
145
  "devDependencies": {
package/styles.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ declare module 'overflow-toolbar/styles';
2
+ declare module 'overflow-toolbar/rx/styles';
3
+ declare module 'overflow-toolbar/vanilla/styles';