liquent 0.1.0 → 0.2.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/index.d.cts CHANGED
@@ -163,15 +163,24 @@ interface LiquentProviderProps {
163
163
  locale?: Locale;
164
164
  /** Your own words for any of them, over the locale's. */
165
165
  labels?: Partial<Labels>;
166
+ /**
167
+ * How see-through the glass inside is, as iOS's Liquid Glass setting:
168
+ * `"clear"`, `"tinted"`, or a number from 0 (clear) to 1 (tinted). Left
169
+ * out, it's iOS's default, halfway, or whatever `--lq-glass-tint` the page
170
+ * sets.
171
+ */
172
+ glass?: GlassTint;
166
173
  children?: ReactNode;
167
174
  }
175
+ /** How see-through glass is: clear, iOS's default, tinted, or a number from 0 (clear) to 1 (tinted). */
176
+ type GlassTint = "clear" | "default" | "tinted" | number;
168
177
  /**
169
178
  * Sets the language of the names and texts Liquent's components carry on
170
179
  * their own (an icon button's accessible name, a placeholder, an empty list's
171
180
  * text). Wrap the app once: `<LiquentProvider locale="fa">`. Text you pass in
172
181
  * props always wins.
173
182
  */
174
- export declare function LiquentProvider({ locale, labels, children }: LiquentProviderProps): JSX.Element;
183
+ export declare function LiquentProvider({ locale, labels, glass, children }: LiquentProviderProps): JSX.Element;
175
184
  /** The labels in effect here. */
176
185
  export declare const useLabels: () => Labels;
177
186
  interface MenuProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
@@ -590,4 +599,4 @@ export declare const ToolbarTitle: ForwardRefExoticComponent<ToolbarTitleProps &
590
599
  * groups that each float on their own piece of glass.
591
600
  */
592
601
  export declare const Toolbar: ForwardRefExoticComponent<ToolbarProps & RefAttributes<HTMLDivElement>>;
593
- export type { ButtonProps, CheckboxProps, ComboboxItem, ComboboxProps, ContextMenuProps, DialogProps, GlassProps, InputProps, Labels, LiquentProviderProps, Locale, MenuEntry, MenuItem, MenuProps, ModalProps, ProgressProps, RadioGroupItem, RadioGroupProps, ScrollAreaProps, SearchFieldProps, SegmentedControlItem, SegmentedControlProps, SelectItem, SelectProps, SheetProps, SheetSnapPoint, SidebarCollapsible, SidebarContextValue, SidebarGroupProps, SidebarMenuActionProps, SidebarMenuButtonProps, SidebarMenuItemProps, SidebarMenuSubButtonProps, SidebarProps, SidebarProviderProps, SliderProps, SpinnerProps, StepperProps, SwitchProps, TabBarItem, TabBarProps, ToolbarEntry, ToolbarItem, ToolbarProps, ToolbarTitleProps };
602
+ export type { ButtonProps, CheckboxProps, ComboboxItem, ComboboxProps, ContextMenuProps, DialogProps, GlassProps, GlassTint, InputProps, Labels, LiquentProviderProps, Locale, MenuEntry, MenuItem, MenuProps, ModalProps, ProgressProps, RadioGroupItem, RadioGroupProps, ScrollAreaProps, SearchFieldProps, SegmentedControlItem, SegmentedControlProps, SelectItem, SelectProps, SheetProps, SheetSnapPoint, SidebarCollapsible, SidebarContextValue, SidebarGroupProps, SidebarMenuActionProps, SidebarMenuButtonProps, SidebarMenuItemProps, SidebarMenuSubButtonProps, SidebarProps, SidebarProviderProps, SliderProps, SpinnerProps, StepperProps, SwitchProps, TabBarItem, TabBarProps, ToolbarEntry, ToolbarItem, ToolbarProps, ToolbarTitleProps };
package/dist/index.d.ts CHANGED
@@ -163,15 +163,24 @@ interface LiquentProviderProps {
163
163
  locale?: Locale;
164
164
  /** Your own words for any of them, over the locale's. */
165
165
  labels?: Partial<Labels>;
166
+ /**
167
+ * How see-through the glass inside is, as iOS's Liquid Glass setting:
168
+ * `"clear"`, `"tinted"`, or a number from 0 (clear) to 1 (tinted). Left
169
+ * out, it's iOS's default, halfway, or whatever `--lq-glass-tint` the page
170
+ * sets.
171
+ */
172
+ glass?: GlassTint;
166
173
  children?: ReactNode;
167
174
  }
175
+ /** How see-through glass is: clear, iOS's default, tinted, or a number from 0 (clear) to 1 (tinted). */
176
+ type GlassTint = "clear" | "default" | "tinted" | number;
168
177
  /**
169
178
  * Sets the language of the names and texts Liquent's components carry on
170
179
  * their own (an icon button's accessible name, a placeholder, an empty list's
171
180
  * text). Wrap the app once: `<LiquentProvider locale="fa">`. Text you pass in
172
181
  * props always wins.
173
182
  */
174
- export declare function LiquentProvider({ locale, labels, children }: LiquentProviderProps): JSX.Element;
183
+ export declare function LiquentProvider({ locale, labels, glass, children }: LiquentProviderProps): JSX.Element;
175
184
  /** The labels in effect here. */
176
185
  export declare const useLabels: () => Labels;
177
186
  interface MenuProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
@@ -590,4 +599,4 @@ export declare const ToolbarTitle: ForwardRefExoticComponent<ToolbarTitleProps &
590
599
  * groups that each float on their own piece of glass.
591
600
  */
592
601
  export declare const Toolbar: ForwardRefExoticComponent<ToolbarProps & RefAttributes<HTMLDivElement>>;
593
- export type { ButtonProps, CheckboxProps, ComboboxItem, ComboboxProps, ContextMenuProps, DialogProps, GlassProps, InputProps, Labels, LiquentProviderProps, Locale, MenuEntry, MenuItem, MenuProps, ModalProps, ProgressProps, RadioGroupItem, RadioGroupProps, ScrollAreaProps, SearchFieldProps, SegmentedControlItem, SegmentedControlProps, SelectItem, SelectProps, SheetProps, SheetSnapPoint, SidebarCollapsible, SidebarContextValue, SidebarGroupProps, SidebarMenuActionProps, SidebarMenuButtonProps, SidebarMenuItemProps, SidebarMenuSubButtonProps, SidebarProps, SidebarProviderProps, SliderProps, SpinnerProps, StepperProps, SwitchProps, TabBarItem, TabBarProps, ToolbarEntry, ToolbarItem, ToolbarProps, ToolbarTitleProps };
602
+ export type { ButtonProps, CheckboxProps, ComboboxItem, ComboboxProps, ContextMenuProps, DialogProps, GlassProps, GlassTint, InputProps, Labels, LiquentProviderProps, Locale, MenuEntry, MenuItem, MenuProps, ModalProps, ProgressProps, RadioGroupItem, RadioGroupProps, ScrollAreaProps, SearchFieldProps, SegmentedControlItem, SegmentedControlProps, SelectItem, SelectProps, SheetProps, SheetSnapPoint, SidebarCollapsible, SidebarContextValue, SidebarGroupProps, SidebarMenuActionProps, SidebarMenuButtonProps, SidebarMenuItemProps, SidebarMenuSubButtonProps, SidebarProps, SidebarProviderProps, SliderProps, SpinnerProps, StepperProps, SwitchProps, TabBarItem, TabBarProps, ToolbarEntry, ToolbarItem, ToolbarProps, ToolbarTitleProps };