@panneau/ui 5.0.0-alpha.7 → 5.0.0-alpha.9

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.
Files changed (97) hide show
  1. package/README.md +17 -0
  2. package/dist/alert/Alert.d.ts +2 -2
  3. package/dist/alert/tokens.d.ts +1 -1
  4. package/dist/badge/Badge.d.ts +1 -1
  5. package/dist/badge/tokens.d.ts +1 -1
  6. package/dist/button/Button.d.ts +3 -3
  7. package/dist/button/tokens.d.ts +1 -1
  8. package/dist/card/tokens.d.ts +1 -1
  9. package/dist/checkbox/Checkbox.d.ts +1 -1
  10. package/dist/checkbox/tokens.d.ts +1 -1
  11. package/dist/combo-box/ComboBox.d.ts +1 -1
  12. package/dist/command-palette/CommandPalette.d.ts +1 -1
  13. package/dist/command-palette/match.d.ts +1 -1
  14. package/dist/command-palette/tokens.d.ts +1 -1
  15. package/dist/container/tokens.d.ts +1 -1
  16. package/dist/date-picker/DatePicker.d.ts +1 -1
  17. package/dist/date-picker/calendarTokens.d.ts +1 -1
  18. package/dist/dialog/Dialog.css +5 -0
  19. package/dist/dialog/Dialog.d.ts.map +1 -1
  20. package/dist/dialog/Dialog.js +9 -4
  21. package/dist/dialog/Dialog.js.map +1 -1
  22. package/dist/dialog/Dialog.module.js +4 -2
  23. package/dist/dialog/Dialog.module.js.map +1 -1
  24. package/dist/dialog/tokens.d.ts +1 -1
  25. package/dist/disclosure/tokens.d.ts +1 -1
  26. package/dist/divider/tokens.d.ts +1 -1
  27. package/dist/field/FieldParts.d.ts +1 -1
  28. package/dist/field/inputTokens.d.ts +1 -1
  29. package/dist/field/tokens.d.ts +1 -1
  30. package/dist/grid/Grid.d.ts +1 -1
  31. package/dist/grid/tokens.d.ts +1 -1
  32. package/dist/heading/tokens.d.ts +1 -1
  33. package/dist/icon/lucideIconLoader.d.ts +1 -1
  34. package/dist/icon/namedIcons.d.ts +1 -1
  35. package/dist/icon-button/IconButton.d.ts +2 -2
  36. package/dist/index.d.ts +61 -61
  37. package/dist/inline/Inline.d.ts +1 -1
  38. package/dist/inline/tokens.d.ts +1 -1
  39. package/dist/menu/Menu.d.ts +1 -1
  40. package/dist/menu/tokens.d.ts +1 -1
  41. package/dist/named-icons/index.d.ts +1 -1
  42. package/dist/number-input/NumberInput.d.ts +1 -1
  43. package/dist/number-input/tokens.d.ts +1 -1
  44. package/dist/pill-trigger/tokens.d.ts +1 -1
  45. package/dist/popover/Popover.css +5 -0
  46. package/dist/popover/Popover.d.ts.map +1 -1
  47. package/dist/popover/Popover.js +9 -4
  48. package/dist/popover/Popover.js.map +1 -1
  49. package/dist/popover/Popover.module.js +4 -2
  50. package/dist/popover/Popover.module.js.map +1 -1
  51. package/dist/popover/tokens.d.ts +1 -1
  52. package/dist/prose/tokens.d.ts +1 -1
  53. package/dist/radio-group/RadioGroup.d.ts +2 -2
  54. package/dist/radio-group/tokens.d.ts +1 -1
  55. package/dist/root/PanneauRoot.d.ts +27 -5
  56. package/dist/root/PanneauRoot.d.ts.map +1 -1
  57. package/dist/root/PanneauRoot.js +164 -120
  58. package/dist/root/PanneauRoot.js.map +1 -1
  59. package/dist/root/ThemeScope.d.ts +1 -1
  60. package/dist/root/ThemeScope.d.ts.map +1 -1
  61. package/dist/root/ThemeScope.js +40 -38
  62. package/dist/root/ThemeScope.js.map +1 -1
  63. package/dist/segmented-control/SegmentedControl.d.ts +1 -1
  64. package/dist/segmented-control/tokens.d.ts +1 -1
  65. package/dist/select/Select.d.ts +1 -1
  66. package/dist/select/listBoxTokens.d.ts +1 -1
  67. package/dist/skeleton/tokens.d.ts +1 -1
  68. package/dist/slider/Slider.d.ts +1 -1
  69. package/dist/spinner/tokens.d.ts +1 -1
  70. package/dist/stack/Stack.d.ts +1 -1
  71. package/dist/stack/tokens.d.ts +1 -1
  72. package/dist/switch/Switch.d.ts +1 -1
  73. package/dist/switch/tokens.d.ts +1 -1
  74. package/dist/tabs/tokens.d.ts +1 -1
  75. package/dist/tags-input/TagsInput.d.ts +1 -1
  76. package/dist/text/Text.d.ts +1 -1
  77. package/dist/text/tokens.d.ts +1 -1
  78. package/dist/text-area/TextArea.d.ts +1 -1
  79. package/dist/text-input/TextInput.d.ts +1 -1
  80. package/dist/theme/bootstrap.d.ts +2 -2
  81. package/dist/theme/checkTheme.d.ts +2 -2
  82. package/dist/theme/cli.d.ts +2 -2
  83. package/dist/theme/colorVision.d.ts +1 -1
  84. package/dist/theme/defineTheme.d.ts +5 -5
  85. package/dist/theme/index.d.ts +12 -12
  86. package/dist/theme/theme.d.ts +2 -2
  87. package/dist/theme/toneClass.d.ts +1 -1
  88. package/dist/theme/tones.d.ts +1 -1
  89. package/dist/time-input/TimeInput.d.ts +1 -1
  90. package/dist/toast/Toast.d.ts +1 -1
  91. package/dist/toast/tokens.d.ts +1 -1
  92. package/dist/tooltip/tokens.d.ts +1 -1
  93. package/dist/utils/events.d.ts +4 -0
  94. package/dist/utils/events.d.ts.map +1 -0
  95. package/dist/utils/events.js +9 -0
  96. package/dist/utils/events.js.map +1 -0
  97. package/package.json +5 -5
package/README.md CHANGED
@@ -288,6 +288,23 @@ Class names are stable and readable, without a hash, like Bootstrap's: target th
288
288
 
289
289
  The theme model is described in [decision 0024](../../docs/decisions/0024-theme-model.md).
290
290
 
291
+ ### Content Security Policy
292
+
293
+ Panneau runs under a strict Content Security Policy: it never needs `'unsafe-eval'` or inline scripts. For styles:
294
+
295
+ - **CSS Modules** are files of the packages, that the project's bundler serves as its other stylesheets (`style-src 'self'`).
296
+ - **Themes and fonts** are `<style>` elements (and a `<link>` for each font stylesheet) that `PanneauRoot` writes from the theme. With a policy without `'unsafe-inline'`, give them the page's nonce: `<PanneauRoot nonce={nonce}>`, or `nonce` of `<Panneau>` and `createPanneauApp()`. Without it, Panneau reads the nonce where React Aria does: `<meta property="csp-nonce" content="…">`, then `__webpack_nonce__`. The default theme writes no `<style>`.
297
+ - **React Aria** adds one `<style>` (`react-aria-pressable-style`) with the same nonce.
298
+ - **Inline `style` attributes** that components set (widths of progress bars, positions of popovers) go through the CSSOM, which `style-src` doesn't block.
299
+
300
+ ```html
301
+ <meta property="csp-nonce" content="{{ $nonce }}" />
302
+ ```
303
+
304
+ ```text
305
+ Content-Security-Policy: default-src 'self'; style-src 'self' 'nonce-{{ $nonce }}'; img-src 'self' data: https:
306
+ ```
307
+
291
308
  ## Primitives
292
309
 
293
310
  `Heading`, `Text`, `Prose`, `Stack`, `Inline`, `Grid`, `Container`, `Divider`, `Button`, `IconButton`, `TextInput`, `TextArea`, `NumberInput`, `Slider`, `TagsInput`, `Select` (single or multiple), `ComboBox`, `Checkbox`, `Switch`, `RadioGroup`, `SegmentedControl`, `DatePicker`, `TimeInput`, `Fieldset`, `Dialog`, `Popover`, `Menu`, `PillTrigger`, `Tabs`, `Tooltip`, toasts (`useToast()`), `Alert`, `Badge`, `Spinner`, `Skeleton`, `LoadingRegion`, `Card`, `Disclosure` and `Icon`.
@@ -1,6 +1,6 @@
1
1
  import type { ReactNode, Ref } from 'react';
2
- import { type IconComponent } from '../icon/Icon';
3
- import type { Tone } from '../theme/tones';
2
+ import { type IconComponent } from '../icon/Icon.js';
3
+ import type { Tone } from '../theme/tones.js';
4
4
  /** @deprecated Use `Tone`. */
