@scattered-light/loomiere-mojave 0.2.0 → 0.3.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.
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import * as _base_ui_react_field from '@base-ui/react/field';
3
+ import * as _base_ui_react_button from '@base-ui/react/button';
3
4
  import { Button as Button$1 } from '@base-ui/react/button';
4
5
  import * as _base_ui_react_input from '@base-ui/react/input';
5
6
  import { Input as Input$1 } from '@base-ui/react/input';
@@ -39,10 +40,20 @@ type ButtonProps = React.ComponentProps<typeof Button$1> & {
39
40
  };
40
41
  /**
41
42
  * Base UI [Button](https://base-ui.com/react/components/button) with design-system `Button` classes.
42
- * Icon-only buttons must include a visible label for assistive tech (`aria-label` or `aria-labelledby`).
43
+ * A button holding only an icon gets `data-icon-only` and is drawn square (a circle, with the pill
44
+ * corners). Icon-only buttons must include a label for assistive tech (`aria-label` or `aria-labelledby`).
43
45
  */
44
46
  declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
45
47
 
48
+ type IconButtonProps = React.ComponentProps<typeof Button$1>;
49
+ /**
50
+ * A small, quiet icon-only button: the icon-button concept (the X that closes a dialog, a field's
51
+ * clear button) as a part of its own, for calendar arrows, row actions and other controls that a
52
+ * full Button would make too loud. Base UI [Button](https://base-ui.com/react/components/button)
53
+ * with the `IconButton` class. Always give it `aria-label` or `aria-labelledby`.
54
+ */
55
+ declare const IconButton: React.ForwardRefExoticComponent<Omit<Omit<_base_ui_react_button.ButtonProps, "ref"> & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
56
+
46
57
  type InputProps = React.ComponentProps<typeof Input$1>;
47
58
  /**
48
59
  * Base UI [Input](https://base-ui.com/react/components/input) with design-system `Input` classes.
@@ -104,4 +115,4 @@ type FieldControlProps = React.ComponentProps<typeof Field.Control>;
104
115
  type FieldValidityProps = React.ComponentProps<typeof Field.Validity>;
105
116
  type FieldItemProps = React.ComponentProps<typeof Field.Item>;
106
117
 
107
- export { Button, type ButtonProps, Field, type FieldControlProps, type FieldDescriptionProps, type FieldErrorProps, type FieldItemProps, type FieldLabelProps, type FieldRootProps, type FieldValidityProps, Fieldset, FieldsetDescription, type FieldsetDescriptionProps, type FieldsetLegendProps, type FieldsetRootProps, Form, FormActions, type FormActionsProps, type FormProps, Input, type InputProps, NavigationMenu, type NavigationMenuListProps, type NavigationMenuRootProps, cn, cnState };
118
+ export { Button, type ButtonProps, Field, type FieldControlProps, type FieldDescriptionProps, type FieldErrorProps, type FieldItemProps, type FieldLabelProps, type FieldRootProps, type FieldValidityProps, Fieldset, FieldsetDescription, type FieldsetDescriptionProps, type FieldsetLegendProps, type FieldsetRootProps, Form, FormActions, type FormActionsProps, type FormProps, IconButton, type IconButtonProps, Input, type InputProps, NavigationMenu, type NavigationMenuListProps, type NavigationMenuRootProps, cn, cnState };
@@ -10741,9 +10741,9 @@
10741
10741
  }
10742
10742
  },
10743
10743
  "popover": {
10744
- "popup-max-width": {
10745
- "$value": "400px",
10746
- "$description": "Keeps longer text to a readable line length."
10744
+ "text-max-width": {
10745
+ "$value": "{measure.narrow}",
10746
+ "$description": "Keeps the title and description to a readable line length. The popup itself has no fixed cap, so wider content such as a calendar or a form fits; it stops at the space Base UI reports beside the trigger."
10747
10747
  },
10748
10748
  "popup-min-width": {
10749
10749
  "$value": "{popup.min-width}",
package/dist/tokens.css CHANGED
@@ -778,7 +778,6 @@
778
778
  --sl-drawer-popup-max-size: 85vh; /** Tallest a bottom or top drawer gets, leaving the page visible above it. */
