@ttoss/components 2.12.0 → 2.12.2

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.
Files changed (2) hide show
  1. package/README.md +32 -0
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -148,6 +148,38 @@ import { List, ListItem } from '@ttoss/components/List';
148
148
  </List>;
149
149
  ```
150
150
 
151
+ ### LockedOverlay
152
+
153
+ Block and display locked features or restricted content within a container. Unlike modals, overlays block only their parent container. [📖 Docs](https://storybook.ttoss.dev/?path=/docs/components-lockedoverlay--docs)
154
+
155
+ ```tsx
156
+ import { LockedOverlay } from '@ttoss/components/LockedOverlay';
157
+
158
+ // Parent must have position: relative
159
+ <Box sx={{ position: 'relative' }}>
160
+ <LockedOverlay
161
+ isOpen={isOpen}
162
+ onRequestClose={() => setIsOpen(false)}
163
+ header={{
164
+ icon: 'fluent:lock-closed-24-filled',
165
+ title: 'Premium Feature',
166
+ description: 'Available in Pro plan only',
167
+ variant: 'primary',
168
+ }}
169
+ actions={[
170
+ {
171
+ label: 'Upgrade Now',
172
+ icon: 'fluent-emoji-high-contrast:sparkles',
173
+ variant: 'primary',
174
+ onClick: handleUpgrade,
175
+ },
176
+ ]}
177
+ >
178
+ <Text>This feature is only available for Pro users.</Text>
179
+ </LockedOverlay>
180
+ </Box>;
181
+ ```
182
+
151
183
  ### Markdown
152
184
 
153
185
  Render markdown content with theme integration. [📖 Docs](https://storybook.ttoss.dev/?path=/docs/components-markdown--docs)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/components",
3
- "version": "2.12.0",
3
+ "version": "2.12.2",
4
4
  "description": "React components for ttoss ecosystem.",
5
5
  "license": "MIT",
6
6
  "author": "ttoss",
@@ -127,10 +127,10 @@
127
127
  },
128
128
  "peerDependencies": {
129
129
  "react": ">=16.8.0",
130
+ "@ttoss/react-hooks": "^2.1.11",
130
131
  "@ttoss/react-i18n": "^2.0.25",
131
132
  "@ttoss/react-icons": "^0.5.6",
132
- "@ttoss/react-hooks": "^2.1.11",
133
- "@ttoss/ui": "^6.4.0"
133
+ "@ttoss/ui": "^6.4.1"
134
134
  },
135
135
  "devDependencies": {
136
136
  "@types/jest": "^30.0.0",
@@ -146,7 +146,7 @@
146
146
  "@ttoss/react-i18n": "^2.0.25",
147
147
  "@ttoss/react-icons": "^0.5.6",
148
148
  "@ttoss/test-utils": "^4.0.2",
149
- "@ttoss/ui": "^6.4.0"
149
+ "@ttoss/ui": "^6.4.1"
150
150
  },
151
151
  "keywords": [
152
152
  "React",