@ttoss/components 2.12.0 → 2.12.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.
- package/README.md +32 -0
- 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.
|
|
3
|
+
"version": "2.12.1",
|
|
4
4
|
"description": "React components for ttoss ecosystem.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ttoss",
|
|
@@ -127,8 +127,8 @@
|
|
|
127
127
|
},
|
|
128
128
|
"peerDependencies": {
|
|
129
129
|
"react": ">=16.8.0",
|
|
130
|
-
"@ttoss/react-i18n": "^2.0.25",
|
|
131
130
|
"@ttoss/react-icons": "^0.5.6",
|
|
131
|
+
"@ttoss/react-i18n": "^2.0.25",
|
|
132
132
|
"@ttoss/react-hooks": "^2.1.11",
|
|
133
133
|
"@ttoss/ui": "^6.4.0"
|
|
134
134
|
},
|
|
@@ -141,10 +141,10 @@
|
|
|
141
141
|
"tsup": "^8.5.1",
|
|
142
142
|
"tsx": "^4.19.2",
|
|
143
143
|
"@ttoss/config": "^1.35.12",
|
|
144
|
-
"@ttoss/i18n-cli": "^0.7.38",
|
|
145
144
|
"@ttoss/react-hooks": "^2.1.11",
|
|
146
|
-
"@ttoss/react-i18n": "^2.0.25",
|
|
147
145
|
"@ttoss/react-icons": "^0.5.6",
|
|
146
|
+
"@ttoss/react-i18n": "^2.0.25",
|
|
147
|
+
"@ttoss/i18n-cli": "^0.7.38",
|
|
148
148
|
"@ttoss/test-utils": "^4.0.2",
|
|
149
149
|
"@ttoss/ui": "^6.4.0"
|
|
150
150
|
},
|