overflow-toolbar 0.1.1 → 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.1",
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
  ],
@@ -60,27 +61,41 @@
60
61
  "exports": {
61
62
  ".": {
62
63
  "types": "./dist/index.d.ts",
63
- "import": "./dist/index.js"
64
+ "import": "./dist/index.js",
65
+ "default": "./dist/index.js"
64
66
  },
65
67
  "./core": {
66
68
  "types": "./dist/components/Overflow/index.d.ts",
67
- "import": "./dist/components/Overflow/index.js"
69
+ "import": "./dist/overflow.js",
70
+ "default": "./dist/overflow.js"
68
71
  },
69
72
  "./rx": {
70
73
  "types": "./dist/components/RxOverflow/index.d.ts",
71
- "import": "./dist/components/RxOverflow/index.js"
74
+ "import": "./dist/rx.js",
75
+ "default": "./dist/rx.js"
72
76
  },
73
77
  "./mui": {
74
78
  "types": "./dist/components/MuiOverflow/index.d.ts",
75
- "import": "./dist/components/MuiOverflow/index.js"
79
+ "import": "./dist/mui.js",
80
+ "default": "./dist/mui.js"
76
81
  },
77
82
  "./vanilla": {
78
83
  "types": "./dist/components/NoFrameworkOverflow/index.d.ts",
79
- "import": "./dist/components/NoFrameworkOverflow/index.js"
84
+ "import": "./dist/vanilla.js",
85
+ "default": "./dist/vanilla.js"
80
86
  },
81
- "./styles": "./dist/components/Overflow/Overflow.css",
82
- "./rx/styles": "./dist/components/RxOverflow/rx.css",
83
- "./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
+ }
84
99
  },
85
100
  "packageManager": "pnpm@10.5.0",
86
101
  "scripts": {
@@ -94,7 +109,12 @@
94
109
  "test": "vitest",
95
110
  "test:unit": "vitest run --project unit",
96
111
  "test:coverage": "vitest run --project unit --coverage",
97
- "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"
98
118
  },
99
119
  "peerDependencies": {
100
120
  "@emotion/react": "^11.0.0",
@@ -102,10 +122,8 @@
102
122
  "@mui/icons-material": "^7.0.0",
103
123
  "@mui/material": "^7.0.0",
104
124
  "@radix-ui/react-popover": "^1.0.0",
105
- "clsx": "^2.0.0",
106
125
  "react": "^18.0.0 || ^19.0.0",
107
- "react-dom": "^18.0.0 || ^19.0.0",
108
- "tailwind-merge": "^3.0.0"
126
+ "react-dom": "^18.0.0 || ^19.0.0"
109
127
  },
110
128
  "peerDependenciesMeta": {
111
129
  "@emotion/react": {
@@ -122,12 +140,6 @@
122
140
  },
123
141
  "@radix-ui/react-popover": {
124
142
  "optional": true
125
- },
126
- "clsx": {
127
- "optional": true
128
- },
129
- "tailwind-merge": {
130
- "optional": true
131
143
  }
132
144
  },
133
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';