5
5
  export type AlertTone = Tone;
6
6
  /** How an alert uses its tone. */
@@ -1,3 +1,3 @@
1
1
  /** Tokens of Alert. */
2
- export declare const alertTokens: import("..").ComponentTokens<"alert", "panneau-alert-radius" | "panneau-alert-gap" | "panneau-alert-padding-y" | "panneau-alert-padding-x" | "panneau-alert-border-width" | "panneau-alert-title-font-weight">;
2
+ export declare const alertTokens: import("../index.js").ComponentTokens<"alert", "panneau-alert-radius" | "panneau-alert-gap" | "panneau-alert-padding-y" | "panneau-alert-padding-x" | "panneau-alert-border-width" | "panneau-alert-title-font-weight">;
3
3
  //# sourceMappingURL=tokens.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import type { ReactNode } from 'react';
2
- import type { Tone } from '../theme/tones';
2
+ import type { Tone } from '../theme/tones.js';
3
3
  /** @deprecated Use `Tone`. */
4
4
  export type BadgeTone = Tone;
5
5
  /** How a badge uses its tone. */
@@ -1,3 +1,3 @@
1
1
  /** Tokens of Badge. */
2
- export declare const badgeTokens: import("..").ComponentTokens<"badge", "panneau-badge-height" | "panneau-badge-radius" | "panneau-badge-gap" | "panneau-badge-padding-x" | "panneau-badge-border-width" | "panneau-badge-font-size" | "panneau-badge-font-weight">;
2
+ export declare const badgeTokens: import("../index.js").ComponentTokens<"badge", "panneau-badge-height" | "panneau-badge-radius" | "panneau-badge-gap" | "panneau-badge-padding-x" | "panneau-badge-border-width" | "panneau-badge-font-size" | "panneau-badge-font-weight">;
3
3
  //# sourceMappingURL=tokens.d.ts.map
@@ -1,8 +1,8 @@
1
1
  import type { CSSProperties, ReactNode } from 'react';
2
2
  import { type ButtonProps as AriaButtonProps } from 'react-aria-components';
3
- import { type IconComponent } from '../icon/Icon';
4
- import type { Tone } from '../theme/tones';
5
- import styles from './Button.module.css';
3
+ import { type IconComponent } from '../icon/Icon.js';
4
+ import type { Tone } from '../theme/tones.js';
5
+ declare const styles: Readonly<Record<string, string>>;
6
6
  /** How a button uses its tone, like Bootstrap's `.btn-*` and `.btn-outline-*`. */
7
7
  export type ButtonAppearance = 'solid' | 'outline' | 'subtle' | 'ghost';
8
8
  /**
@@ -1,3 +1,3 @@
1
1
  /** Tokens of Button. */
2
- export declare const buttonTokens: import("..").ComponentTokens<"button", "panneau-button-radius" | "panneau-button-gap" | "panneau-button-padding-x" | "panneau-button-border-width" | "panneau-button-font-size" | "panneau-button-font-weight" | "panneau-button-padding-x-sm" | "panneau-button-font-size-sm">;
2
+ export declare const buttonTokens: import("../index.js").ComponentTokens<"button", "panneau-button-radius" | "panneau-button-gap" | "panneau-button-padding-x" | "panneau-button-border-width" | "panneau-button-font-size" | "panneau-button-font-weight" | "panneau-button-padding-x-sm" | "panneau-button-font-size-sm">;
3
3
  //# sourceMappingURL=tokens.d.ts.map
@@ -1,3 +1,3 @@
1
1
  /** Tokens of Card. */
2
- export declare const cardTokens: import("..").ComponentTokens<"card", "panneau-card-radius" | "panneau-card-gap" | "panneau-card-padding-y" | "panneau-card-padding-x" | "panneau-card-border-width" | "panneau-card-title-font-weight" | "panneau-card-bg" | "panneau-card-border-color" | "panneau-card-shadow" | "panneau-card-header-padding-y" | "panneau-card-title-font-size">;
2
+ export declare const cardTokens: import("../index.js").ComponentTokens<"card", "panneau-card-radius" | "panneau-card-gap" | "panneau-card-padding-y" | "panneau-card-padding-x" | "panneau-card-border-width" | "panneau-card-title-font-weight" | "panneau-card-bg" | "panneau-card-border-color" | "panneau-card-shadow" | "panneau-card-header-padding-y" | "panneau-card-title-font-size">;
3
3
  //# sourceMappingURL=tokens.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import type { ReactNode } from 'react';
2
2
  import { type CheckboxProps as AriaCheckboxProps } from 'react-aria-components';
