@dinofront/design_system 1.13.0 → 1.14.0
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/dist/components/DeviceRestriction/DeviceRestriction.d.ts +2 -0
- package/dist/components/DeviceRestriction/DeviceRestriction.i18n.d.ts +8 -0
- package/dist/components/DeviceRestriction/DeviceRestriction.types.d.ts +23 -0
- package/dist/components/DeviceRestriction/index.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1365 -1275
- package/dist/index.js.map +1 -1
- package/dist/styles.css +12 -0
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TranslationLocale } from '../../types';
|
|
2
|
+
import { DeviceRestrictionType } from './DeviceRestriction.types';
|
|
3
|
+
interface DeviceRestrictionCopy {
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const DEVICE_RESTRICTION_TRANSLATIONS: Record<TranslationLocale, Record<DeviceRestrictionType, DeviceRestrictionCopy>>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { BaseProps, TranslationLocale } from '../../types';
|
|
3
|
+
export type DeviceRestrictionType = 'mobile' | 'tablet' | 'desktop' | 'mobile-tablet';
|
|
4
|
+
export interface DeviceRestrictionProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'>, BaseProps {
|
|
5
|
+
/** Which device(s) the page requires. Drives the default icon, title, and
|
|
6
|
+
* description. Defaults to `'desktop'`. */
|
|
7
|
+
type?: DeviceRestrictionType;
|
|
8
|
+
/** Defaults to a translated built-in string for `type`. */
|
|
9
|
+
title?: ReactNode;
|
|
10
|
+
/** Defaults to a translated built-in string for `type`. */
|
|
11
|
+
description?: ReactNode;
|
|
12
|
+
/** Defaults to a `type`-specific lucide icon in an `IconTile` — pass your
|
|
13
|
+
* own node to override. */
|
|
14
|
+
icon?: ReactNode;
|
|
15
|
+
/** Language for the built-in title/description. An explicit `title`/
|
|
16
|
+
* `description` still takes precedence over the translated default.
|
|
17
|
+
* Default `'en-US'`. */
|
|
18
|
+
locale?: TranslationLocale;
|
|
19
|
+
/** Stretches the component to fill its container's height (`h-full`),
|
|
20
|
+
* for centering inside a full-viewport-height parent. Off by default —
|
|
21
|
+
* the component never forces a height on its own. */
|
|
22
|
+
fillHeight?: boolean;
|
|
23
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export * from './components/Checkbox';
|
|
|
10
10
|
export * from './components/Copy';
|
|
11
11
|
export * from './components/Counter';
|
|
12
12
|
export * from './components/DatePicker';
|
|
13
|
+
export * from './components/DeviceRestriction';
|
|
13
14
|
export * from './components/DistributionBar';
|
|
14
15
|
export * from './components/Divider';
|
|
15
16
|
export * from './components/Drawer';
|