@dinofront/design_system 1.12.2 → 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.
@@ -0,0 +1,2 @@
1
+ import { DeviceRestrictionProps } from './DeviceRestriction.types';
2
+ export declare const DeviceRestriction: import('react').ForwardRefExoticComponent<DeviceRestrictionProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ export { DeviceRestriction } from './DeviceRestriction';
2
+ export type { DeviceRestrictionProps, DeviceRestrictionType } from './DeviceRestriction.types';
@@ -53,7 +53,11 @@ export interface SelectV2BaseProps extends BaseProps, Partial<SelectV2ReactSelec
53
53
  loading?: boolean;
54
54
  /** Shows a clear ("x") indicator once a value is selected. Default `false`. */
55
55
  clearable?: boolean;
56
- /** Type-to-filter the option list. Default `true` (react-select is a combobox by nature). */
56
+ /** Type-to-filter the option list. Defaults to `true`, except for a
57
+ * static (non-async, non-creatable) select with fewer than 10 options,
58
+ * where the search box is hidden automatically since it adds little
59
+ * value over a short list — pass `searchable` explicitly to override
60
+ * this in either direction. */
57
61
  searchable?: boolean;
58
62
  /** Virtualizes the menu list with `@tanstack/react-virtual`, for option
59
63
  * lists in the thousands. Assumes uniform, single-line option rows — off
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';