@stealthscale/component-disclosure 0.2.2 → 0.2.4
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/cyclonedx/bom.json +1 -1
- package/dist/index.js +1 -5423
- package/dist/pages/accordion/accordion.js +512 -0
- package/dist/pages/accordion/accordion.props.js +3 -0
- package/dist/pages/collapsible/collapsible.js +173 -0
- package/dist/pages/collapsible/collapsible.props.js +3 -0
- package/dist/pages/details/details.js +281 -0
- package/dist/pages/details/details.props.js +3 -0
- package/dist/pages/hover-card/hover-card.js +552 -0
- package/dist/pages/hover-card/hover-card.props.js +3 -0
- package/dist/pages/menu/menu.js +1103 -0
- package/dist/pages/menu/menu.props.js +3 -0
- package/dist/pages/menubar/menubar.js +1181 -0
- package/dist/pages/menubar/menubar.props.js +3 -0
- package/dist/pages/pages.json +138 -0
- package/dist/pages/popover/popover.js +161 -0
- package/dist/pages/popover/popover.props.js +3 -0
- package/dist/pages/steps/steps.js +660 -0
- package/dist/pages/steps/steps.props.js +3 -0
- package/dist/pages/tabs/tabs.js +815 -0
- package/dist/pages/tabs/tabs.props.js +3 -0
- package/dist/pages/toggle-tip/toggle-tip.js +344 -0
- package/dist/pages/toggle-tip/toggle-tip.props.js +3 -0
- package/dist/pages/tooltip/tooltip.js +112 -0
- package/dist/pages/tooltip/tooltip.props.js +3 -0
- package/dist/pages/truncate/truncate.js +235 -0
- package/dist/pages/truncate/truncate.props.js +3 -0
- package/dist/shared-Cfsikh3X.js +5424 -0
- package/dist/theme.js +23 -14
- package/locales/en/specimen/accordion.json +130 -0
- package/locales/en/specimen/collapsible.json +27 -0
- package/locales/en/specimen/details.json +48 -0
- package/locales/en/specimen/hover-card.json +58 -0
- package/locales/en/specimen/menu.json +81 -0
- package/locales/en/specimen/menubar.json +108 -0
- package/locales/en/specimen/popover.json +16 -0
- package/locales/en/specimen/steps.json +86 -0
- package/locales/en/specimen/tabs.json +108 -0
- package/locales/en/specimen/toggle-tip.json +47 -0
- package/locales/en/specimen/tooltip.json +14 -0
- package/locales/en/specimen/truncate.json +31 -0
- package/package.json +10 -9
- /package/dist/{recipe-95yCB2V3.js → recipes-95yCB2V3.js} +0 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
{
|
|
2
|
+
"about": "Renders a list of tabs and the panel of the selected tab.",
|
|
3
|
+
"activity": "Activity",
|
|
4
|
+
"closing": {
|
|
5
|
+
"about": "Closable tabs over a caller's list of files. Press a tab's close control, press a tab with the middle button, or press Delete on the focused tab. The selection and the focus move to the next tab, else the previous one. The unsaved file shows a status dot. Closing the last file shows the empty state.",
|
|
6
|
+
"title": "Closing tabs"
|
|
7
|
+
},
|
|
8
|
+
"controlled": {
|
|
9
|
+
"about": "A controlled tab list with two buttons outside the list. Close article closes the selected article and selects the next one through `Tabs.selectionAfterClose`, the rule the tabs follow. Reopen the articles puts the closed articles back in their places, before or after the selected one, and the indicator follows the selected tab.",
|
|
10
|
+
"title": "Closing from outside the list"
|
|
11
|
+
},
|
|
12
|
+
"drafts": {
|
|
13
|
+
"body": "Order {{number}} is a draft. Nothing is sent until you submit it.",
|
|
14
|
+
"close": "Close draft",
|
|
15
|
+
"label": "Draft orders",
|
|
16
|
+
"name": "Order {{number}}"
|
|
17
|
+
},
|
|
18
|
+
"files": {
|
|
19
|
+
"about": {
|
|
20
|
+
"build": "Builds the packages on every push to a pull request.",
|
|
21
|
+
"deploy": "Deploys the main branch to production after the checks pass.",
|
|
22
|
+
"nightly": "Runs the full suite against every browser at 02:00 UTC.",
|
|
23
|
+
"release": "Tags a release and publishes the packages to the registry."
|
|
24
|
+
},
|
|
25
|
+
"close": "Close file",
|
|
26
|
+
"empty": {
|
|
27
|
+
"about": "Every workflow file is closed.",
|
|
28
|
+
"reopen": "Reopen the files",
|
|
29
|
+
"title": "No open files"
|
|
30
|
+
},
|
|
31
|
+
"label": "Open files",
|
|
32
|
+
"names": {
|
|
33
|
+
"build": "build.yml",
|
|
34
|
+
"deploy": "deploy.yml",
|
|
35
|
+
"nightly": "nightly.yml",
|
|
36
|
+
"release": "release.yml"
|
|
37
|
+
},
|
|
38
|
+
"unsaved": "unsaved changes"
|
|
39
|
+
},
|
|
40
|
+
"fitted": {
|
|
41
|
+
"about": "Tabs at their own width, and tabs sharing the list's width equally, in the enclosed look, where each tab's width shows.",
|
|
42
|
+
"title": "Fitted"
|
|
43
|
+
},
|
|
44
|
+
"holds": "The balance, the limits and the owners of the account.",
|
|
45
|
+
"justify": {
|
|
46
|
+
"about": "Every distribution of the tabs in a list wider than they are.",
|
|
47
|
+
"title": "Distribution"
|
|
48
|
+
},
|
|
49
|
+
"label": "Account",
|
|
50
|
+
"lately": "The payments and changes of the last thirty days.",
|
|
51
|
+
"orientation": {
|
|
52
|
+
"about": "A list down the start of a settings page. The machine's `orientation` option sets it, and the indicator and the arrow keys follow: ArrowDown and ArrowUp move between the tabs.",
|
|
53
|
+
"title": "Orientation"
|
|
54
|
+
},
|
|
55
|
+
"overview": "Overview",
|
|
56
|
+
"palette": {
|
|
57
|
+
"about": "Every palette in the line look. The palette colours the indicator and the selected tab's text.",
|
|
58
|
+
"title": "Palettes"
|
|
59
|
+
},
|
|
60
|
+
"preferences": {
|
|
61
|
+
"bodies": {
|
|
62
|
+
"billing": "The card on file, the billing address and past invoices.",
|
|
63
|
+
"notifications": "Which events send an email, and which only show here.",
|
|
64
|
+
"profile": "Your name, your photo and the language of the interface.",
|
|
65
|
+
"security": "Your password, two-factor sign-in and active sessions."
|
|
66
|
+
},
|
|
67
|
+
"label": "Preferences",
|
|
68
|
+
"names": {
|
|
69
|
+
"billing": "Billing",
|
|
70
|
+
"notifications": "Notifications",
|
|
71
|
+
"profile": "Profile",
|
|
72
|
+
"security": "Security"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"reader": {
|
|
76
|
+
"bodies": {
|
|
77
|
+
"billing": "Change the card a subscription is billed to, and the day it is billed.",
|
|
78
|
+
"disputes": "Answer a disputed payment with the evidence the bank asks for.",
|
|
79
|
+
"invoices": "Download an invoice, or send it again to another address.",
|
|
80
|
+
"refunds": "Refund a payment in full or in part within 180 days."
|
|
81
|
+
},
|
|
82
|
+
"close": "Close article",
|
|
83
|
+
"closeTab": "Close article",
|
|
84
|
+
"label": "Help articles",
|
|
85
|
+
"names": {
|
|
86
|
+
"billing": "Billing",
|
|
87
|
+
"disputes": "Disputes",
|
|
88
|
+
"invoices": "Invoices",
|
|
89
|
+
"refunds": "Refunds"
|
|
90
|
+
},
|
|
91
|
+
"reopen": "Reopen the articles"
|
|
92
|
+
},
|
|
93
|
+
"scrolling": {
|
|
94
|
+
"about": "Fourteen draft orders in a list that scrolls sideways inside a scroll area, whose edges fade. The selected tab scrolls itself into view, and the page does not scroll.",
|
|
95
|
+
"title": "Many tabs"
|
|
96
|
+
},
|
|
97
|
+
"settings": "Settings",
|
|
98
|
+
"size": {
|
|
99
|
+
"about": "Every size. The size sets the tab's height and text on the control scale, and the panel's padding.",
|
|
100
|
+
"title": "Sizes"
|
|
101
|
+
},
|
|
102
|
+
"title": "Tabs",
|
|
103
|
+
"tuned": "The notifications, the currency and the statement day.",
|
|
104
|
+
"variant": {
|
|
105
|
+
"about": "Every look.",
|
|
106
|
+
"title": "Looks"
|
|
107
|
+
}
|
|
108
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"about": "Opens a short note beside its trigger on a press, and closes it on a second press, Escape or a press outside. It looks like a tooltip and opens like a popover, so it works on a touch screen and can contain a link. The trigger keeps focus, and a screen reader hears the note as it opens.",
|
|
3
|
+
"definition": {
|
|
4
|
+
"label": "Chargeback",
|
|
5
|
+
"tip": "A payment the cardholder's bank takes back after a dispute.",
|
|
6
|
+
"trigger": "About chargebacks"
|
|
7
|
+
},
|
|
8
|
+
"fees": {
|
|
9
|
+
"about": "Three fees in a data list, each with a note beside its name. Each note is a toggle tip of its own, and the buttons take their size and look from one `ButtonPropsProvider`.",
|
|
10
|
+
"conversion": {
|
|
11
|
+
"label": "Currency conversion",
|
|
12
|
+
"tip": "Charged on a payout in another currency.",
|
|
13
|
+
"trigger": "About currency conversion",
|
|
14
|
+
"value": "1%"
|
|
15
|
+
},
|
|
16
|
+
"payout": {
|
|
17
|
+
"label": "Payout fee",
|
|
18
|
+
"tip": "Charged once for each payout to your bank.",
|
|
19
|
+
"trigger": "About the payout fee",
|
|
20
|
+
"value": "€0.50"
|
|
21
|
+
},
|
|
22
|
+
"processing": {
|
|
23
|
+
"label": "Processing fee",
|
|
24
|
+
"tip": "Charged by the card network on every payment.",
|
|
25
|
+
"trigger": "About the processing fee",
|
|
26
|
+
"value": "2.9% + €0.25"
|
|
27
|
+
},
|
|
28
|
+
"title": "Fees"
|
|
29
|
+
},
|
|
30
|
+
"placement": {
|
|
31
|
+
"about": "The note on each side of its trigger, set by the machine's `positioning.placement`. The machine flips a note that would cross the edge of the window to the opposite side.",
|
|
32
|
+
"title": "Placement"
|
|
33
|
+
},
|
|
34
|
+
"terms": {
|
|
35
|
+
"about": "A note with a link. Tab from the trigger moves into the note, so the link is reachable from the keyboard, and Tab out of the note closes it.",
|
|
36
|
+
"label": "Returned payouts",
|
|
37
|
+
"link": "Read the terms",
|
|
38
|
+
"tip": "A returned payout is raised again after three working days.",
|
|
39
|
+
"title": "Note with a link",
|
|
40
|
+
"trigger": "About returned payouts"
|
|
41
|
+
},
|
|
42
|
+
"title": "Toggle tip",
|
|
43
|
+
"variant": {
|
|
44
|
+
"about": "Every look at every size. Press a trigger to open its note. The size sets the note's padding and text.",
|
|
45
|
+
"title": "Looks and sizes"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"about": "Renders a short label beside a control, shown on hover and on keyboard focus.",
|
|
3
|
+
"placement": {
|
|
4
|
+
"about": "The content on each side of the trigger, set by the machine's `positioning.placement`. The machine flips content that would cross the edge of the window to the opposite side.",
|
|
5
|
+
"title": "Placement"
|
|
6
|
+
},
|
|
7
|
+
"save": "Save",
|
|
8
|
+
"saves": "Saves without closing",
|
|
9
|
+
"title": "Tooltip",
|
|
10
|
+
"variant": {
|
|
11
|
+
"about": "Both looks at every size. A tooltip opens after `openDelay` when the pointer rests on its trigger, and at once when keyboard focus moves to the trigger.",
|
|
12
|
+
"title": "Looks and sizes"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"about": "Truncate clips text to a number of lines with an ellipsis, and shows the whole text in a tooltip only while something is cut off. The text is measured, so the tooltip goes away when the box grows. A clamp clips the paint and not the document, so a screen reader reads the whole text once.",
|
|
3
|
+
"description": {
|
|
4
|
+
"text": "Barge NL-2291 left Rotterdam Maasvlakte II at 04:15 for Duisburg Ruhrort. At Emmerich am Rhein a customs count found two seals broken and one container declared for a consignee that closed in March, so the load goes back down the Rhine to the terminal that loaded it."
|
|
5
|
+
},
|
|
6
|
+
"fits": {
|
|
7
|
+
"about": "The same component around text that fits: no tooltip, no tab stop and no mark, because a tooltip that repeats text already on the page adds nothing.",
|
|
8
|
+
"name": "Duisburg Ruhrort",
|
|
9
|
+
"title": "Text that fits"
|
|
10
|
+
},
|
|
11
|
+
"lines": {
|
|
12
|
+
"about": "One description at 1, 2 and 3 lines in one narrow room. Every one of them clips, so every one shows the whole text in a tooltip under the pointer.",
|
|
13
|
+
"title": "Lines"
|
|
14
|
+
},
|
|
15
|
+
"notes": {
|
|
16
|
+
"about": "A clipped note takes a tab stop because focusable is set, and keyboard focus opens its tooltip. The delivered note fits, so Tab skips it.",
|
|
17
|
+
"items": {
|
|
18
|
+
"delivered": "Delivered to the dock",
|
|
19
|
+
"held": "Held at Emmerich am Rhein for a customs count that found two seals broken on the upper tier",
|
|
20
|
+
"rerouted": "Rerouted through Nijmegen after the lock at Weurt closed for repairs until Thursday morning"
|
|
21
|
+
},
|
|
22
|
+
"title": "Reachable by keyboard"
|
|
23
|
+
},
|
|
24
|
+
"shipment": {
|
|
25
|
+
"about": "Clipped text on a row beside a badge that does not shrink. The text takes the room the badge leaves and clips there, in place of pushing the badge off the row.",
|
|
26
|
+
"note": "Barge NL-2291 held at Emmerich am Rhein for a customs count after two seals were found broken on the upper tier",
|
|
27
|
+
"status": "Held",
|
|
28
|
+
"title": "Beside something fixed"
|
|
29
|
+
},
|
|
30
|
+
"title": "Truncate"
|
|
31
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stealthscale/component-disclosure",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Draws what is shown and hidden on the reader's say-so.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accordion",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"files": [
|
|
20
20
|
"dist",
|
|
21
21
|
"LICENSE",
|
|
22
|
+
"locales",
|
|
22
23
|
"README.md"
|
|
23
24
|
],
|
|
24
25
|
"type": "module",
|
|
@@ -48,16 +49,16 @@
|
|
|
48
49
|
},
|
|
49
50
|
"devDependencies": {
|
|
50
51
|
"@arethetypeswrong/core": "^0.18",
|
|
51
|
-
"@stealthscale/component-a11y": "^0.1.
|
|
52
|
-
"@stealthscale/component-actions": "^0.2.
|
|
53
|
-
"@stealthscale/component-primitives": "^0.3.
|
|
52
|
+
"@stealthscale/component-a11y": "^0.1.3",
|
|
53
|
+
"@stealthscale/component-actions": "^0.2.3",
|
|
54
|
+
"@stealthscale/component-primitives": "^0.3.1",
|
|
54
55
|
"@stealthscale/hooks": "^0.3.0",
|
|
55
56
|
"@stealthscale/theme": "^0.5.0",
|
|
56
57
|
"@stealthscale/vite-config": "^0.8.0",
|
|
57
|
-
"@stealthscale/vite-config-i18n": "^0.2.
|
|
58
|
+
"@stealthscale/vite-config-i18n": "^0.2.2",
|
|
58
59
|
"@stealthscale/vite-config-react": "^0.9.1",
|
|
59
|
-
"@stealthscale/vite-config-specimen": "^0.
|
|
60
|
-
"@stealthscale/vite-config-theme": "^0.
|
|
60
|
+
"@stealthscale/vite-config-specimen": "^0.3.0",
|
|
61
|
+
"@stealthscale/vite-config-theme": "^0.3.0",
|
|
61
62
|
"@stealthscale/vite-config-typescript": "^0.3.0",
|
|
62
63
|
"@testing-library/react": "^16.3",
|
|
63
64
|
"@types/react": "^19.3",
|
|
@@ -73,8 +74,8 @@
|
|
|
73
74
|
"vitest": "5.0.3"
|
|
74
75
|
},
|
|
75
76
|
"peerDependencies": {
|
|
76
|
-
"@stealthscale/component-a11y": "^0.1.
|
|
77
|
-
"@stealthscale/component-primitives": "^0.3.
|
|
77
|
+
"@stealthscale/component-a11y": "^0.1.3",
|
|
78
|
+
"@stealthscale/component-primitives": "^0.3.1",
|
|
78
79
|
"@stealthscale/hooks": "^0.3.0",
|
|
79
80
|
"@stealthscale/theme": "^0.5.0",
|
|
80
81
|
"react": "^19.3"
|
|
File without changes
|