779
779
  --sl-navigation-menu-popup-min-width: 400px; /** Narrowest a navigation panel gets on wider screens, and the widest a single column of links grows. */
780
780
  --sl-navigation-menu-column-width: 12rem; /** Width of each column in a two-column link list. */
781
- --sl-popover-popup-max-width: 400px; /** Keeps longer text to a readable line length. */
782
781
  --sl-preview-card-popup-min-width: 300px; /** Narrowest a preview card gets, so a short title still has room for its image. */
783
782
  --sl-preview-card-popup-max-width: 450px; /** Widest a preview card gets, so its description keeps a comfortable line length. */
784
783
  --sl-slider-vertical-height: 200px; /** Default length of a vertical slider. */
@@ -1723,6 +1722,7 @@
1723
1722
  --sl-avatar-size-xl: var(--sl-space-24); /** 96px, on a profile page. */
1724
1723
  --sl-drawer-handle-width: var(--sl-space-10); /** Grab bar length. */
1725
1724
  --sl-drawer-handle-height: var(--sl-space-1); /** Grab bar thickness. */
1725
+ --sl-popover-text-max-width: var(--sl-measure-narrow); /** Keeps the title and description to a readable line length. The popup itself has no fixed cap, so wider content such as a calendar or a form fits; it stops at the space Base UI reports beside the trigger. */
1726
1726
  --sl-popover-popup-min-width: var(--sl-popup-min-width); /** Narrow enough for a short note, wide enough that a title doesn't wrap word by word. */
1727
1727
  --sl-slider-thumb-size: var(--sl-space-5); /** Knob diameter, big enough to grab with a finger on a 4px track. */
1728
1728
  --sl-switch-track-text-font-size: var(--sl-font-size-xs); /** Sized to the track, not a text style: the ON/OFF label has to fit inside the switch at each size. The rest of the label uses condense-subtitle-label. */
package/dist/tokens.d.ts CHANGED
@@ -2414,7 +2414,7 @@ declare const tokens: {
2414
2414
  readonly "column-width": string;
2415
2415
  };
2416
2416
  readonly "popover": {
2417
- readonly "popup-max-width": string;
2417
+ readonly "text-max-width": string;
2418
2418
  readonly "popup-min-width": string;
2419
2419
  };
2420
2420
  readonly "preview-card": {
package/dist/tokens.js CHANGED
@@ -2414,7 +2414,7 @@ const tokens = {
2414
2414
  "column-width": "12rem"
2415
2415
  },
2416
2416
  "popover": {
2417
- "popup-max-width": "400px",
2417
+ "text-max-width": "45ch",
2418
2418
  "popup-min-width": "200px"
2419
2419
  },
2420
2420
  "preview-card": {
package/dist/tokens.json CHANGED
@@ -17770,11 +17770,12 @@
17770
17770
  "description": "Width of each column in a two-column link list."
17771
17771
  },
17772
17772
  {
17773
- "name": "--sl-popover-popup-max-width",
17774
- "path": "popover.popup-max-width",
17773
+ "name": "--sl-popover-text-max-width",
17774
+ "path": "popover.text-max-width",
17775
17775
  "layer": "component",
17776
- "value": "400px",
17777
- "description": "Keeps longer text to a readable line length."
17776
+ "value": "45ch",
17777
+ "references": "{measure.narrow}",
17778
+ "description": "Keeps the title and description to a readable line length. The popup itself has no fixed cap, so wider content such as a calendar or a form fits; it stops at the space Base UI reports beside the trigger."
17778
17779
  },
17779
17780
  {
17780
17781
  "name": "--sl-popover-popup-min-width",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scattered-light/loomiere-mojave",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Mojave, the demo theme for Loomiere: desert stone and purple, built from one brand file.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -61,6 +61,6 @@
61
61
  }
62
62
  },
63
63
  "devDependencies": {
64
- "@scattered-light/loomiere": "0.2.0"
64
+ "@scattered-light/loomiere": "0.3.0"
65
65
  }
66
66
  }