3
- import { type ChoiceChromeProps } from './ChoiceChrome';
3
+ import { type ChoiceChromeProps } from './ChoiceChrome.js';
4
4
  export interface CheckboxProps extends Omit<AriaCheckboxProps, 'className' | 'style' | 'children' | 'isInvalid' | 'validate'>, ChoiceChromeProps {
5
5
  /** Label, next to the box. */
6
6
  children?: ReactNode;
@@ -1,3 +1,3 @@
1
1
  /** Tokens of Checkbox. */
2
- export declare const checkboxTokens: import("..").ComponentTokens<"checkbox", "panneau-checkbox-size" | "panneau-checkbox-radius" | "panneau-checkbox-bg" | "panneau-checkbox-border-color" | "panneau-checkbox-checked-color" | "panneau-checkbox-checked-bg">;
2
+ export declare const checkboxTokens: import("../index.js").ComponentTokens<"checkbox", "panneau-checkbox-size" | "panneau-checkbox-radius" | "panneau-checkbox-bg" | "panneau-checkbox-border-color" | "panneau-checkbox-checked-color" | "panneau-checkbox-checked-bg">;
3
3
  //# sourceMappingURL=tokens.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { type ComboBoxProps as AriaComboBoxProps } from 'react-aria-components';
2
- import { type FieldChromeProps } from '../field/FieldParts';
2
+ import { type FieldChromeProps } from '../field/FieldParts.js';
3
3
  /** An item that a combo box can pick. */
4
4
  export interface ComboBoxItem {
5
5
  id: string;
@@ -1,5 +1,5 @@
1
1
  import { type ReactNode } from 'react';
2
- import { type CommandPaletteGroup } from './match';
2
+ import { type CommandPaletteGroup } from './match.js';
3
3
  export interface CommandPaletteProps {
4
4
  isOpen: boolean;
5
5
  onOpenChange: (isOpen: boolean) => void;
@@ -1,4 +1,4 @@
1
- import type { IconComponent } from '../icon/Icon';
1
+ import type { IconComponent } from '../icon/Icon.js';
2
2
  /** An item of a `CommandPalette`: a link to follow, or an action to run. */
3
3
  export interface CommandPaletteItem {
4
4
  /** Unique in the palette. */
@@ -1,3 +1,3 @@
1
1
  /** Tokens of CommandPalette. */
2
- export declare const commandPaletteTokens: import("..").ComponentTokens<"command-palette", "panneau-command-palette-width" | "panneau-command-palette-radius" | "panneau-command-palette-bg" | "panneau-command-palette-offset-top" | "panneau-command-palette-list-max-height" | "panneau-command-palette-item-radius" | "panneau-command-palette-item-active-bg">;
2
+ export declare const commandPaletteTokens: import("../index.js").ComponentTokens<"command-palette", "panneau-command-palette-width" | "panneau-command-palette-radius" | "panneau-command-palette-bg" | "panneau-command-palette-offset-top" | "panneau-command-palette-list-max-height" | "panneau-command-palette-item-radius" | "panneau-command-palette-item-active-bg">;
3
3
  //# sourceMappingURL=tokens.d.ts.map
@@ -1,3 +1,3 @@
1
1
  /** Tokens of Container. */
2
- export declare const containerTokens: import("..").ComponentTokens<"container", "panneau-container-padding-x" | "panneau-container-width-sm" | "panneau-container-width-md" | "panneau-container-width-lg" | "panneau-container-width-xl">;
2
+ export declare const containerTokens: import("../index.js").ComponentTokens<"container", "panneau-container-padding-x" | "panneau-container-width-sm" | "panneau-container-width-md" | "panneau-container-width-lg" | "panneau-container-width-xl">;
3
3
  //# sourceMappingURL=tokens.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { type DatePickerProps as AriaDatePickerProps, type DateValue } from 'react-aria-components';
2
- import { type FieldChromeProps } from '../field/FieldParts';
2
+ import { type FieldChromeProps } from '../field/FieldParts.js';
3
3
  export interface DatePickerProps extends Omit<AriaDatePickerProps<DateValue>, 'className' | 'style' | 'children' | 'isInvalid' | 'validate'>, FieldChromeProps {
4
4
  controlClassName?: string;
5
5
  popoverClassName?: string;
@@ -1,3 +1,3 @@
1
1
  /** Tokens of the calendar of `DatePicker`. */
2
- export declare const calendarTokens: import("..").ComponentTokens<"calendar", "panneau-calendar-cell-size" | "panneau-calendar-cell-radius" | "panneau-calendar-selected-color" | "panneau-calendar-selected-bg">;
2
+ export declare const calendarTokens: import("../index.js").ComponentTokens<"calendar", "panneau-calendar-cell-size" | "panneau-calendar-cell-radius" | "panneau-calendar-selected-color" | "panneau-calendar-selected-bg">;
3
3
  //# sourceMappingURL=calendarTokens.d.ts.map
@@ -162,3 +162,8 @@
162
162
  transform: translateY(0.5rem);
163
163
  }
164
164
  }
165
+
166
+ /* Stops the events that React bubbles out of the overlay, without a box of its own. */
167
+ .panneau-dialog-boundary {
168
+ display: contents;
169
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../src/dialog/Dialog.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAKH,KAAK,iBAAiB,EACzB,MAAM,uBAAuB,CAAC;AAS/B,MAAM,WAAW,WAAY,SAAQ,IAAI,CACrC,iBAAiB,EACjB,QAAQ,GAAG,aAAa,GAAG,cAAc,GAAG,2BAA2B,CAC1E;IACG,mDAAmD;IACnD,KAAK,EAAE,SAAS,CAAC;IACjB,kDAAkD;IAClD,QAAQ,CAAC,EAAE,SAAS,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,IAAI,KAAK,SAAS,CAAC,CAAC;IAC1D;;;OAGG;IACH,aAAa,CAAC,EAAE,SAAS,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,IAAI,KAAK,SAA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,CAAC,EAAE,SAAS,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,IAAI,KAAK,SAAS,CAAC,CAAC;IAC1D;;;OAGG;IACH,aAAa,CAAC,EAAE,SAAS,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,IAAI,KAAK,SAAS,CAAC,CAAC;IAC/D,gEAAgE;IAChE,MAAM,CAAC,EAAE,SAAS,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,IAAI,KAAK,SAAS,CAAC,CAAC;IACxD;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,+EAA+E;IAC/E,IAAI,CAAC,EAAE,QAAQ,GAAG,aAAa,CAAC;IAChC,sFAAsF;IACtF,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACjC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,EACnB,KAAK,EACL,QAAQ,EACR,aAAa,EACb,MAAM,EACN,aAAoB,EACpB,IAAe,EACf,IAAW,EACX,iBAAyB,EACzB,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,eAAe,EACf,GAAG,KAAK,EACX,EAAE,WAAW,sCAiEb;AAED,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC"}
@@ -3,6 +3,7 @@ import { messages } from "../intl/messages.js";
3
3
  import { usePanneauIntl } from "../intl/usePanneauIntl.js";
4
4
  import { usePortalContainer } from "../root/PanneauRoot.js";
5
5
  import { IconButton } from "../icon-button/IconButton.js";
6
+ import { stopPropagation } from "../utils/events.js";
6
7
  import Dialog_module_default from "./Dialog.module.js";
7
8
  import { c } from "react/compiler-runtime";
8
9
  import { X } from "lucide-react";
@@ -141,10 +142,14 @@ function Dialog$1(t0) {
141
142
  } else t10 = $[31];
142
143
  let t11;
143
144
  if ($[32] !== role || $[33] !== t10 || $[34] !== t9) {
144
- t11 = /* @__PURE__ */ jsx(Dialog, {
145
- role,
146
- className: t9,
147
- children: t10
145
+ t11 = /* @__PURE__ */ jsx("div", {
146
+ className: Dialog_module_default.boundary,
147
+ onSubmit: stopPropagation,
148
+ children: /* @__PURE__ */ jsx(Dialog, {
149
+ role,
150
+ className: t9,
151
+ children: t10
152
+ })
148
153
  });
149
154
  $[32] = role;
150
155
  $[33] = t10;
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.js","names":["X","ReactNode","Dialog","AriaDialog","Heading","Modal","ModalOverlay","ModalOverlayProps","IconButton","messages","usePanneauIntl","usePortalContainer","cx","styles","DialogProps","Pick","title","children","close","headerContent","footer","isDismissable","role","size","fullScreenOnPhone","className","overlayClassName","headerClassName","bodyClassName","footerClassName","t0","$","_c","props","t1","t2","t3","t4","undefined","intl","container","t5","overlay","t6","t7","t8","modal","t9","dialog","t10","t11","header","formatMessage","body","t12","t13","DialogTrigger","Dialog","_c","styles","_Fragment","AriaDialog"],"sources":["../../src/dialog/Dialog.tsx"],"sourcesContent":["import { X } from 'lucide-react';\nimport type { ReactNode } from 'react';\nimport {\n Dialog as AriaDialog,\n Heading,\n Modal,\n ModalOverlay,\n type ModalOverlayProps,\n} from 'react-aria-components';\n\nimport { IconButton } from '../icon-button/IconButton';\nimport { messages } from '../intl/messages';\nimport { usePanneauIntl } from '../intl/usePanneauIntl';\nimport { usePortalContainer } from '../root/PanneauRoot';\nimport { cx } from '../utils/cx';\nimport styles from './Dialog.module.css';\n\nexport interface DialogProps extends Pick<\n ModalOverlayProps,\n 'isOpen' | 'defaultOpen' | 'onOpenChange' | 'isKeyboardDismissDisabled'\n> {\n /** Heading of the dialog, which also labels it. */\n title: ReactNode;\n /** Content, or a function that gets `close()`. */\n children?: ReactNode | ((close: () => void) => ReactNode);\n /**\n * More content in the header, between the title and the close button: a switcher, a few\n * actions. On phones, it goes under the title. A function gets `close()`.\n */\n headerContent?: ReactNode | ((close: () => void) => ReactNode);\n /** Buttons at the bottom, or a function that gets `close()`. */\n footer?: ReactNode | ((close: () => void) => ReactNode);\n /**\n * Closes on a click outside and shows a close button. Defaults to true. Turn it off for dialogs\n * that need an answer.\n */\n isDismissable?: boolean;\n /** `alertdialog` for confirmations and interruptions. Defaults to `dialog`. */\n role?: 'dialog' | 'alertdialog';\n /** Maximum width: `sm`, `md` (the default), `lg`, or `xl` for pickers and editors. */\n size?: 'sm' | 'md' | 'lg' | 'xl';\n /**\n * On phones, takes the whole screen instead of opening as a sheet at the bottom: for dialogs\n * that need all the room they can get, such as pickers.\n */\n fullScreenOnPhone?: boolean;\n className?: string;\n overlayClassName?: string;\n headerClassName?: string;\n bodyClassName?: string;\n footerClassName?: string;\n}\n\n/**\n * A modal dialog. Controlled with `isOpen` and `onOpenChange`, or inside a `DialogTrigger` with\n * its button as the first child. It traps focus, closes with Escape, and returns focus when it\n * closes. On phones, it opens as a sheet at the bottom of the screen, or takes the whole screen with\n * `fullScreenOnPhone`.\n */\nexport function Dialog({\n title,\n children,\n headerContent,\n footer,\n isDismissable = true,\n role = 'dialog',\n size = 'md',\n fullScreenOnPhone = false,\n className,\n overlayClassName,\n headerClassName,\n bodyClassName,\n footerClassName,\n ...props\n}: DialogProps) {\n const intl = usePanneauIntl();\n const container = usePortalContainer();\n if (container === null) {\n return null;\n }\n return (\n <ModalOverlay\n {...props}\n isDismissable={isDismissable}\n className={cx(styles.overlay, overlayClassName)}\n UNSTABLE_portalContainer={container}\n >\n <Modal\n className={cx(\n styles.modal,\n styles[size],\n fullScreenOnPhone && styles.fullScreenOnPhone,\n )}\n >\n <AriaDialog role={role} className={cx('panneau-dialog', styles.dialog, className)}>\n {({ close }) => (\n <>\n <div className={cx(styles.header, headerClassName)}>\n <Heading slot=\"title\" className={styles.title}>\n {title}\n </Heading>\n {headerContent !== undefined && headerContent !== null ? (\n <div className={styles.headerContent}>\n {typeof headerContent === 'function'\n ? headerContent(close)\n : headerContent}\n </div>\n ) : null}\n {isDismissable ? (\n <IconButton\n icon={X}\n size=\"sm\"\n label={intl.formatMessage(messages.close)}\n showTooltip={false}\n onPress={close}\n />\n ) : null}\n </div>\n <div className={cx(styles.body, bodyClassName)}>\n {typeof children === 'function' ? children(close) : children}\n </div>\n {footer !== undefined && footer !== null ? (\n <div className={cx(styles.footer, footerClassName)}>\n {typeof footer === 'function' ? footer(close) : footer}\n </div>\n ) : null}\n </>\n )}\n </AriaDialog>\n </Modal>\n </ModalOverlay>\n );\n}\n\nexport { DialogTrigger } from 'react-aria-components';\n"],"mappings":";;;;;;;;;;;;;;;;;AA2DA,SAAOE,SAAA4B,IAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAA,IAAAJ;CAAA,IAAAX;CAAA,IAAAQ;CAAA,IAAAL;CAAA,IAAAS;CAAA,IAAAF;CAAA,IAAAR;CAAA,IAAAO;CAAA,IAAAO;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAArB;CAAA,IAAAe,EAAA,OAAAD,IAAA;EAAgB,CAAA,CAAAd,OAAAC,UAAAE,eAAAC,QAAAC,eAAAa,IAAAZ,MAAAa,IAAAZ,MAAAa,IAAAZ,mBAAAa,IAAAZ,WAAAC,kBAAAC,iBAAAC,eAAAC,iBAAA,GAAAI,SAAAH;EAeTC,EAAA,KAAAD;EAAAC,EAAA,KAAAH;EAAAG,EAAA,KAAAd;EAAAc,EAAA,KAAAN;EAAAM,EAAA,KAAAX;EAAAW,EAAA,KAAAF;EAAAE,EAAA,KAAAJ;EAAAI,EAAA,KAAAZ;EAAAY,EAAA,KAAAL;EAAAK,EAAA,KAAAE;EAAAF,EAAA,MAAAG;EAAAH,EAAA,MAAAI;EAAAJ,EAAA,MAAA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AZ;EAAAY,EAAA,MAAAQ;EAAAR,EAAA,MAAAV;EAAAU,EAAA,MAAAf;EAAAe,EAAA,MAAAkB;CAAA,OAAAA,MAAAlB,EAAA;CAAA,IAAAmB;CAAA,IAAAnB,EAAA,QAAAT,QAAAS,EAAA,QAAAkB,OAAAlB,EAAA,QAAAgB,IAAA;EAjCLG,MAAA,oBAACW,QAAD;GAAkBvC;GAAiB,WAAAyB;GAC9BE,UAAAA;EADM,CAAA;EAkCElB,EAAA,MAAAT;EAAAS,EAAA,MAAAkB;EAAAlB,EAAA,MAAAgB;EAAAhB,EAAA,MAAAmB;CAAA,OAAAA,MAAAnB,EAAA;CAAA,IAAAuB;CAAA,IAAAvB,EAAA,QAAAmB,OAAAnB,EAAA,QAAAc,IAAA;EAzCjBS,MAAA,oBAAC,OAAD;GACe,WAAAT;GAMXK,UAAAA;EAPE,CAAA;EA0CEnB,EAAA,MAAAmB;EAAAnB,EAAA,MAAAc;EAAAd,EAAA,MAAAuB;CAAA,OAAAA,MAAAvB,EAAA;CAAA,IAAAwB;CAAA,IAAAxB,EAAA,QAAAS,aAAAT,EAAA,QAAAV,iBAAAU,EAAA,QAAAE,SAAAF,EAAA,QAAAuB,OAAAvB,EAAA,QAAAU,IAAA;EAhDZc,MAAA,oBAAC,cAAD;GAAa,GACLtB;GACWZ;GACJ,WAAAoB;GACeD,0BAAAA;GAE1Bc,UAAAA;EANS,CAAA;EAiDEvB,EAAA,MAAAS;EAAAT,EAAA,MAAAV;EAAAU,EAAA,MAAAE;EAAAF,EAAA,MAAAuB;EAAAvB,EAAA,MAAAU;EAAAV,EAAA,MAAAwB;CAAA,OAAAA,MAAAxB,EAAA;CAAA,OAjDfwB;AAiDe"}
1
+ {"version":3,"file":"Dialog.js","names":["X","ReactNode","Dialog","AriaDialog","Heading","Modal","ModalOverlay","ModalOverlayProps","IconButton","messages","usePanneauIntl","usePortalContainer","cx","stopPropagation","styles","DialogProps","Pick","title","children","close","headerContent","footer","isDismissable","role","size","fullScreenOnPhone","className","overlayClassName","headerClassName","bodyClassName","footerClassName","t0","$","_c","props","t1","t2","t3","t4","undefined","intl","container","t5","overlay","t6","t7","t8","modal","t9","dialog","t10","t11","header","formatMessage","body","boundary","t12","t13","DialogTrigger","Dialog","_c","styles","_Fragment","AriaDialog"],"sources":["../../src/dialog/Dialog.tsx"],"sourcesContent":["import { X } from 'lucide-react';\nimport type { ReactNode } from 'react';\nimport {\n Dialog as AriaDialog,\n Heading,\n Modal,\n ModalOverlay,\n type ModalOverlayProps,\n} from 'react-aria-components';\n\nimport { IconButton } from '../icon-button/IconButton';\nimport { messages } from '../intl/messages';\nimport { usePanneauIntl } from '../intl/usePanneauIntl';\nimport { usePortalContainer } from '../root/PanneauRoot';\nimport { cx } from '../utils/cx';\nimport { stopPropagation } from '../utils/events';\nimport styles from './Dialog.module.css';\n\nexport interface DialogProps extends Pick<\n ModalOverlayProps,\n 'isOpen' | 'defaultOpen' | 'onOpenChange' | 'isKeyboardDismissDisabled'\n> {\n /** Heading of the dialog, which also labels it. */\n title: ReactNode;\n /** Content, or a function that gets `close()`. */\n children?: ReactNode | ((close: () => void) => ReactNode);\n /**\n * More content in the header, between the title and the close button: a switcher, a few\n * actions. On phones, it goes under the title. A function gets `close()`.\n */\n headerContent?: ReactNode | ((close: () => void) => ReactNode);\n /** Buttons at the bottom, or a function that gets `close()`. */\n footer?: ReactNode | ((close: () => void) => ReactNode);\n /**\n * Closes on a click outside and shows a close button. Defaults to true. Turn it off for dialogs\n * that need an answer.\n */\n isDismissable?: boolean;\n /** `alertdialog` for confirmations and interruptions. Defaults to `dialog`. */\n role?: 'dialog' | 'alertdialog';\n /** Maximum width: `sm`, `md` (the default), `lg`, or `xl` for pickers and editors. */\n size?: 'sm' | 'md' | 'lg' | 'xl';\n /**\n * On phones, takes the whole screen instead of opening as a sheet at the bottom: for dialogs\n * that need all the room they can get, such as pickers.\n */\n fullScreenOnPhone?: boolean;\n className?: string;\n overlayClassName?: string;\n headerClassName?: string;\n bodyClassName?: string;\n footerClassName?: string;\n}\n\n/**\n * A modal dialog. Controlled with `isOpen` and `onOpenChange`, or inside a `DialogTrigger` with\n * its button as the first child. It traps focus, closes with Escape, and returns focus when it\n * closes. On phones, it opens as a sheet at the bottom of the screen, or takes the whole screen with\n * `fullScreenOnPhone`.\n */\nexport function Dialog({\n title,\n children,\n headerContent,\n footer,\n isDismissable = true,\n role = 'dialog',\n size = 'md',\n fullScreenOnPhone = false,\n className,\n overlayClassName,\n headerClassName,\n bodyClassName,\n footerClassName,\n ...props\n}: DialogProps) {\n const intl = usePanneauIntl();\n const container = usePortalContainer();\n if (container === null) {\n return null;\n }\n return (\n <ModalOverlay\n {...props}\n isDismissable={isDismissable}\n className={cx(styles.overlay, overlayClassName)}\n UNSTABLE_portalContainer={container}\n >\n <Modal\n className={cx(\n styles.modal,\n styles[size],\n fullScreenOnPhone && styles.fullScreenOnPhone,\n )}\n >\n {/* React bubbles events through portals to the components around the dialog: a\n form in the dialog must not submit a form of the page (#146). */}\n <div className={styles.boundary} onSubmit={stopPropagation}>\n <AriaDialog\n role={role}\n className={cx('panneau-dialog', styles.dialog, className)}\n >\n {({ close }) => (\n <>\n <div className={cx(styles.header, headerClassName)}>\n <Heading slot=\"title\" className={styles.title}>\n {title}\n </Heading>\n {headerContent !== undefined && headerContent !== null ? (\n <div className={styles.headerContent}>\n {typeof headerContent === 'function'\n ? headerContent(close)\n : headerContent}\n </div>\n ) : null}\n {isDismissable ? (\n <IconButton\n icon={X}\n size=\"sm\"\n label={intl.formatMessage(messages.close)}\n showTooltip={false}\n onPress={close}\n />\n ) : null}\n </div>\n <div className={cx(styles.body, bodyClassName)}>\n {typeof children === 'function' ? children(close) : children}\n </div>\n {footer !== undefined && footer !== null ? (\n <div className={cx(styles.footer, footerClassName)}>\n {typeof footer === 'function' ? footer(close) : footer}\n </div>\n ) : null}\n </>\n )}\n </AriaDialog>\n </div>\n </Modal>\n </ModalOverlay>\n );\n}\n\nexport { DialogTrigger } from 'react-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AAA,IAAAwB;CAAA,IAAAxB,EAAA,QAAAmB,OAAAnB,EAAA,QAAAc,IAAA;EAhDVU,MAAA,oBAAC,OAAD;GACe,WAAAV;GAQXK,UAAAA;EATE,CAAA;EAiDEnB,EAAA,MAAAmB;EAAAnB,EAAA,MAAAc;EAAAd,EAAA,MAAAwB;CAAA,OAAAA,MAAAxB,EAAA;CAAA,IAAAyB;CAAA,IAAAzB,EAAA,QAAAS,aAAAT,EAAA,QAAAV,iBAAAU,EAAA,QAAAE,SAAAF,EAAA,QAAAwB,OAAAxB,EAAA,QAAAU,IAAA;EAvDZe,MAAA,oBAAC,cAAD;GAAa,GACLvB;GACWZ;GACJ,WAAAoB;GACeD,0BAAAA;GAE1Be,UAAAA;EANS,CAAA;EAwDExB,EAAA,MAAAS;EAAAT,EAAA,MAAAV;EAAAU,EAAA,MAAAE;EAAAF,EAAA,MAAAwB;EAAAxB,EAAA,MAAAU;EAAAV,EAAA,MAAAyB;CAAA,OAAAA,MAAAzB,EAAA;CAAA,OAxDfyB;AAwDe"}
@@ -14,6 +14,7 @@ var title = "panneau-dialog-title";
14
14
  var body = "panneau-dialog-body";
15
15
  var footer = "panneau-dialog-footer";
16
16
  var fullScreenOnPhone = "panneau-dialog-full-screen-on-phone";
17
+ var boundary = "panneau-dialog-boundary";
17
18
  var Dialog_module_default = {
18
19
  overlay,
19
20
  fade,
@@ -28,9 +29,10 @@ var Dialog_module_default = {
28
29
  title,
29
30
  body,
30
31
  footer,
31
- fullScreenOnPhone
32
+ fullScreenOnPhone,
33
+ boundary
32
34
  };
33
35
  //#endregion
34
- export { body, Dialog_module_default as default, dialog, fade, footer, fullScreenOnPhone, header, headerContent, lg, modal, overlay, rise, sm, title, xl };
36
+ export { body, boundary, Dialog_module_default as default, dialog, fade, footer, fullScreenOnPhone, header, headerContent, lg, modal, overlay, rise, sm, title, xl };
35
37
 
36
38
  //# sourceMappingURL=Dialog.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.module.js","names":[],"sources":["../../src/dialog/Dialog.module.css"],"sourcesContent":[".overlay {\n position: fixed;\n inset: 0;\n z-index: var(--panneau-z-overlay);\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 100dvh;\n padding: var(--panneau-space-4);\n background-color: var(--panneau-dialog-backdrop, var(--panneau-color-backdrop));\n}\n\n.overlay[data-entering] {\n animation: fade var(--panneau-duration) ease-out;\n}\n\n.overlay[data-exiting] {\n animation: fade var(--panneau-duration) ease-in reverse;\n}\n\n.modal {\n display: flex;\n width: 100%;\n max-width: var(--panneau-dialog-width, 32rem);\n max-height: calc(100dvh - 2 * var(--panneau-space-4));\n outline: none;\n}\n\n.sm {\n max-width: var(--panneau-dialog-width-sm, 24rem);\n}\n\n.lg {\n max-width: var(--panneau-dialog-width-lg, 48rem);\n}\n\n.xl {\n max-width: var(--panneau-dialog-width-xl, 72rem);\n}\n\n.modal[data-entering] {\n animation: rise var(--panneau-duration) ease-out;\n}\n\n.dialog {\n display: flex;\n flex-direction: column;\n width: 100%;\n max-height: inherit;\n color: var(--panneau-color-text);\n background-color: var(--panneau-dialog-bg, var(--panneau-color-surface-raised));\n border-radius: var(--panneau-dialog-radius, var(--panneau-radius-lg));\n box-shadow: var(--panneau-dialog-shadow, var(--panneau-shadow-lg));\n outline: none;\n}\n\n.header {\n display: flex;\n align-items: flex-start;\n gap: var(--panneau-space-3);\n padding: var(--panneau-space-4) var(--panneau-space-4) 0\n var(--panneau-dialog-padding-x, var(--panneau-space-5));\n}\n\n.headerContent {\n display: flex;\n flex: 0 1 auto;\n align-items: center;\n gap: var(--panneau-space-2);\n min-width: 0;\n}\n\n.title {\n flex: 1 1 12rem;\n min-width: 0;\n padding-top: var(--panneau-space-1);\n font-size: var(--panneau-dialog-title-font-size, var(--panneau-font-size-lg));\n font-weight: var(--panneau-dialog-title-font-weight, var(--panneau-font-weight-bold));\n line-height: var(--panneau-line-height-tight);\n overflow-wrap: anywhere;\n margin: 0;\n}\n\n.body {\n flex: 1 1 auto;\n min-height: 0;\n padding: var(--panneau-space-3) var(--panneau-dialog-padding-x, var(--panneau-space-5))\n var(--panneau-space-4);\n overflow-y: auto;\n}\n\n.footer {\n display: flex;\n flex-wrap: wrap;\n justify-content: flex-end;\n gap: var(--panneau-space-2);\n padding: var(--panneau-space-3) var(--panneau-dialog-padding-x, var(--panneau-space-5))\n var(--panneau-space-4);\n border-top: var(--panneau-border-width) solid var(--panneau-color-border);\n}\n\n/* Phones: the dialog is a sheet at the bottom, with full-width buttons. */\n@media (max-width: 30rem) {\n .overlay {\n align-items: flex-end;\n padding: 0;\n }\n\n .modal,\n .sm,\n .lg,\n .xl {\n max-width: none;\n max-height: calc(100dvh - var(--panneau-space-8));\n }\n\n .dialog {\n border-end-start-radius: 0;\n border-end-end-radius: 0;\n padding-bottom: env(safe-area-inset-bottom);\n }\n\n /* The whole screen, under the notch. */\n .fullScreenOnPhone {\n height: 100dvh;\n max-height: 100dvh;\n }\n\n .fullScreenOnPhone .dialog {\n border-radius: 0;\n padding-top: env(safe-area-inset-top);\n }\n\n /* The header's content goes under the title and the close button. */\n .header {\n flex-wrap: wrap;\n }\n\n .headerContent {\n flex: 1 1 100%;\n order: 1;\n }\n\n .footer {\n flex-direction: column-reverse;\n }\n\n .footer > * {\n width: 100%;\n }\n}\n\n@keyframes fade {\n from {\n opacity: 0;\n }\n}\n\n@keyframes rise {\n from {\n opacity: 0;\n transform: translateY(0.5rem);\n }\n}\n"],"mappings":""}
1
+ {"version":3,"file":"Dialog.module.js","names":[],"sources":["../../src/dialog/Dialog.module.css"],"sourcesContent":[".overlay {\n position: fixed;\n inset: 0;\n z-index: var(--panneau-z-overlay);\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 100dvh;\n padding: var(--panneau-space-4);\n background-color: var(--panneau-dialog-backdrop, var(--panneau-color-backdrop));\n}\n\n.overlay[data-entering] {\n animation: fade var(--panneau-duration) ease-out;\n}\n\n.overlay[data-exiting] {\n animation: fade var(--panneau-duration) ease-in reverse;\n}\n\n.modal {\n display: flex;\n width: 100%;\n max-width: var(--panneau-dialog-width, 32rem);\n max-height: calc(100dvh - 2 * var(--panneau-space-4));\n outline: none;\n}\n\n.sm {\n max-width: var(--panneau-dialog-width-sm, 24rem);\n}\n\n.lg {\n max-width: var(--panneau-dialog-width-lg, 48rem);\n}\n\n.xl {\n max-width: var(--panneau-dialog-width-xl, 72rem);\n}\n\n.modal[data-entering] {\n animation: rise var(--panneau-duration) ease-out;\n}\n\n.dialog {\n display: flex;\n flex-direction: column;\n width: 100%;\n max-height: inherit;\n color: var(--panneau-color-text);\n background-color: var(--panneau-dialog-bg, var(--panneau-color-surface-raised));\n border-radius: var(--panneau-dialog-radius, var(--panneau-radius-lg));\n box-shadow: var(--panneau-dialog-shadow, var(--panneau-shadow-lg));\n outline: none;\n}\n\n.header {\n display: flex;\n align-items: flex-start;\n gap: var(--panneau-space-3);\n padding: var(--panneau-space-4) var(--panneau-space-4) 0\n var(--panneau-dialog-padding-x, var(--panneau-space-5));\n}\n\n.headerContent {\n display: flex;\n flex: 0 1 auto;\n align-items: center;\n gap: var(--panneau-space-2);\n min-width: 0;\n}\n\n.title {\n flex: 1 1 12rem;\n min-width: 0;\n padding-top: var(--panneau-space-1);\n font-size: var(--panneau-dialog-title-font-size, var(--panneau-font-size-lg));\n font-weight: var(--panneau-dialog-title-font-weight, var(--panneau-font-weight-bold));\n line-height: var(--panneau-line-height-tight);\n overflow-wrap: anywhere;\n margin: 0;\n}\n\n.body {\n flex: 1 1 auto;\n min-height: 0;\n padding: var(--panneau-space-3) var(--panneau-dialog-padding-x, var(--panneau-space-5))\n var(--panneau-space-4);\n overflow-y: auto;\n}\n\n.footer {\n display: flex;\n flex-wrap: wrap;\n justify-content: flex-end;\n gap: var(--panneau-space-2);\n padding: var(--panneau-space-3) var(--panneau-dialog-padding-x, var(--panneau-space-5))\n var(--panneau-space-4);\n border-top: var(--panneau-border-width) solid var(--panneau-color-border);\n}\n\n/* Phones: the dialog is a sheet at the bottom, with full-width buttons. */\n@media (max-width: 30rem) {\n .overlay {\n align-items: flex-end;\n padding: 0;\n }\n\n .modal,\n .sm,\n .lg,\n .xl {\n max-width: none;\n max-height: calc(100dvh - var(--panneau-space-8));\n }\n\n .dialog {\n border-end-start-radius: 0;\n border-end-end-radius: 0;\n padding-bottom: env(safe-area-inset-bottom);\n }\n\n /* The whole screen, under the notch. */\n .fullScreenOnPhone {\n height: 100dvh;\n max-height: 100dvh;\n }\n\n .fullScreenOnPhone .dialog {\n border-radius: 0;\n padding-top: env(safe-area-inset-top);\n }\n\n /* The header's content goes under the title and the close button. */\n .header {\n flex-wrap: wrap;\n }\n\n .headerContent {\n flex: 1 1 100%;\n order: 1;\n }\n\n .footer {\n flex-direction: column-reverse;\n }\n\n .footer > * {\n width: 100%;\n }\n}\n\n@keyframes fade {\n from {\n opacity: 0;\n }\n}\n\n@keyframes rise {\n from {\n opacity: 0;\n transform: translateY(0.5rem);\n }\n}\n\n/* Stops the events that React bubbles out of the overlay, without a box of its own. */\n.boundary {\n display: contents;\n}\n"],"mappings":""}
@@ -1,3 +1,3 @@
1
1
  /** Tokens of Dialog. */
2
- export declare const dialogTokens: import("..").ComponentTokens<"dialog", "panneau-dialog-width" | "panneau-dialog-radius" | "panneau-dialog-padding-x" | "panneau-dialog-title-font-weight" | "panneau-dialog-bg" | "panneau-dialog-shadow" | "panneau-dialog-title-font-size" | "panneau-dialog-width-sm" | "panneau-dialog-width-lg" | "panneau-dialog-width-xl" | "panneau-dialog-backdrop">;
2
+ export declare const dialogTokens: import("../index.js").ComponentTokens<"dialog", "panneau-dialog-width" | "panneau-dialog-radius" | "panneau-dialog-padding-x" | "panneau-dialog-title-font-weight" | "panneau-dialog-bg" | "panneau-dialog-shadow" | "panneau-dialog-title-font-size" | "panneau-dialog-width-sm" | "panneau-dialog-width-lg" | "panneau-dialog-width-xl" | "panneau-dialog-backdrop">;
3
3
  //# sourceMappingURL=tokens.d.ts.map
@@ -1,3 +1,3 @@
1
1
  /** Tokens of Disclosure. */
2
- export declare const disclosureTokens: import("..").ComponentTokens<"disclosure", "panneau-disclosure-gap" | "panneau-disclosure-title-font-weight" | "panneau-disclosure-title-font-size">;
2
+ export declare const disclosureTokens: import("../index.js").ComponentTokens<"disclosure", "panneau-disclosure-gap" | "panneau-disclosure-title-font-weight" | "panneau-disclosure-title-font-size">;
3
3
  //# sourceMappingURL=tokens.d.ts.map
@@ -1,3 +1,3 @@
1
1
  /** Tokens of Divider. */
2
- export declare const dividerTokens: import("..").ComponentTokens<"divider", "panneau-divider-color" | "panneau-divider-width">;
2
+ export declare const dividerTokens: import("../index.js").ComponentTokens<"divider", "panneau-divider-color" | "panneau-divider-width">;
3
3
  //# sourceMappingURL=tokens.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { type ReactNode } from 'react';
2
- import styles from './Field.module.css';
2
+ declare const styles: Readonly<Record<string, string>>;
3
3
  /** Props that every labelled control of `@panneau/ui` accepts. */
4
4
  export interface FieldChromeProps {
5
5
  /** Visible label. Without one, pass `aria-label`. */
@@ -1,3 +1,3 @@
1
1
  /** Tokens of the input box of text inputs, text areas, selects, combo boxes, number inputs, date pickers and time inputs. */
2
- export declare const inputTokens: import("..").ComponentTokens<"input", "panneau-input-radius" | "panneau-input-padding-x" | "panneau-input-border-width" | "panneau-input-bg" | "panneau-input-border-color" | "panneau-input-border-color-hover">;
2
+ export declare const inputTokens: import("../index.js").ComponentTokens<"input", "panneau-input-radius" | "panneau-input-padding-x" | "panneau-input-border-width" | "panneau-input-bg" | "panneau-input-border-color" | "panneau-input-border-color-hover">;
3
3
  //# sourceMappingURL=inputTokens.d.ts.map
@@ -1,3 +1,3 @@
1
1
  /** Tokens of the label, description and errors around inputs. */
2
- export declare const fieldTokens: import("..").ComponentTokens<"field", "panneau-field-gap" | "panneau-field-label-font-size" | "panneau-field-label-font-weight">;
2
+ export declare const fieldTokens: import("../index.js").ComponentTokens<"field", "panneau-field-gap" | "panneau-field-label-font-size" | "panneau-field-label-font-weight">;
3
3
  //# sourceMappingURL=tokens.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import type { HTMLAttributes } from 'react';
2
- import { type Responsive, type Space } from '../layout/responsive';
2
+ import { type Responsive, type Space } from '../layout/responsive.js';
3
3
  export interface GridProps extends HTMLAttributes<HTMLElement> {
4
4
  /** Element to render. Defaults to `div`. */
5
5
  as?: 'div' | 'section' | 'ul' | 'ol' | 'dl';
@@ -1,3 +1,3 @@
1
1
  /** Tokens of Grid. */
2
- export declare const gridTokens: import("..").ComponentTokens<"grid", "panneau-grid-gap">;
2
+ export declare const gridTokens: import("../index.js").ComponentTokens<"grid", "panneau-grid-gap">;
3
3
  //# sourceMappingURL=tokens.d.ts.map
@@ -2,5 +2,5 @@
2
2
  * Tokens of Heading, like Bootstrap's `$headings-*` and `$display-font-sizes`. `Prose` applies
3
3
  * them to the headings of rich content too.
4
4
  */
5
- export declare const headingTokens: import("..").ComponentTokens<"heading", "panneau-heading-color" | "panneau-heading-font-family" | "panneau-heading-display-font-family" | "panneau-heading-1-font-size" | "panneau-heading-1-font-weight" | "panneau-heading-1-line-height" | "panneau-heading-1-letter-spacing" | "panneau-heading-2-font-size" | "panneau-heading-2-font-weight" | "panneau-heading-2-line-height" | "panneau-heading-2-letter-spacing" | "panneau-heading-3-font-size" | "panneau-heading-3-font-weight" | "panneau-heading-3-line-height" | "panneau-heading-3-letter-spacing" | "panneau-heading-4-font-size" | "panneau-heading-4-font-weight" | "panneau-heading-4-line-height" | "panneau-heading-4-letter-spacing" | "panneau-heading-display-1-font-size" | "panneau-heading-display-1-font-weight" | "panneau-heading-display-1-line-height" | "panneau-heading-display-1-letter-spacing" | "panneau-heading-display-2-font-size" | "panneau-heading-display-2-font-weight" | "panneau-heading-display-2-line-height" | "panneau-heading-display-2-letter-spacing">;
5
+ export declare const headingTokens: import("../index.js").ComponentTokens<"heading", "panneau-heading-color" | "panneau-heading-font-family" | "panneau-heading-display-font-family" | "panneau-heading-1-font-size" | "panneau-heading-1-font-weight" | "panneau-heading-1-line-height" | "panneau-heading-1-letter-spacing" | "panneau-heading-2-font-size" | "panneau-heading-2-font-weight" | "panneau-heading-2-line-height" | "panneau-heading-2-letter-spacing" | "panneau-heading-3-font-size" | "panneau-heading-3-font-weight" | "panneau-heading-3-line-height" | "panneau-heading-3-letter-spacing" | "panneau-heading-4-font-size" | "panneau-heading-4-font-weight" | "panneau-heading-4-line-height" | "panneau-heading-4-letter-spacing" | "panneau-heading-display-1-font-size" | "panneau-heading-display-1-font-weight" | "panneau-heading-display-1-line-height" | "panneau-heading-display-1-letter-spacing" | "panneau-heading-display-2-font-size" | "panneau-heading-display-2-font-weight" | "panneau-heading-display-2-line-height" | "panneau-heading-display-2-letter-spacing">;
6
6
  //# sourceMappingURL=tokens.d.ts.map
@@ -1,4 +1,4 @@
1
- import type { NamedIconLoader } from './namedIcons';
1
+ import type { NamedIconLoader } from './namedIcons.js';
2
2
  /**
3
3
  * Loads any Lucide icon by its name (the names of lucide.dev/icons). Each icon is its own chunk,
4
4
  * and so is the list of names, loaded the first time an icon is named. Bundlers emit a chunk per
@@ -1,4 +1,4 @@
1
- import type { IconComponent } from './Icon';
1
+ import type { IconComponent } from './Icon.js';
2
2
  /**
3
3
  * Loads an icon component from its name, as definitions name icons (`"icon": "send"`), or
4
4
  * resolves with `null` for a name it doesn't know. `lucideIconLoader` of `@panneau/ui/named-icons`
@@ -1,6 +1,6 @@
1
1
  import type { CSSProperties } from 'react';
2
- import { type ButtonProps } from '../button/Button';
3
- import type { IconComponent } from '../icon/Icon';
2
+ import { type ButtonProps } from '../button/Button.js';
3
+ import type { IconComponent } from '../icon/Icon.js';
4
4
  export interface IconButtonProps extends Omit<ButtonProps, 'icon' | 'iconEnd' | 'children' | 'fullWidth' | 'aria-label'> {
5
5
  icon: IconComponent;
6
6
  /** Accessible label, also shown as a tooltip. */
package/dist/index.d.ts CHANGED
@@ -1,62 +1,62 @@
1
- export { Alert, type AlertAppearance, type AlertProps, type AlertTone, type AlertVariants, } from './alert/Alert';
2
- export { Badge, type BadgeAppearance, type BadgeProps, type BadgeTone, type BadgeVariants, } from './badge/Badge';
3
- export { Button, type ButtonAppearance, type ButtonProps, type ButtonVariant, type ButtonVariants, } from './button/Button';
4
- export { Card, type CardProps } from './card/Card';
5
- export { CommandPalette, type CommandPaletteProps } from './command-palette/CommandPalette';
6
- export { type CommandPaletteGroup, type CommandPaletteItem, matchCommands, normalizeSearch, } from './command-palette/match';
7
- export { isApplePlatform, useCommandShortcut } from './command-palette/useCommandShortcut';
8
- export { Container, type ContainerProps } from './container/Container';
9
- export { Divider, type DividerProps } from './divider/Divider';
10
- export { Grid, GridItem, type GridItemProps, type GridProps } from './grid/Grid';
11
- export { Heading, type HeadingLevel, type HeadingProps, type HeadingSize } from './heading/Heading';
12
- export { Checkbox, type CheckboxProps } from './checkbox/Checkbox';
13
- export { type ChoiceChromeProps } from './checkbox/ChoiceChrome';
14
- export { ComboBox, type ComboBoxItem, type ComboBoxProps } from './combo-box/ComboBox';
15
- export { DatePicker, type DatePickerProps } from './date-picker/DatePicker';
16
- export { Dialog, type DialogProps, DialogTrigger } from './dialog/Dialog';
17
- export { Disclosure, type DisclosureProps } from './disclosure/Disclosure';
18
- export { type FieldChromeProps } from './field/FieldParts';
19
- export { Fieldset, type FieldsetProps } from './field/Fieldset';
20
- export { Icon, type IconComponent, type IconProps, type IconSize } from './icon/Icon';
21
- export { type NamedIconLoader, getNamedIcon, loadNamedIcon } from './icon/namedIcons';
22
- export { IconButton, type IconButtonProps } from './icon-button/IconButton';
23
- export { usePanneauIntl } from './intl/usePanneauIntl';
24
- export { Menu, MenuItem, type MenuItemProps, type MenuProps, MenuSection, type MenuSectionProps, MenuSeparator, MenuTrigger, } from './menu/Menu';
25
- export { NumberInput, type NumberInputProps } from './number-input/NumberInput';
26
- export { Slider, type SliderProps } from './slider/Slider';
27
- export { type TagSuggestion, TagsInput, type TagsInputProps } from './tags-input/TagsInput';
28
- export { PillTrigger, type PillTriggerProps } from './pill-trigger/PillTrigger';
29
- export { Popover, type PopoverProps, PopoverTrigger } from './popover/Popover';
30
- export { RadioGroup, type RadioGroupAppearance, type RadioGroupOption, type RadioGroupProps, } from './radio-group/RadioGroup';
31
- export { PanneauRoot, type PanneauRootProps, usePortalContainer } from './root/PanneauRoot';
32
- export { ThemeScope, type ThemeScopeProps } from './root/ThemeScope';
33
- export { SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, } from './segmented-control/SegmentedControl';
34
- export { type MultipleSelectProps, type OptionValue, Select, type SelectBaseProps, type SelectOption, type SelectProps, type SingleSelectProps, } from './select/Select';
35
- export { Inline, type InlineProps } from './inline/Inline';
36
- export { BREAKPOINTS, type Breakpoint, type Justification, type Responsive, type Space, } from './layout/responsive';
37
- export { Prose, type ProseProps } from './prose/Prose';
38
- export { LoadingRegion, type LoadingRegionProps } from './skeleton/LoadingRegion';
39
- export { Skeleton, type SkeletonProps } from './skeleton/Skeleton';
40
- export { Spinner, type SpinnerProps } from './spinner/Spinner';
41
- export { Stack, type StackProps } from './stack/Stack';
42
- export { Switch, type SwitchProps } from './switch/Switch';
43
- export { Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Tabs, type TabsProps, } from './tabs/Tabs';
44
- export { Text, type TextFamily, type TextProps, type TextSize } from './text/Text';
45
- export { TextArea, type TextAreaProps } from './text-area/TextArea';
46
- export { TextInput, type TextInputProps } from './text-input/TextInput';
47
- export { bootstrapTheme, bootstrapTone } from './theme/bootstrap';
48
- export { CHART_CATEGORICAL_COUNT, CHART_SEQUENTIAL_COUNT, chartColors } from './theme/chartColors';
49
- export { type ThemeContrastCheck, type ThemeReport, checkTheme } from './theme/checkTheme';
50
- export { type ColorDifferenceCheck, type ColorVisionDeficiency, checkColorDifferences, } from './theme/colorVision';
51
- export { type Rgb } from './theme/color';
52
- export { type ComponentTokens, defineComponentTokens } from './theme/componentTokens';
53
- export { type ComponentTokenName, componentTokens } from './theme/components';
54
- export { type PaletteTokenName, type PanneauTokens, type ThemeDefinition, type ThemeTokens, type TokenName, defineTheme, findUnknownTokens, mergeThemes, } from './theme/defineTheme';
55
- export { SEMANTIC_TOKENS, type SemanticTokenName } from './theme/semanticTokens';
56
- export { type ThemeFont, type ThemeFontFace, type ThemeFontStylesheet } from './theme/fonts';
57
- export { type ColorScheme, type Density, type Theme } from './theme/theme';
58
- export { BUILT_IN_TONES, type PanneauTones, type Tone, type ToneInput, type ToneSurfaces, type ToneValues, deriveTone, toneClassName, } from './theme/tones';
59
- export { TimeInput, type TimeInputProps } from './time-input/TimeInput';
60
- export { type ToastContent, type ToastOptions, type ToastTone, type Toasts, useToast, } from './toast/Toast';
61
- export { Tooltip, type TooltipProps } from './tooltip/Tooltip';
1
+ export { Alert, type AlertAppearance, type AlertProps, type AlertTone, type AlertVariants, } from './alert/Alert.js';
2
+ export { Badge, type BadgeAppearance, type BadgeProps, type BadgeTone, type BadgeVariants, } from './badge/Badge.js';
3
+ export { Button, type ButtonAppearance, type ButtonProps, type ButtonVariant, type ButtonVariants, } from './button/Button.js';
4
+ export { Card, type CardProps } from './card/Card.js';
5
+ export { CommandPalette, type CommandPaletteProps } from './command-palette/CommandPalette.js';
6
+ export { type CommandPaletteGroup, type CommandPaletteItem, matchCommands, normalizeSearch, } from './command-palette/match.js';
7
+ export { isApplePlatform, useCommandShortcut } from './command-palette/useCommandShortcut.js';
8
+ export { Container, type ContainerProps } from './container/Container.js';
9
+ export { Divider, type DividerProps } from './divider/Divider.js';
10
+ export { Grid, GridItem, type GridItemProps, type GridProps } from './grid/Grid.js';
11
+ export { Heading, type HeadingLevel, type HeadingProps, type HeadingSize } from './heading/Heading.js';
12
+ export { Checkbox, type CheckboxProps } from './checkbox/Checkbox.js';
13
+ export { type ChoiceChromeProps } from './checkbox/ChoiceChrome.js';
14
+ export { ComboBox, type ComboBoxItem, type ComboBoxProps } from './combo-box/ComboBox.js';
15
+ export { DatePicker, type DatePickerProps } from './date-picker/DatePicker.js';
16
+ export { Dialog, type DialogProps, DialogTrigger } from './dialog/Dialog.js';
17
+ export { Disclosure, type DisclosureProps } from './disclosure/Disclosure.js';
18
+ export { type FieldChromeProps } from './field/FieldParts.js';
19
+ export { Fieldset, type FieldsetProps } from './field/Fieldset.js';
20
+ export { Icon, type IconComponent, type IconProps, type IconSize } from './icon/Icon.js';
21
+ export { type NamedIconLoader, getNamedIcon, loadNamedIcon } from './icon/namedIcons.js';
22
+ export { IconButton, type IconButtonProps } from './icon-button/IconButton.js';
23
+ export { usePanneauIntl } from './intl/usePanneauIntl.js';
24
+ export { Menu, MenuItem, type MenuItemProps, type MenuProps, MenuSection, type MenuSectionProps, MenuSeparator, MenuTrigger, } from './menu/Menu.js';
25
+ export { NumberInput, type NumberInputProps } from './number-input/NumberInput.js';
26
+ export { Slider, type SliderProps } from './slider/Slider.js';
27
+ export { type TagSuggestion, TagsInput, type TagsInputProps } from './tags-input/TagsInput.js';
28
+ export { PillTrigger, type PillTriggerProps } from './pill-trigger/PillTrigger.js';
29
+ export { Popover, type PopoverProps, PopoverTrigger } from './popover/Popover.js';
30
+ export { RadioGroup, type RadioGroupAppearance, type RadioGroupOption, type RadioGroupProps, } from './radio-group/RadioGroup.js';
31
+ export { PanneauRoot, type PanneauRootProps, usePortalContainer } from './root/PanneauRoot.js';
32
+ export { ThemeScope, type ThemeScopeProps } from './root/ThemeScope.js';
33
+ export { SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, } from './segmented-control/SegmentedControl.js';
34
+ export { type MultipleSelectProps, type OptionValue, Select, type SelectBaseProps, type SelectOption, type SelectProps, type SingleSelectProps, } from './select/Select.js';
35
+ export { Inline, type InlineProps } from './inline/Inline.js';
36
+ export { BREAKPOINTS, type Breakpoint, type Justification, type Responsive, type Space, } from './layout/responsive.js';
37
+ export { Prose, type ProseProps } from './prose/Prose.js';
38
+ export { LoadingRegion, type LoadingRegionProps } from './skeleton/LoadingRegion.js';
39
+ export { Skeleton, type SkeletonProps } from './skeleton/Skeleton.js';
40
+ export { Spinner, type SpinnerProps } from './spinner/Spinner.js';
41
+ export { Stack, type StackProps } from './stack/Stack.js';
42
+ export { Switch, type SwitchProps } from './switch/Switch.js';
43
+ export { Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Tabs, type TabsProps, } from './tabs/Tabs.js';
44
+ export { Text, type TextFamily, type TextProps, type TextSize } from './text/Text.js';
45
+ export { TextArea, type TextAreaProps } from './text-area/TextArea.js';
46
+ export { TextInput, type TextInputProps } from './text-input/TextInput.js';
47
+ export { bootstrapTheme, bootstrapTone } from './theme/bootstrap.js';
48
+ export { CHART_CATEGORICAL_COUNT, CHART_SEQUENTIAL_COUNT, chartColors } from './theme/chartColors.js';
49
+ export { type ThemeContrastCheck, type ThemeReport, checkTheme } from './theme/checkTheme.js';
50
+ export { type ColorDifferenceCheck, type ColorVisionDeficiency, checkColorDifferences, } from './theme/colorVision.js';
51
+ export { type Rgb } from './theme/color.js';
52
+ export { type ComponentTokens, defineComponentTokens } from './theme/componentTokens.js';
53
+ export { type ComponentTokenName, componentTokens } from './theme/components.js';
54
+ export { type PaletteTokenName, type PanneauTokens, type ThemeDefinition, type ThemeTokens, type TokenName, defineTheme, findUnknownTokens, mergeThemes, } from './theme/defineTheme.js';
55
+ export { SEMANTIC_TOKENS, type SemanticTokenName } from './theme/semanticTokens.js';
56
+ export { type ThemeFont, type ThemeFontFace, type ThemeFontStylesheet } from './theme/fonts.js';
57
+ export { type ColorScheme, type Density, type Theme } from './theme/theme.js';
58
+ export { BUILT_IN_TONES, type PanneauTones, type Tone, type ToneInput, type ToneSurfaces, type ToneValues, deriveTone, toneClassName, } from './theme/tones.js';
59
+ export { TimeInput, type TimeInputProps } from './time-input/TimeInput.js';
60
+ export { type ToastContent, type ToastOptions, type ToastTone, type Toasts, useToast, } from './toast/Toast.js';
61
+ export { Tooltip, type TooltipProps } from './tooltip/Tooltip.js';
62
62
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import type { HTMLAttributes } from 'react';
2
- import { type Justification, type Responsive, type Space } from '../layout/responsive';
2
+ import { type Justification, type Responsive, type Space } from '../layout/responsive.js';
3
3
  export interface InlineProps extends HTMLAttributes<HTMLElement> {
4
4
  /** Element to render. Defaults to `div`. */
5
5
  as?: 'div' | 'section' | 'header' | 'footer' | 'nav' | 'ul' | 'ol' | 'span';
@@ -1,3 +1,3 @@
1
1
  /** Tokens of Inline. */
2
- export declare const inlineTokens: import("..").ComponentTokens<"inline", "panneau-inline-gap">;
2
+ export declare const inlineTokens: import("../index.js").ComponentTokens<"inline", "panneau-inline-gap">;
3
3
  //# sourceMappingURL=tokens.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { type ReactNode } from 'react';
2
2
  import { type MenuItemProps as AriaMenuItemProps, type MenuProps as AriaMenuProps, type MenuSectionProps as AriaMenuSectionProps } from 'react-aria-components';
3
- import { type IconComponent } from '../icon/Icon';
3
+ import { type IconComponent } from '../icon/Icon.js';
4
4
  export interface MenuProps<T extends object> extends Omit<AriaMenuProps<T>, 'className' | 'style'> {
5
5
  className?: string;
6
6
  popoverClassName?: string;
@@ -1,3 +1,3 @@
1
1
  /** Tokens of Menu: its sections, its footer, and the media and selection of its items. */
2
- export declare const menuTokens: import("..").ComponentTokens<"menu", "panneau-menu-header-font-size" | "panneau-menu-header-font-weight" | "panneau-menu-header-color" | "panneau-menu-header-text-transform" | "panneau-menu-header-letter-spacing" | "panneau-menu-footer-font-size" | "panneau-menu-footer-color" | "panneau-menu-media-size" | "panneau-menu-media-size-described" | "panneau-menu-media-radius" | "panneau-menu-item-bg-selected">;
2
+ export declare const menuTokens: import("../index.js").ComponentTokens<"menu", "panneau-menu-header-font-size" | "panneau-menu-header-font-weight" | "panneau-menu-header-color" | "panneau-menu-header-text-transform" | "panneau-menu-header-letter-spacing" | "panneau-menu-footer-font-size" | "panneau-menu-footer-color" | "panneau-menu-media-size" | "panneau-menu-media-size-described" | "panneau-menu-media-radius" | "panneau-menu-item-bg-selected">;
3
3
  //# sourceMappingURL=tokens.d.ts.map
@@ -1,2 +1,2 @@
1
- export { lucideIconLoader } from '../icon/lucideIconLoader';
1
+ export { lucideIconLoader } from '../icon/lucideIconLoader.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import type { ReactNode } from 'react';
2
2
  import { type NumberFieldProps as AriaNumberFieldProps } from 'react-aria-components';
3
- import { type FieldChromeProps } from '../field/FieldParts';
3
+ import { type FieldChromeProps } from '../field/FieldParts.js';
4
4
  export interface NumberInputProps extends Omit<AriaNumberFieldProps, 'className' | 'style' | 'children' | 'isInvalid' | 'validate' | 'value' | 'defaultValue' | 'onChange'>, FieldChromeProps {
5
5
  /** The number, or `null` when empty. */
6
6
  value?: number | null;
@@ -1,3 +1,3 @@
1
1
  /** Tokens of NumberInput. */
2
- export declare const numberInputTokens: import("..").ComponentTokens<"number-input", "panneau-number-input-stepper-width">;
2
+ export declare const numberInputTokens: import("../index.js").ComponentTokens<"number-input", "panneau-number-input-stepper-width">;
3
3
  //# sourceMappingURL=tokens.d.ts.map