@slotted/react 0.1.0-beta.36 → 0.1.0-beta.37
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/calendar-D8FhdXWc.js +537 -0
- package/dist/calendar.js +1 -1
- package/dist/{cascader-DqrFX3Ob.js → cascader-CivJ76VR.js} +1 -1
- package/dist/cascader.js +1 -1
- package/dist/{chart-BaNN4AQj.js → chart-DwXqQZjQ.js} +234 -233
- package/dist/chart.js +1 -1
- package/dist/{checkbox-ruvmi9cK.js → checkbox-D3E4gzMe.js} +3 -3
- package/dist/{checkbox-group-Ben6o9Ze.js → checkbox-group-Dg5YN3fx.js} +2 -2
- package/dist/checkbox-group.js +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{collapsible-D97FQrzs.js → collapsible-CT4_3aXm.js} +1 -0
- package/dist/collapsible.js +1 -1
- package/dist/{color-picker-DhKW6Uyc.js → color-picker-CaLcV-63.js} +2 -2
- package/dist/color-picker.js +1 -1
- package/dist/{column-manager-D2PXs80l.js → column-manager-BBGczWQe.js} +2 -2
- package/dist/column-manager.js +1 -1
- package/dist/{combobox-BIi7grOR.js → combobox-C2qlkTw6.js} +1 -1
- package/dist/combobox.js +1 -1
- package/dist/{currency-field-CAO2ZolW.js → currency-field-BO2P6FPd.js} +1 -1
- package/dist/currency-field.js +1 -1
- package/dist/{data-grid-DOMm7-ew.js → data-grid-C5YmAqdN.js} +15 -15
- package/dist/data-grid.js +1 -1
- package/dist/{data-list-DgXGmRQx.js → data-list-DovwQEMt.js} +1 -1
- package/dist/data-list.js +1 -1
- package/dist/{date-field-BEdt1xDF.js → date-field-CxubN_3u.js} +1 -1
- package/dist/date-field.js +1 -1
- package/dist/{date-picker-CQDvE1nB.js → date-picker-DQbj3FON.js} +3 -3
- package/dist/date-picker.js +1 -1
- package/dist/{date-range-picker-B28tj1yV.js → date-range-picker-B16hMhJf.js} +3 -3
- package/dist/date-range-picker.js +1 -1
- package/dist/{datetime-field-2tsqzWVH.js → datetime-field-GMIqBuTa.js} +1 -1
- package/dist/datetime-field.js +1 -1
- package/dist/{datetime-picker-CXLvcFxV.js → datetime-picker-C9pxH7Xf.js} +3 -3
- package/dist/datetime-picker.js +1 -1
- package/dist/{datetime-range-picker-BAXiRa2S.js → datetime-range-picker-Cmn7o_Qv.js} +3 -3
- package/dist/datetime-range-picker.js +1 -1
- package/dist/{detail-panel-DEZewVVV.js → detail-panel-DLgRhEFO.js} +3 -3
- package/dist/detail-panel.js +1 -1
- package/dist/docs/button.json +1 -1
- package/dist/docs/button.md +1 -1
- package/dist/docs/calendar.json +22 -0
- package/dist/docs/calendar.md +4 -1
- package/dist/docs/chart.json +1 -1
- package/dist/docs/chart.md +1 -1
- package/dist/docs/collapsible.json +2 -1
- package/dist/docs/collapsible.md +1 -1
- package/dist/docs/floating-panel.json +22 -4
- package/dist/docs/floating-panel.md +6 -4
- package/dist/docs/message.json +7 -0
- package/dist/docs/message.md +1 -0
- package/dist/docs/page.json +7 -0
- package/dist/docs/page.md +1 -0
- package/dist/docs/section.json +10 -2
- package/dist/docs/section.md +2 -1
- package/dist/docs/skills/theme-app/SKILL.md +1 -1
- package/dist/docs/table.json +16 -4
- package/dist/docs/table.md +5 -3
- package/dist/{entity-picker-D1MwJyvr.js → entity-picker-CwfA1wr_.js} +2 -2
- package/dist/entity-picker.js +1 -1
- package/dist/{event-calendar-CM302ec0.js → event-calendar-biSTH0yK.js} +1 -1
- package/dist/event-calendar.js +1 -1
- package/dist/{field-group-DQI8pfDT.js → field-group-7zV68b3d.js} +1 -1
- package/dist/field-group.js +1 -1
- package/dist/{field-BjF0c0U9.js → field-vOVzvq5t.js} +27 -27
- package/dist/field.js +1 -1
- package/dist/{filter-bar-CDEpYvq4.js → filter-bar-Cfwk-3Eu.js} +8 -8
- package/dist/filter-bar.js +1 -1
- package/dist/floating-panel-Dp6S4GgU.js +163 -0
- package/dist/floating-panel.js +1 -1
- package/dist/import-export-center-BH1bNw_E.js +867 -0
- package/dist/import-export-center.js +1 -1
- package/dist/index.js +94 -94
- package/dist/{listbox-BGJ2fEDO.js → listbox-CWU3DiEt.js} +1 -1
- package/dist/listbox.js +1 -1
- package/dist/{markdown-CfPMPahy.js → markdown-x59MHBAa.js} +1 -1
- package/dist/markdown.js +1 -1
- package/dist/{message-j4-apGnW.js → message-CdcUyh3g.js} +6 -5
- package/dist/message.js +1 -1
- package/dist/{multi-select-DSSDlWVZ.js → multi-select-DEd_92BC.js} +1 -1
- package/dist/multi-select.js +1 -1
- package/dist/{number-field-DzOcs9uG.js → number-field-BJKoidAE.js} +1 -1
- package/dist/number-field.js +1 -1
- package/dist/{otp-input-ult9fNdj.js → otp-input-Czz9Z6dQ.js} +1 -1
- package/dist/otp-input.js +1 -1
- package/dist/{prompt-composer-CUuAuR4h.js → prompt-composer-Lsfcz_i9.js} +1 -1
- package/dist/prompt-composer.js +1 -1
- package/dist/{radio-group-doL7tde1.js → radio-group-_ZRUgcI5.js} +2 -2
- package/dist/radio-group.js +1 -1
- package/dist/{rating-BtrkTAi0.js → rating-C6AkIIUi.js} +1 -1
- package/dist/rating.js +1 -1
- package/dist/{saved-views-fg5PoMgv.js → saved-views-BvRFgSdg.js} +2 -2
- package/dist/saved-views.js +1 -1
- package/dist/{section-OdQoVBnl.js → section-CQPQf6RU.js} +15 -2
- package/dist/section.js +2 -2
- package/dist/{segmented-control-CuwEdrZS.js → segmented-control-D52GeOlS.js} +2 -2
- package/dist/segmented-control.js +1 -1
- package/dist/{select-C85IKiKk.js → select-BkUuIVBK.js} +1 -1
- package/dist/select.js +1 -1
- package/dist/{slider-yhqotDtS.js → slider-DQqQ0skr.js} +1 -1
- package/dist/slider.js +1 -1
- package/dist/styles/app-shell.css +1 -1
- package/dist/styles/button.css +1 -1
- package/dist/styles/calendar.css +3 -1
- package/dist/styles/cascader.css +3 -3
- package/dist/styles/chart.css +2 -2
- package/dist/styles/checkbox-group.css +2 -2
- package/dist/styles/checkbox.css +2 -2
- package/dist/styles/collapsible.css +1 -1
- package/dist/styles/color-picker.css +2 -2
- package/dist/styles/column-manager.css +3 -3
- package/dist/styles/combobox.css +2 -2
- package/dist/styles/currency-field.css +2 -2
- package/dist/styles/dashboard-grid.css +2 -2
- package/dist/styles/data-grid.css +2 -2
- package/dist/styles/data-list.css +3 -3
- package/dist/styles/date-field.css +2 -2
- package/dist/styles/date-picker.css +3 -3
- package/dist/styles/date-range-picker.css +3 -3
- package/dist/styles/datetime-field.css +2 -2
- package/dist/styles/datetime-picker.css +3 -3
- package/dist/styles/datetime-range-picker.css +3 -3
- package/dist/styles/detail-panel.css +2 -2
- package/dist/styles/entity-picker.css +2 -2
- package/dist/styles/event-calendar.css +2 -2
- package/dist/styles/field-group.css +2 -2
- package/dist/styles/field.css +2 -2
- package/dist/styles/filter-bar.css +4 -4
- package/dist/styles/floating-panel.css +1 -1
- package/dist/styles/import-export-center.css +3 -3
- package/dist/styles/index.css +13 -13
- package/dist/styles/listbox.css +2 -2
- package/dist/styles/markdown.css +1 -1
- package/dist/styles/message.css +1 -1
- package/dist/styles/multi-select.css +2 -2
- package/dist/styles/notification-center.css +1 -1
- package/dist/styles/number-field.css +2 -2
- package/dist/styles/otp-input.css +2 -2
- package/dist/styles/page-header.css +1 -1
- package/dist/styles/page.css +1 -1
- package/dist/styles/prompt-composer.css +2 -2
- package/dist/styles/radio-group.css +2 -2
- package/dist/styles/rating.css +2 -2
- package/dist/styles/saved-views.css +3 -3
- package/dist/styles/section.css +1 -1
- package/dist/styles/segmented-control.css +2 -2
- package/dist/styles/select.css +2 -2
- package/dist/styles/side-navigation.css +1 -1
- package/dist/styles/slider.css +2 -2
- package/dist/styles/split-button.css +1 -1
- package/dist/styles/switch.css +2 -2
- package/dist/styles/table.css +3 -3
- package/dist/styles/tags-input.css +2 -2
- package/dist/styles/text-field.css +2 -2
- package/dist/styles/textarea.css +2 -2
- package/dist/styles/time-field.css +2 -2
- package/dist/styles/time-picker.css +2 -2
- package/dist/styles/time-range-picker.css +2 -2
- package/dist/styles/toggle-group.css +2 -2
- package/dist/styles/top-navigation.css +1 -1
- package/dist/styles/tour.css +1 -1
- package/dist/styles/transfer.css +3 -3
- package/dist/styles/upload.css +2 -2
- package/dist/styles/wizard.css +1 -1
- package/dist/styles.css +1 -1
- package/dist/{switch-C5WjteaS.js → switch-C2krbZHI.js} +1 -1
- package/dist/switch.js +1 -1
- package/dist/{table-D8-WlkFz.js → table-CnXBp9j9.js} +357 -344
- package/dist/table.js +2 -2
- package/dist/{tags-input-_cYR2JSK.js → tags-input-O87zTh7h.js} +1 -1
- package/dist/tags-input.js +1 -1
- package/dist/{text-field-DEm3MEe2.js → text-field-Cnjc7LB5.js} +1 -1
- package/dist/text-field.js +1 -1
- package/dist/{textarea-BRRn55L2.js → textarea-DcA7jwOM.js} +1 -1
- package/dist/textarea.js +1 -1
- package/dist/{time-field-C9dFaZOx.js → time-field-BanhrUvf.js} +1 -1
- package/dist/time-field.js +1 -1
- package/dist/{time-picker-Cw9NezUE.js → time-picker-B4-GsO24.js} +2 -2
- package/dist/time-picker.js +1 -1
- package/dist/{time-range-picker-DmmUqGjV.js → time-range-picker-DVOWN8PF.js} +2 -2
- package/dist/time-range-picker.js +1 -1
- package/dist/{toggle-group-DiKxYOwh.js → toggle-group-D7GQyNQP.js} +1 -1
- package/dist/toggle-group.js +1 -1
- package/dist/{transfer-CuNCXEoR.js → transfer-CuLlF_nY.js} +5 -5
- package/dist/transfer.js +1 -1
- package/dist/types/button/button.types.d.ts +2 -1
- package/dist/types/button/button.types.d.ts.map +1 -1
- package/dist/types/calendar/calendar-day-button.d.ts +12 -0
- package/dist/types/calendar/calendar-day-button.d.ts.map +1 -0
- package/dist/types/calendar/calendar-header.d.ts +20 -0
- package/dist/types/calendar/calendar-header.d.ts.map +1 -0
- package/dist/types/calendar/calendar.d.ts +1 -1
- package/dist/types/calendar/calendar.d.ts.map +1 -1
- package/dist/types/calendar/calendar.types.d.ts +14 -0
- package/dist/types/calendar/calendar.types.d.ts.map +1 -1
- package/dist/types/chart/chart.d.ts.map +1 -1
- package/dist/types/collapsible/collapsible-parts.d.ts +1 -1
- package/dist/types/collapsible/collapsible-parts.d.ts.map +1 -1
- package/dist/types/collapsible/collapsible.types.d.ts +1 -0
- package/dist/types/collapsible/collapsible.types.d.ts.map +1 -1
- package/dist/types/floating-panel/floating-panel.d.ts +1 -1
- package/dist/types/floating-panel/floating-panel.d.ts.map +1 -1
- package/dist/types/floating-panel/floating-panel.types.d.ts +6 -2
- package/dist/types/floating-panel/floating-panel.types.d.ts.map +1 -1
- package/dist/types/message/message-parts.d.ts +4 -3
- package/dist/types/message/message-parts.d.ts.map +1 -1
- package/dist/types/message/message.types.d.ts +6 -0
- package/dist/types/message/message.types.d.ts.map +1 -1
- package/dist/types/section/index.d.ts +1 -1
- package/dist/types/section/index.d.ts.map +1 -1
- package/dist/types/section/section-parts.d.ts +6 -0
- package/dist/types/section/section-parts.d.ts.map +1 -1
- package/dist/types/table/index.d.ts +2 -2
- package/dist/types/table/index.d.ts.map +1 -1
- package/dist/types/table/table-parts.d.ts +7 -1
- package/dist/types/table/table-parts.d.ts.map +1 -1
- package/dist/types/table/table.d.ts.map +1 -1
- package/dist/types/table/table.types.d.ts +8 -3
- package/dist/types/table/table.types.d.ts.map +1 -1
- package/dist/{upload-Bpjlax3i.js → upload-DggJrkQ7.js} +1 -1
- package/dist/upload.js +1 -1
- package/package.json +6 -6
- package/dist/calendar-CjVx7amB.js +0 -511
- package/dist/floating-panel-84VLZdhL.js +0 -166
- package/dist/import-export-center-DdANj0_T.js +0 -867
package/dist/docs/message.md
CHANGED
|
@@ -82,6 +82,7 @@ Excerpt — not a complete module
|
|
|
82
82
|
| `onRetry` | `(request) => void` | — | Message | Asks to send the message again; BubbleRetry calls it |
|
|
83
83
|
| `messages` | `PartialMessages<MessageMessages>` | — | Message | Words laid over the language in force, key by key, for the row and every part and bubble inside it; a bubble outside a row speaks the language in force |
|
|
84
84
|
| `status` | `'sending' \| 'sent' \| 'delivered' \| 'read' \| 'failed'` | the row’s | MessageReceipt | The receipt’s own status |
|
|
85
|
+
| `variant` | `'bubble' \| 'plain'` | bubble | MessageActivity | bubble draws a raised frame around the steps; plain draws the steps alone, with no border, ground or inset, for a turn that stands on a rail |
|
|
85
86
|
| `status` | `'complete' \| 'current' \| 'pending'` | current | MessageActivityStep | Done with a tick, in progress with the ring, or waiting |
|
|
86
87
|
| `icon` | `ReactNode` | — | MessageActivityStep | The icon of the step source, drawn in a tile before the words in place of the status mark. The tile is edged in the accent while the step is current and holds the tick once it is complete |
|
|
87
88
|
| `dateTime` | `string` | — | MessageTime | The time element’s own machine-readable value |
|
package/dist/docs/page.json
CHANGED
|
@@ -221,6 +221,13 @@
|
|
|
221
221
|
"appliesTo": "a subtree",
|
|
222
222
|
"description": "The five decisions an application takes once. A page that states any of them itself still wins"
|
|
223
223
|
},
|
|
224
|
+
{
|
|
225
|
+
"name": "--slotted-page-gap, --slotted-page-section-space",
|
|
226
|
+
"type": "runtime properties on the body",
|
|
227
|
+
"defaultValue": "—",
|
|
228
|
+
"appliesTo": "a stack of blocks deeper in the page: a tab panel, a column beside an aside",
|
|
229
|
+
"description": "The distances between two blocks and above a section without a surface, as the page resolves them, the compact step below 600 pixels included: gap: var(--slotted-page-gap) stacks blocks as the body stacks its own"
|
|
230
|
+
},
|
|
224
231
|
{
|
|
225
232
|
"name": "--slotted-page-sticky-top, --slotted-page-sticky-bottom, --slotted-page-scrollport-block-size",
|
|
226
233
|
"type": "runtime properties on the scroller",
|
package/dist/docs/page.md
CHANGED
|
@@ -49,6 +49,7 @@ Excerpt — not a complete module
|
|
|
49
49
|
| `ref` | `Ref<HTMLElement>` | — | Page, PageBody, PageFooter | Reaches the element itself. Under scroll="self" the scroller is the scroll part inside it: root.querySelector("[data-part=scroll]") |
|
|
50
50
|
| `usePage()` | `() => PageContextValue \| undefined` | — | inside Page | What the header and the footer read: width, inset, scroll, ground, loading and the translator t. Undefined outside a page, so a header standing alone is complete |
|
|
51
51
|
| `PageDefaultsProvider` | `{ width, inset, scroll, ground, landmark }` | — | a subtree | The five decisions an application takes once. A page that states any of them itself still wins |
|
|
52
|
+
| `--slotted-page-gap, --slotted-page-section-space` | `runtime properties on the body` | — | a stack of blocks deeper in the page: a tab panel, a column beside an aside | The distances between two blocks and above a section without a surface, as the page resolves them, the compact step below 600 pixels included: gap: var(--slotted-page-gap) stacks blocks as the body stacks its own |
|
|
52
53
|
| `--slotted-page-sticky-top, --slotted-page-sticky-bottom, --slotted-page-scrollport-block-size` | `runtime properties on the scroller` | — | every family under the page, and the consumer’s own sticky elements inside it | The height of the chrome that stays at the top, written by the header, of the footer, and of the scroller itself, written by the page. A section’s sticky header reads the first; a table with stickyTo="page" reads both through the bridge the page writes on its root. A consumer’s own position: sticky element reads the first as well: inset-block-start: calc(var(--slotted-page-sticky-top, 0px) + gap) stops it under the chrome instead of behind the stuck header, and max-block-size: calc(var(--slotted-page-scrollport-block-size, 100dvh) - var(--slotted-page-sticky-top, 0px) - var(--slotted-page-sticky-bottom, 0px) - 2 * gap) bounds one that may be taller than the scroller. The third is the scroller’s visible height, written by the page; under an inset canvas the scroller is shorter than the viewport |
|
|
53
54
|
|
|
54
55
|
## Axes and defaults
|
package/dist/docs/section.json
CHANGED
|
@@ -66,14 +66,15 @@
|
|
|
66
66
|
"tags",
|
|
67
67
|
"description",
|
|
68
68
|
"actions",
|
|
69
|
-
"body"
|
|
69
|
+
"body",
|
|
70
|
+
"bleed"
|
|
70
71
|
]
|
|
71
72
|
}
|
|
72
73
|
},
|
|
73
74
|
"docs": {
|
|
74
75
|
"section": {
|
|
75
76
|
"imports": {
|
|
76
|
-
"source": "import { Section, SectionHeader, SectionTitle, SectionEyebrow, SectionHeading, SectionTags, SectionDescription, SectionActions, SectionBody, SectionDefaultsProvider } from '@slotted/react';"
|
|
77
|
+
"source": "import { Section, SectionHeader, SectionTitle, SectionEyebrow, SectionHeading, SectionTags, SectionDescription, SectionActions, SectionBody, SectionBleed, SectionDefaultsProvider } from '@slotted/react';"
|
|
77
78
|
},
|
|
78
79
|
"anatomy": [
|
|
79
80
|
{
|
|
@@ -137,6 +138,13 @@
|
|
|
137
138
|
"element": "div",
|
|
138
139
|
"required": true,
|
|
139
140
|
"purpose": "The content, wrapped one HeadingLevel deeper, so a section inside it takes the next rank without being told."
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"part": "bleed",
|
|
144
|
+
"parent": "body",
|
|
145
|
+
"element": "div",
|
|
146
|
+
"required": false,
|
|
147
|
+
"purpose": "A child of the body that bleeds alone, in the body or in the one stack the body holds: in a surface section it runs to the panel’s inline edges, and to its lower corners when it is the last of the panel, while the rest of the body keeps the inset."
|
|
140
148
|
}
|
|
141
149
|
],
|
|
142
150
|
"api": [
|
package/dist/docs/section.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
## Import
|
|
7
7
|
|
|
8
8
|
```tsx
|
|
9
|
-
import { Section, SectionHeader, SectionTitle, SectionEyebrow, SectionHeading, SectionTags, SectionDescription, SectionActions, SectionBody, SectionDefaultsProvider } from '@slotted/react';
|
|
9
|
+
import { Section, SectionHeader, SectionTitle, SectionEyebrow, SectionHeading, SectionTags, SectionDescription, SectionActions, SectionBody, SectionBleed, SectionDefaultsProvider } from '@slotted/react';
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
## Minimal example
|
|
@@ -37,6 +37,7 @@ Excerpt — not a complete module
|
|
|
37
37
|
| `description` | `title` | p | no |
|
|
38
38
|
| `actions` | `header` | div | no |
|
|
39
39
|
| `body` | `root` | div | yes |
|
|
40
|
+
| `bleed` | `body` | div | no |
|
|
40
41
|
|
|
41
42
|
## Props
|
|
42
43
|
|
|
@@ -19,7 +19,7 @@ Take the first row that reaches the change.
|
|
|
19
19
|
| How tight controls and rows are | the density: `comfortable`, `compact`, `dense` | `data-slotted-density`, or the density of the `ThemeScope` component from `@slotted/react/theme` |
|
|
20
20
|
| How round corners are, chosen by the reader | the corners: `square`, `soft`, `standard`, `round` | `data-slotted-corners`, or the corners of the `ThemeScope` component from `@slotted/react/theme`; the theme's `corners` holds each radius scale |
|
|
21
21
|
| How deep a scheme's grounds sit, or how far each layer steps from the one below | the recipe: one derivation per token per scheme | the theme's `recipe`, spread from the base theme's, as below; `themeConformance` still checks every contrast |
|
|
22
|
-
| A
|
|
22
|
+
| A scheme's values chosen by the reader: an OLED black page, flat shadows | a variant: per scheme, a derivation or a CSS value per token | the theme's `variants`; `data-slotted-variant-<axis>` set to the value; `themeConformance` checks each value |
|
|
23
23
|
| Spacing, corners, type, lines, shadows or motion | a token of a group in `../../tokens.md` | the theme's `base`; `schemes` for a value per scheme; `densities` per density |
|
|
24
24
|
| One family's look | a token the family's page lists under Tokens | the theme's `components` |
|
|
25
25
|
| What no token reaches | a theme rule | the theme's `rules` |
|
package/dist/docs/table.json
CHANGED
|
@@ -71,7 +71,8 @@
|
|
|
71
71
|
],
|
|
72
72
|
"guides": [
|
|
73
73
|
true,
|
|
74
|
-
false
|
|
74
|
+
false,
|
|
75
|
+
"branch"
|
|
75
76
|
]
|
|
76
77
|
},
|
|
77
78
|
"members": {
|
|
@@ -149,6 +150,7 @@
|
|
|
149
150
|
"filter-actions",
|
|
150
151
|
"selection",
|
|
151
152
|
"expander",
|
|
153
|
+
"mark",
|
|
152
154
|
"detail",
|
|
153
155
|
"group-row",
|
|
154
156
|
"group-header",
|
|
@@ -164,7 +166,7 @@
|
|
|
164
166
|
"docs": {
|
|
165
167
|
"table": {
|
|
166
168
|
"imports": {
|
|
167
|
-
"source": "import {\n Table,\n TableBody,\n TableCaption,\n TableCell,\n TableColumnActions,\n TableColumnHeader,\n TableContent,\n TableDefaultsProvider,\n TableDetail,\n TableEmpty,\n TableExpander,\n TableFooter,\n TableGroupRow,\n TableHead,\n TableLoader,\n TableRow,\n TableRowHeader,\n TableSelect,\n TableSelectAll,\n TableSort,\n TableSummary,\n} from '@slotted/react';"
|
|
169
|
+
"source": "import {\n Table,\n TableBody,\n TableCaption,\n TableCell,\n TableColumnActions,\n TableColumnHeader,\n TableContent,\n TableDefaultsProvider,\n TableDetail,\n TableEmpty,\n TableExpander,\n TableFooter,\n TableGroupRow,\n TableHead,\n TableLoader,\n TableMark,\n TableRow,\n TableRowHeader,\n TableSelect,\n TableSelectAll,\n TableSort,\n TableSummary,\n} from '@slotted/react';"
|
|
168
170
|
},
|
|
169
171
|
"anatomy": [
|
|
170
172
|
{
|
|
@@ -329,6 +331,12 @@
|
|
|
329
331
|
"required": false,
|
|
330
332
|
"purpose": "Opens and closes one row detail. It carries aria-expanded, and aria-controls naming the detail row while that row is open. It is the APG Disclosure pattern, borrowed whole."
|
|
331
333
|
},
|
|
334
|
+
{
|
|
335
|
+
"part": "mark",
|
|
336
|
+
"element": "span",
|
|
337
|
+
"required": false,
|
|
338
|
+
"purpose": "A record’s leading mark: an avatar, a logo, an icon. One box per level, --slotted-table-mark-size and a step smaller at a child, which the steps of an avatar up to md measure. Under guides=\"branch\" the rail of the children starts at its foot."
|
|
339
|
+
},
|
|
332
340
|
{
|
|
333
341
|
"part": "detail",
|
|
334
342
|
"element": "tr",
|
|
@@ -444,10 +452,10 @@
|
|
|
444
452
|
},
|
|
445
453
|
{
|
|
446
454
|
"name": "guides",
|
|
447
|
-
"type": "boolean",
|
|
455
|
+
"type": "boolean | 'branch'",
|
|
448
456
|
"defaultValue": "true",
|
|
449
457
|
"appliesTo": "Table",
|
|
450
|
-
"description": "A line per ancestor level beside the rows that name a parent, on the center of the expander one level up"
|
|
458
|
+
"description": "A line per ancestor level beside the rows that name a parent, on the center of the expander one level up. branch draws a rail from the foot of the parent’s mark (TableMark, or the expander), a branch to each child and an elbow at the last, and keeps the marks of a level in one column"
|
|
451
459
|
},
|
|
452
460
|
{
|
|
453
461
|
"name": "stickyHeader",
|
|
@@ -838,6 +846,7 @@
|
|
|
838
846
|
"--slotted-radius-md",
|
|
839
847
|
"--slotted-radius-sm",
|
|
840
848
|
"--slotted-shadow-xs",
|
|
849
|
+
"--slotted-space-1",
|
|
841
850
|
"--slotted-space-2",
|
|
842
851
|
"--slotted-space-4",
|
|
843
852
|
"--slotted-space-5",
|
|
@@ -846,6 +855,7 @@
|
|
|
846
855
|
"--slotted-table-border-color",
|
|
847
856
|
"--slotted-table-border-color-strong",
|
|
848
857
|
"--slotted-table-border-width",
|
|
858
|
+
"--slotted-table-branch-size",
|
|
849
859
|
"--slotted-table-caption-surface",
|
|
850
860
|
"--slotted-table-cell-padding-block",
|
|
851
861
|
"--slotted-table-cell-padding-inline",
|
|
@@ -865,6 +875,8 @@
|
|
|
865
875
|
"--slotted-table-header-surface",
|
|
866
876
|
"--slotted-table-header-surface-hover",
|
|
867
877
|
"--slotted-table-icon-size",
|
|
878
|
+
"--slotted-table-mark-child-size",
|
|
879
|
+
"--slotted-table-mark-size",
|
|
868
880
|
"--slotted-table-radius",
|
|
869
881
|
"--slotted-table-row-color-selected",
|
|
870
882
|
"--slotted-table-row-min-block-size",
|
package/dist/docs/table.md
CHANGED
|
@@ -22,6 +22,7 @@ import {
|
|
|
22
22
|
TableGroupRow,
|
|
23
23
|
TableHead,
|
|
24
24
|
TableLoader,
|
|
25
|
+
TableMark,
|
|
25
26
|
TableRow,
|
|
26
27
|
TableRowHeader,
|
|
27
28
|
TableSelect,
|
|
@@ -160,6 +161,7 @@ export default function TableBasic() {
|
|
|
160
161
|
| `filter-actions` | div | no |
|
|
161
162
|
| `selection` | th or td | no |
|
|
162
163
|
| `expander` | button | no |
|
|
164
|
+
| `mark` | span | no |
|
|
163
165
|
| `detail` | tr | no |
|
|
164
166
|
| `group-row` | tr | no |
|
|
165
167
|
| `group-header` | th | no |
|
|
@@ -182,7 +184,7 @@ export default function TableBasic() {
|
|
|
182
184
|
| `variant` | `'plain' \| 'ruled' \| 'framed'` | ruled | Table | How much of a frame the set is given |
|
|
183
185
|
| `edges` | `'inset' \| 'flush'` | inset | Table | Whether the first and the last column keep the cell inset on their outer side. flush lines a plain or ruled table up with the heading around it, leaving the theme’s --slotted-table-edge-inset (0 unless set); a framed table ignores it. Sticky and selection columns keep their own offsets |
|
|
184
186
|
| `striped` | `boolean` | false | Table | A tinted ground on every second record |
|
|
185
|
-
| `guides` | `boolean` | true | Table | A line per ancestor level beside the rows that name a parent, on the center of the expander one level up |
|
|
187
|
+
| `guides` | `boolean \| 'branch'` | true | Table | A line per ancestor level beside the rows that name a parent, on the center of the expander one level up. branch draws a rail from the foot of the parent’s mark (TableMark, or the expander), a branch to each child and an elbow at the last, and keeps the marks of a level in one column |
|
|
186
188
|
| `stickyHeader` | `boolean` | false | Table | Whether the header stays while the body scrolls |
|
|
187
189
|
| `stickyFooter` | `boolean` | false | Table | Whether the summary rows stay while the body scrolls. It pins the tfoot and not the footer bar, which never scrolls. |
|
|
188
190
|
| `stickyTo` | `'scroll' \| 'page'` | scroll | Table | What the header stays inside: this table own scroller, or whatever scrolls outside it. page releases the scroller, so the table stops scrolling sideways in its frame. |
|
|
@@ -257,7 +259,7 @@ export default function TableBasic() {
|
|
|
257
259
|
| `text` | `wrap`, `truncate`, `nowrap` | `wrap` |
|
|
258
260
|
| `sticky` | `start`, `end` | `start` |
|
|
259
261
|
| `blockAlign` | `start`, `center`, `end` | `center` |
|
|
260
|
-
| `guides` | `true`, `false` | `true` |
|
|
262
|
+
| `guides` | `true`, `false`, `branch` | `true` |
|
|
261
263
|
|
|
262
264
|
## Rules
|
|
263
265
|
|
|
@@ -273,7 +275,7 @@ export default function TableBasic() {
|
|
|
273
275
|
|
|
274
276
|
## Tokens
|
|
275
277
|
|
|
276
|
-
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-font-size-md`, `--slotted-control-gap-md`, `--slotted-control-height-md`, `--slotted-control-icon-size-md`, `--slotted-control-padding-inline-md`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-foreground`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-font-weight-semibold`, `--slotted-ground`, `--slotted-line-height-md`, `--slotted-radius-md`, `--slotted-radius-sm`, `--slotted-shadow-xs`, `--slotted-space-2`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-9`, `--slotted-surface`, `--slotted-table-border-color`, `--slotted-table-border-color-strong`, `--slotted-table-border-width`, `--slotted-table-caption-surface`, `--slotted-table-cell-padding-block`, `--slotted-table-cell-padding-inline`, `--slotted-table-color`, `--slotted-table-color-muted`, `--slotted-table-column-actions-size`, `--slotted-table-control-radius`, `--slotted-table-edge-inset`, `--slotted-table-font-family`, `--slotted-table-font-size`, `--slotted-table-gap`, `--slotted-table-group-color`, `--slotted-table-group-sticky-offset`, `--slotted-table-group-surface`, `--slotted-table-guide-color`, `--slotted-table-header-backdrop-filter`, `--slotted-table-header-surface`, `--slotted-table-header-surface-hover`, `--slotted-table-icon-size`, `--slotted-table-radius`, `--slotted-table-row-color-selected`, `--slotted-table-row-min-block-size`, `--slotted-table-row-surface-current`, `--slotted-table-row-surface-hover`, `--slotted-table-row-surface-selected`, `--slotted-table-row-surface-selected-hover`, `--slotted-table-row-surface-stripe`, `--slotted-table-selection-size`, `--slotted-table-shadow`, `--slotted-table-sticky-inset`, `--slotted-table-sticky-offset`, `--slotted-table-sticky-offset-end`, `--slotted-table-sticky-surface`, `--slotted-table-surface`, `--slotted-table-tree-indent`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-subtle-hover`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-sticky`
|
|
278
|
+
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-font-size-md`, `--slotted-control-gap-md`, `--slotted-control-height-md`, `--slotted-control-icon-size-md`, `--slotted-control-padding-inline-md`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-foreground`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-font-weight-semibold`, `--slotted-ground`, `--slotted-line-height-md`, `--slotted-radius-md`, `--slotted-radius-sm`, `--slotted-shadow-xs`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-9`, `--slotted-surface`, `--slotted-table-border-color`, `--slotted-table-border-color-strong`, `--slotted-table-border-width`, `--slotted-table-branch-size`, `--slotted-table-caption-surface`, `--slotted-table-cell-padding-block`, `--slotted-table-cell-padding-inline`, `--slotted-table-color`, `--slotted-table-color-muted`, `--slotted-table-column-actions-size`, `--slotted-table-control-radius`, `--slotted-table-edge-inset`, `--slotted-table-font-family`, `--slotted-table-font-size`, `--slotted-table-gap`, `--slotted-table-group-color`, `--slotted-table-group-sticky-offset`, `--slotted-table-group-surface`, `--slotted-table-guide-color`, `--slotted-table-header-backdrop-filter`, `--slotted-table-header-surface`, `--slotted-table-header-surface-hover`, `--slotted-table-icon-size`, `--slotted-table-mark-child-size`, `--slotted-table-mark-size`, `--slotted-table-radius`, `--slotted-table-row-color-selected`, `--slotted-table-row-min-block-size`, `--slotted-table-row-surface-current`, `--slotted-table-row-surface-hover`, `--slotted-table-row-surface-selected`, `--slotted-table-row-surface-selected-hover`, `--slotted-table-row-surface-stripe`, `--slotted-table-selection-size`, `--slotted-table-shadow`, `--slotted-table-sticky-inset`, `--slotted-table-sticky-offset`, `--slotted-table-sticky-offset-end`, `--slotted-table-sticky-surface`, `--slotted-table-surface`, `--slotted-table-tree-indent`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-subtle-hover`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-sticky`
|
|
277
279
|
|
|
278
280
|
## Examples
|
|
279
281
|
|
|
@@ -4,10 +4,10 @@ import { n, t as r } from "./icon-D04-_QFA.js";
|
|
|
4
4
|
import { t as i } from "./spinner-ring-DyfaYloA.js";
|
|
5
5
|
import { t as a } from "./avatar-DLWElrgg.js";
|
|
6
6
|
/* empty css */
|
|
7
|
-
import { b as o } from "./field-
|
|
7
|
+
import { b as o } from "./field-vOVzvq5t.js";
|
|
8
8
|
/* empty css */
|
|
9
9
|
import { t as s } from "./highlight-9lRPIZ9O.js";
|
|
10
|
-
import { c, i as l, n as ee, o as te, s as ne } from "./select-
|
|
10
|
+
import { c, i as l, n as ee, o as te, s as ne } from "./select-BkUuIVBK.js";
|
|
11
11
|
import { keyedProps as u, selectorKeyProps as re } from "@slotted/core/selector-key";
|
|
12
12
|
import { createArrowNavigation as ie, createRemovalFocus as ae } from "@slotted/core/focus";
|
|
13
13
|
import { createControllable as d } from "@slotted/core/state";
|
package/dist/entity-picker.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "./entity-picker-
|
|
1
|
+
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "./entity-picker-CwfA1wr_.js";
|
|
2
2
|
export { u as CREATE_OPTION, d as ENTITY_PICKER_FALLBACK, a as EntityPicker, n as EntityPickerDefaultsProvider, e as EntityPickerOptionDescription, s as EntityPickerOptionLabel, l as EntityPickerOptionMedia, t as EntityPickerOptionMeta, o as RETRY_OPTION, c as localEntitySource, i as rememberRecent, r as useEntityPickerDefaults };
|
|
@@ -6,7 +6,7 @@ import { n as g } from "./progress-indicator-D0acshNn.js";
|
|
|
6
6
|
/* empty css */
|
|
7
7
|
import { a as _, c as v, f as ee, i as te, l as ne, o as re, p as ie, r as ae, u as oe } from "./popover-BfEn2wdZ.js";
|
|
8
8
|
import { n as se, r as y, t as ce } from "./context-menu-WiKS4Zwv.js";
|
|
9
|
-
import { a as le, t as ue } from "./segmented-control-
|
|
9
|
+
import { a as le, t as ue } from "./segmented-control-D52GeOlS.js";
|
|
10
10
|
import { keyedProps as de, selectorKeyProps as fe, withSelectorKey as pe } from "@slotted/core/selector-key";
|
|
11
11
|
import { createContext as me, createElement as he, useCallback as b, useContext as ge, useEffect as _e, useId as ve, useImperativeHandle as ye, useLayoutEffect as be, useMemo as xe, useRef as x, useState as S } from "react";
|
|
12
12
|
import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
|
package/dist/event-calendar.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "./event-calendar-
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "./event-calendar-biSTH0yK.js";
|
|
2
2
|
export { t as EVENT_CALENDAR_FALLBACK, r as EventCalendar, n as EventCalendarDefaultsProvider, e as useEventCalendarDefaults };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as e } from "./i18n-D7xXDd8-.js";
|
|
2
|
-
import { d as t, f as n, y as r } from "./field-
|
|
2
|
+
import { d as t, f as n, y as r } from "./field-vOVzvq5t.js";
|
|
3
3
|
import { t as i } from "./inline-message-DgEAUjar.js";
|
|
4
4
|
import { keyedProps as a, withSelectorKey as o } from "@slotted/core/selector-key";
|
|
5
5
|
import { createContext as s, isValidElement as c, useCallback as l, useContext as u, useEffect as d, useId as f, useMemo as p, useState as m } from "react";
|
package/dist/field-group.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./field-group-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./field-group-7zV68b3d.js";
|
|
2
2
|
export { o as FieldGroup, t as FieldGroupContent, e as FieldGroupDescription, r as FieldGroupError, a as FieldGroupLegend, n as deriveFieldGroupIds, i as useFieldGroup };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as e } from "./i18n-D7xXDd8-.js";
|
|
2
2
|
import { n as t, t as n } from "./icon-D04-_QFA.js";
|
|
3
|
+
import { a as r, i, n as a, o, r as s, t as c } from "./tooltip-DrFiRlH8.js";
|
|
3
4
|
/* empty css */
|
|
4
|
-
import { t as
|
|
5
|
-
import { a as i, i as a, n as o, o as s, r as c, t as l } from "./tooltip-DrFiRlH8.js";
|
|
5
|
+
import { t as l } from "./inline-message-DgEAUjar.js";
|
|
6
6
|
import { keyedProps as u, withSelectorKey as d } from "@slotted/core/selector-key";
|
|
7
7
|
import { Children as f, createContext as p, isValidElement as m, useCallback as h, useContext as g, useEffect as _, useId as v, useMemo as y, useRef as ee, useState as b } from "react";
|
|
8
8
|
import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
@@ -143,26 +143,26 @@ function B({ "aria-describedby": e, "aria-invalid": t, "aria-required": n, disab
|
|
|
143
143
|
ref: o
|
|
144
144
|
}) : s(p);
|
|
145
145
|
}
|
|
146
|
-
function V({ children: e, mark: t, tone: n, ...
|
|
147
|
-
let
|
|
148
|
-
return R("description", A(e)), /* @__PURE__ */ S(
|
|
149
|
-
...
|
|
150
|
-
disabled:
|
|
151
|
-
id:
|
|
146
|
+
function V({ children: e, mark: t, tone: n, ...r }) {
|
|
147
|
+
let i = E();
|
|
148
|
+
return R("description", A(e)), /* @__PURE__ */ S(l, {
|
|
149
|
+
...r,
|
|
150
|
+
disabled: i?.disabled,
|
|
151
|
+
id: i?.ids.description,
|
|
152
152
|
mark: t ?? "none",
|
|
153
|
-
size:
|
|
153
|
+
size: i?.messageSize,
|
|
154
154
|
tone: n ?? "secondary",
|
|
155
155
|
children: e
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
|
-
function H({ children: e, mark: t, tone: n, ...
|
|
159
|
-
let
|
|
160
|
-
return R("error", A(e)), /* @__PURE__ */ S(
|
|
161
|
-
...
|
|
162
|
-
disabled:
|
|
163
|
-
id:
|
|
158
|
+
function H({ children: e, mark: t, tone: n, ...r }) {
|
|
159
|
+
let i = E();
|
|
160
|
+
return R("error", A(e)), /* @__PURE__ */ S(l, {
|
|
161
|
+
...r,
|
|
162
|
+
disabled: i?.disabled,
|
|
163
|
+
id: i?.ids.error,
|
|
164
164
|
mark: t ?? "none",
|
|
165
|
-
size:
|
|
165
|
+
size: i?.messageSize,
|
|
166
166
|
tone: n ?? "danger",
|
|
167
167
|
children: e
|
|
168
168
|
});
|
|
@@ -230,16 +230,16 @@ function K({ ref: e, render: t, type: n, ...r }) {
|
|
|
230
230
|
type: n ?? "button"
|
|
231
231
|
}) : t(i);
|
|
232
232
|
}
|
|
233
|
-
function q({ children: t, defaultOpen: n, onOpenChange:
|
|
233
|
+
function q({ children: t, defaultOpen: n, onOpenChange: i, open: o, side: l, ...u }) {
|
|
234
234
|
let d = E(), f = e(w), p = v(), m = d?.ids.help ?? `slotted-field-help-${p}`;
|
|
235
|
-
return R("help", A(t)), /* @__PURE__ */ S(x, { children: /* @__PURE__ */ C(
|
|
235
|
+
return R("help", A(t)), /* @__PURE__ */ S(x, { children: /* @__PURE__ */ C(r, {
|
|
236
236
|
closeOnPress: !1,
|
|
237
237
|
defaultOpen: n,
|
|
238
238
|
describes: "none",
|
|
239
|
-
onOpenChange:
|
|
240
|
-
open:
|
|
239
|
+
onOpenChange: i,
|
|
240
|
+
open: o,
|
|
241
241
|
openOn: "manual",
|
|
242
|
-
side:
|
|
242
|
+
side: l,
|
|
243
243
|
children: [/* @__PURE__ */ S(J, {
|
|
244
244
|
...u,
|
|
245
245
|
"aria-describedby": u["aria-describedby"] ?? m,
|
|
@@ -251,11 +251,11 @@ function q({ children: t, defaultOpen: n, onOpenChange: r, open: a, side: s, ...
|
|
|
251
251
|
id: m,
|
|
252
252
|
children: t
|
|
253
253
|
})
|
|
254
|
-
}), /* @__PURE__ */ C(
|
|
254
|
+
}), /* @__PURE__ */ C(s, { children: [/* @__PURE__ */ S(a, { children: t }), /* @__PURE__ */ S(c, {})] })]
|
|
255
255
|
}) });
|
|
256
256
|
}
|
|
257
|
-
function J({ children: e, onBlur: r, onClick:
|
|
258
|
-
let p =
|
|
257
|
+
function J({ children: e, onBlur: r, onClick: a, onFocus: s, onPointerEnter: c, onPointerLeave: l, ref: u, ...f }) {
|
|
258
|
+
let p = o(), m = ee(!1);
|
|
259
259
|
_(() => {
|
|
260
260
|
p.open || (m.current = !1);
|
|
261
261
|
}, [p.open]);
|
|
@@ -275,11 +275,11 @@ function J({ children: e, onBlur: r, onClick: i, onFocus: o, onPointerEnter: c,
|
|
|
275
275
|
}
|
|
276
276
|
m.current = !0, p.toggle(!0, t, e.nativeEvent);
|
|
277
277
|
};
|
|
278
|
-
return /* @__PURE__ */ C(
|
|
278
|
+
return /* @__PURE__ */ C(i, {
|
|
279
279
|
...d(f, "part", "help"),
|
|
280
280
|
onBlur: L(r, y),
|
|
281
|
-
onClick: L(
|
|
282
|
-
onFocus: L(
|
|
281
|
+
onClick: L(a, b),
|
|
282
|
+
onFocus: L(s, v),
|
|
283
283
|
onPointerEnter: L(c, h),
|
|
284
284
|
onPointerLeave: L(l, g),
|
|
285
285
|
ref: u,
|
package/dist/field.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as e, a as t, b as n, c as r, d as i, f as a, g as o, i as s, l as c, n as l, o as u, p as d, r as f, s as p, t as m, u as h, v as g, y as _ } from "./field-
|
|
1
|
+
import { _ as e, a as t, b as n, c as r, d as i, f as a, g as o, i as s, l as c, n as l, o as u, p as d, r as f, s as p, t as m, u as h, v as g, y as _ } from "./field-vOVzvq5t.js";
|
|
2
2
|
export { d as FIELD_DESCRIBED_ORDER, m as Field, l as FieldAction, f as FieldControl, s as FieldCounter, i as FieldDefaultsProvider, t as FieldDescription, u as FieldError, p as FieldHeader, r as FieldHelp, c as FieldIndicator, h as FieldLabel, o as deriveFieldIds, e as formatFieldCount, g as isFieldCountOver, _ as necessityMark, n as useField, a as useFieldDefaults };
|
|
@@ -4,16 +4,16 @@ import { _ as r, a as i, c as a, d as o, h as s, m as c, n as l, t as u, u as d
|
|
|
4
4
|
import { a as f, d as p, l as m, n as h, o as g, r as ee, s as te } from "./drawer-Du1aC1px.js";
|
|
5
5
|
import { t as ne } from "./spinner-ring-DyfaYloA.js";
|
|
6
6
|
import { n as _, t as re } from "./icon-button-N8Madx6i.js";
|
|
7
|
-
import { t as ie } from "./text-field-
|
|
7
|
+
import { t as ie } from "./text-field-Cnjc7LB5.js";
|
|
8
8
|
import { a as ae, d as oe, f as se, l as ce, p as le, r as ue } from "./popover-BfEn2wdZ.js";
|
|
9
9
|
import { n as de } from "./kbd-dNz8QHfL.js";
|
|
10
|
-
import { t as fe } from "./date-picker-
|
|
11
|
-
import { t as pe } from "./datetime-picker-
|
|
12
|
-
import { a as me, i as he, n as ge, s as _e } from "./multi-select-
|
|
13
|
-
import { t as ve } from "./number-field-
|
|
14
|
-
import { a as ye, t as v } from "./segmented-control-
|
|
15
|
-
import { c as be, i as xe, n as Se, o as Ce, s as we } from "./select-
|
|
16
|
-
import { t as y } from "./time-picker-
|
|
10
|
+
import { t as fe } from "./date-picker-DQbj3FON.js";
|
|
11
|
+
import { t as pe } from "./datetime-picker-C9pxH7Xf.js";
|
|
12
|
+
import { a as me, i as he, n as ge, s as _e } from "./multi-select-DEd_92BC.js";
|
|
13
|
+
import { t as ve } from "./number-field-BJKoidAE.js";
|
|
14
|
+
import { a as ye, t as v } from "./segmented-control-D52GeOlS.js";
|
|
15
|
+
import { c as be, i as xe, n as Se, o as Ce, s as we } from "./select-BkUuIVBK.js";
|
|
16
|
+
import { t as y } from "./time-picker-B4-GsO24.js";
|
|
17
17
|
import { withSelectorKey as b } from "@slotted/core/selector-key";
|
|
18
18
|
import { createRemovalFocus as Te, createRovingTabindex as Ee } from "@slotted/core/focus";
|
|
19
19
|
import { createControllable as De } from "@slotted/core/state";
|
package/dist/filter-bar.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "./filter-bar-
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "./filter-bar-Cfwk-3Eu.js";
|
|
2
2
|
export { r as FILTER_BAR_FALLBACK, t as FilterBar, n as FilterBarDefaultsProvider, e as useFilterBarDefaults };
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { r as e } from "./i18n-D7xXDd8-.js";
|
|
2
|
+
import { n as t, t as n } from "./icon-D04-_QFA.js";
|
|
3
|
+
import { keyedProps as r } from "@slotted/core/selector-key";
|
|
4
|
+
import { createContext as i, useContext as a, useId as o, useLayoutEffect as s, useRef as c, useState as l } from "react";
|
|
5
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
6
|
+
import { floatingPanelMessages as f } from "@slotted/core/i18n";
|
|
7
|
+
import { FLOATING_LARGE_STEP as p, FLOATING_STEP as m, clampPlace as h, stepPlace as g } from "@slotted/core/floating-panel";
|
|
8
|
+
//#region src/floating-panel/floating-panel.tsx
|
|
9
|
+
var _ = i(void 0);
|
|
10
|
+
function v() {
|
|
11
|
+
let e = a(_);
|
|
12
|
+
if (e === void 0) throw Error("A floating panel part is outside a FloatingPanel.");
|
|
13
|
+
return e;
|
|
14
|
+
}
|
|
15
|
+
function y({ "aria-label": t, children: n, defaultPlace: i = "bottom-end", largeStep: a = p, messages: d, onKeyDown: v, onOpenChange: y, onPlaceChange: C, open: w, place: T, step: E = m, style: D, ...O }) {
|
|
16
|
+
let k = e(f, d), A = o(), j = c(null), M = c(null), [N, P] = l(null), [F, I] = l(null), L = F ?? T ?? N;
|
|
17
|
+
s(() => {
|
|
18
|
+
if (!w) return;
|
|
19
|
+
let e = document.activeElement;
|
|
20
|
+
M.current = e instanceof HTMLElement && e !== document.body ? e : null;
|
|
21
|
+
}, [w]);
|
|
22
|
+
function R(e) {
|
|
23
|
+
T === void 0 && P(e), C?.(e);
|
|
24
|
+
}
|
|
25
|
+
function z() {
|
|
26
|
+
y(!1), M.current?.focus();
|
|
27
|
+
}
|
|
28
|
+
function B(e) {
|
|
29
|
+
let t = j.current;
|
|
30
|
+
if (e.button !== 0 || t === null || e.target.closest("[data-part=\"close\"]") !== null) return;
|
|
31
|
+
let n = e.currentTarget, r = b(t), i = {
|
|
32
|
+
x: e.clientX,
|
|
33
|
+
y: e.clientY
|
|
34
|
+
}, a = null;
|
|
35
|
+
n.setPointerCapture(e.pointerId);
|
|
36
|
+
let o = (e) => {
|
|
37
|
+
let n = {
|
|
38
|
+
x: e.clientX - i.x,
|
|
39
|
+
y: e.clientY - i.y
|
|
40
|
+
};
|
|
41
|
+
(a !== null || n.x !== 0 || n.y !== 0) && (a = h({
|
|
42
|
+
x: r.x + n.x,
|
|
43
|
+
y: r.y + n.y
|
|
44
|
+
}, x(t), S()), I(a));
|
|
45
|
+
}, s = () => {
|
|
46
|
+
n.removeEventListener("pointermove", o), n.removeEventListener("pointerup", s), n.removeEventListener("pointercancel", s), a !== null && (I(null), R(a));
|
|
47
|
+
};
|
|
48
|
+
n.addEventListener("pointermove", o), n.addEventListener("pointerup", s), n.addEventListener("pointercancel", s);
|
|
49
|
+
}
|
|
50
|
+
function V(e) {
|
|
51
|
+
if (j.current === null) return;
|
|
52
|
+
let t = b(j.current), n = g(t, e.key, e.shiftKey ? a : E);
|
|
53
|
+
n !== null && (e.preventDefault(), R(h(n, x(j.current), S())));
|
|
54
|
+
}
|
|
55
|
+
function H(e) {
|
|
56
|
+
v?.(e), !(e.defaultPrevented || e.key !== "Escape") && (e.stopPropagation(), z());
|
|
57
|
+
}
|
|
58
|
+
if (!w) return null;
|
|
59
|
+
let U = {
|
|
60
|
+
close: z,
|
|
61
|
+
move: V,
|
|
62
|
+
startDrag: B,
|
|
63
|
+
t: k,
|
|
64
|
+
titleId: A
|
|
65
|
+
}, W = r({
|
|
66
|
+
...O,
|
|
67
|
+
...t === void 0 ? { "aria-labelledby": A } : { "aria-label": t },
|
|
68
|
+
children: n,
|
|
69
|
+
...F === null ? {} : { "data-dragging": "" },
|
|
70
|
+
"data-part": "root",
|
|
71
|
+
"data-ui": "floating-panel",
|
|
72
|
+
...L === null ? { "data-corner": i } : {},
|
|
73
|
+
onKeyDown: H,
|
|
74
|
+
role: "region",
|
|
75
|
+
style: {
|
|
76
|
+
...L === null ? {} : {
|
|
77
|
+
"--_x": `${String(L.x)}px`,
|
|
78
|
+
"--_y": `${String(L.y)}px`
|
|
79
|
+
},
|
|
80
|
+
...D
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
return /* @__PURE__ */ u(_.Provider, {
|
|
84
|
+
value: U,
|
|
85
|
+
children: /* @__PURE__ */ u("section", {
|
|
86
|
+
...W,
|
|
87
|
+
ref: j
|
|
88
|
+
})
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
function b(e) {
|
|
92
|
+
let t = e.getBoundingClientRect();
|
|
93
|
+
return {
|
|
94
|
+
x: t.left,
|
|
95
|
+
y: t.top
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
function x(e) {
|
|
99
|
+
let t = e.getBoundingClientRect();
|
|
100
|
+
return {
|
|
101
|
+
width: t.width,
|
|
102
|
+
height: t.height
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
function S() {
|
|
106
|
+
return {
|
|
107
|
+
width: document.documentElement.clientWidth,
|
|
108
|
+
height: document.documentElement.clientHeight
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
//#endregion
|
|
112
|
+
//#region src/floating-panel/floating-panel-parts.tsx
|
|
113
|
+
function C({ children: e, onPointerDown: r, ...i }) {
|
|
114
|
+
let a = v();
|
|
115
|
+
return /* @__PURE__ */ d("div", {
|
|
116
|
+
...i,
|
|
117
|
+
"data-part": "handle",
|
|
118
|
+
"data-part-handle": "",
|
|
119
|
+
onPointerDown: (e) => {
|
|
120
|
+
r?.(e), e.defaultPrevented || a.startDrag(e);
|
|
121
|
+
},
|
|
122
|
+
children: [/* @__PURE__ */ u("button", {
|
|
123
|
+
"aria-label": a.t("move"),
|
|
124
|
+
"data-part": "grip",
|
|
125
|
+
"data-part-grip": "",
|
|
126
|
+
onKeyDown: a.move,
|
|
127
|
+
type: "button",
|
|
128
|
+
children: /* @__PURE__ */ u(n, { children: /* @__PURE__ */ u(t, { name: "grip-vertical" }) })
|
|
129
|
+
}), e]
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
function w(e) {
|
|
133
|
+
let t = v();
|
|
134
|
+
return /* @__PURE__ */ u("h2", {
|
|
135
|
+
id: t.titleId,
|
|
136
|
+
...e,
|
|
137
|
+
"data-part": "title",
|
|
138
|
+
"data-part-title": ""
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
function T({ children: e, onClick: r, ...i }) {
|
|
142
|
+
let a = v();
|
|
143
|
+
return /* @__PURE__ */ u("button", {
|
|
144
|
+
"aria-label": a.t("close"),
|
|
145
|
+
...i,
|
|
146
|
+
"data-part": "close",
|
|
147
|
+
"data-part-close": "",
|
|
148
|
+
onClick: (e) => {
|
|
149
|
+
r?.(e), e.defaultPrevented || a.close();
|
|
150
|
+
},
|
|
151
|
+
type: "button",
|
|
152
|
+
children: e ?? /* @__PURE__ */ u(n, { children: /* @__PURE__ */ u(t, { name: "x" }) })
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
function E(e) {
|
|
156
|
+
return /* @__PURE__ */ u("div", {
|
|
157
|
+
...e,
|
|
158
|
+
"data-part": "body",
|
|
159
|
+
"data-part-body": ""
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
//#endregion
|
|
163
|
+
export { y as a, w as i, T as n, v as o, C as r, E as t };
|
package/dist/floating-panel.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, t as a } from "./floating-panel-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, t as a } from "./floating-panel-Dp6S4GgU.js";
|
|
2
2
|
export { e as FloatingPanel, a as FloatingPanelBody, n as FloatingPanelClose, i as FloatingPanelHandle, t as FloatingPanelTitle, r as useFloatingPanel };
|