@oxy.so/bloom 7.32.0 → 7.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/adoption-matrix.mdx +1 -1
- package/docs/settings-modal.mdx +42 -8
- package/lib/commonjs/settings-modal/fields.js +19 -0
- package/lib/commonjs/settings-modal/fields.js.map +1 -0
- package/lib/commonjs/settings-modal/modal.js +51 -0
- package/lib/commonjs/settings-modal/modal.js.map +1 -0
- package/lib/module/settings-modal/fields.js +10 -0
- package/lib/module/settings-modal/fields.js.map +1 -0
- package/lib/module/settings-modal/modal.js +16 -0
- package/lib/module/settings-modal/modal.js.map +1 -0
- package/lib/typescript/commonjs/settings-modal/fields.d.ts +9 -0
- package/lib/typescript/commonjs/settings-modal/fields.d.ts.map +1 -0
- package/lib/typescript/commonjs/settings-modal/modal.d.ts +15 -0
- package/lib/typescript/commonjs/settings-modal/modal.d.ts.map +1 -0
- package/lib/typescript/module/settings-modal/fields.d.ts +9 -0
- package/lib/typescript/module/settings-modal/fields.d.ts.map +1 -0
- package/lib/typescript/module/settings-modal/modal.d.ts +15 -0
- package/lib/typescript/module/settings-modal/modal.d.ts.map +1 -0
- package/package.json +35 -1
- package/src/settings-modal/fields.ts +8 -0
- package/src/settings-modal/modal.ts +34 -0
package/docs/adoption-matrix.mdx
CHANGED
|
@@ -280,7 +280,7 @@ The classification is an EQUALITY in `src/__tests__/adoption-matrix.test.ts`, no
|
|
|
280
280
|
| `segmented-control` | `@oxy.so/bloom/segmented-control` + barrel | universal | `segmented-control.mdx` | yes | 4 | reads | reads | | |
|
|
281
281
|
| `select` | `@oxy.so/bloom/select` + barrel | web fork | `select.mdx` | yes | 12 | reads | reads | reads | reads |
|
|
282
282
|
| `settings-list` | `@oxy.so/bloom/settings-list` + barrel | universal | `settings-list.mdx` | yes | 5 | | | | |
|
|
283
|
-
| `settings-modal` | `@oxy.so/bloom/settings-modal` + barrel | universal | `settings-modal.mdx` | yes |
|
|
283
|
+
| `settings-modal` | `@oxy.so/bloom/settings-modal` + barrel | universal | `settings-modal.mdx` | yes | 12 | | | | reads |
|
|
284
284
|
| `shapes` | `@oxy.so/bloom/shapes` + barrel | universal | `shapes.mdx` | yes | 4 | | | | |
|
|
285
285
|
| `shipment-request` | `@oxy.so/bloom/shipment-request` + barrel | universal | `shipment-request.mdx` | yes | 1 | **adaptation** | | | |
|
|
286
286
|
| `sidebar` | `@oxy.so/bloom/sidebar` + barrel | universal | `sidebar.mdx` | yes | 12 | n/a¹ | reads | | reads |
|
package/docs/settings-modal.mdx
CHANGED
|
@@ -105,20 +105,54 @@ Menus, selects, tooltips and the date popover opened inside a page stack above i
|
|
|
105
105
|
|
|
106
106
|
**The hairline stops 12px short of the card's left edge** because the padding lives on the card, not the row — rows must be direct children of `SettingsCard` (fragments are flattened). "Last" is derived from the card's children, since React Native has no `:last-child`.
|
|
107
107
|
|
|
108
|
-
|
|
108
|
+
## Entries
|
|
109
109
|
|
|
110
|
-
|
|
110
|
+
Metro does not tree-shake barrel exports, and a web bundler splitting lazy
|
|
111
|
+
chunks hoists any module two lazy chunks share into the common chunk that loads
|
|
112
|
+
at first paint. So importing one name from `@oxy.so/bloom/settings-modal` links
|
|
113
|
+
everything that barrel reaches. Import from the narrowest entry that has what
|
|
114
|
+
you draw:
|
|
115
|
+
|
|
116
|
+
| Entry | Exports | Does not link |
|
|
117
|
+
| --- | --- | --- |
|
|
118
|
+
| `@oxy.so/bloom/settings-modal` | everything on this page | — |
|
|
119
|
+
| `@oxy.so/bloom/settings-modal/modal` | `SettingsModal`, `SettingsCard`, `SettingsRow`, `SettingsSection`, `SettingsSectionLabel`, `SettingsValueField`, `useSettingsSavedToast` and the modal/nav/page/row prop types | the General/Profile/Tools/Storage pages, `SettingsPlanCard`/`SettingsPlanArt`, the text/date fields — and through them `Select`, `FileUpload`, `Pagination`, `DropdownMenu`, `Checkbox`, `Chip`, `Tooltip`, `EmptyState`, `TextField`, `Popover` and the calendar |
|
|
120
|
+
| `@oxy.so/bloom/settings-modal/fields` | `SettingsTextField`, `SettingsDateField` and their prop types | the modal and every page |
|
|
121
|
+
| `@oxy.so/bloom/settings-modal/rows` | `SettingsCard`, `SettingsRow`, `SettingsSection`, `SettingsSectionLabel`, `SettingsValueField` and their prop types | the modal, every page and the fields |
|
|
122
|
+
|
|
123
|
+
Every entry hands out the same components (identical references) as the full one,
|
|
124
|
+
so mixing entries in one app is safe.
|
|
125
|
+
|
|
126
|
+
An app whose pages are its own rows of switches and values — the usual case —
|
|
127
|
+
draws the modal from `modal`, adding `fields` only if it uses the committing
|
|
128
|
+
fields:
|
|
129
|
+
|
|
130
|
+
```tsx
|
|
131
|
+
import {
|
|
132
|
+
SettingsCard,
|
|
133
|
+
SettingsModal,
|
|
134
|
+
SettingsRow,
|
|
135
|
+
SettingsSection,
|
|
136
|
+
} from '@oxy.so/bloom/settings-modal/modal';
|
|
137
|
+
import { SettingsTextField } from '@oxy.so/bloom/settings-modal/fields';
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
Measured in GoWay's web export (Bloom 6.2.1, before `modal` existed): its
|
|
141
|
+
lazily loaded settings modal, drawn from the full entry, reached `Select` through
|
|
142
|
+
the Storage page it never rendered. Another lazy chunk also uses `Select`, so the
|
|
143
|
+
bundler moved it into the first-paint common chunk: +4.7 KB gzip on every page
|
|
144
|
+
load.
|
|
145
|
+
|
|
146
|
+
A preference card on a screen or in a sheet, outside the dialog, imports `rows`:
|
|
111
147
|
|
|
112
148
|
```tsx
|
|
113
149
|
import { SettingsCard, SettingsRow } from '@oxy.so/bloom/settings-modal/rows';
|
|
114
150
|
```
|
|
115
151
|
|
|
116
|
-
|
|
117
|
-
`
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
one row imported from `@oxy.so/bloom/settings-modal` put the whole dialog in the
|
|
121
|
-
bundle of the screen that drew it. Gate: `lean-entries.test.ts`.
|
|
152
|
+
Gate: `lean-entries.test.ts` walks each entry's static import graph, with
|
|
153
|
+
`.native` and `.web` forks resolved as each platform's bundler does, and fails if
|
|
154
|
+
`modal` or `fields` reaches a page or a page-only family; a control asserts the
|
|
155
|
+
full entry does reach them.
|
|
122
156
|
|
|
123
157
|
## Pages
|
|
124
158
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "SettingsDateField", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _SettingsFields.SettingsDateField;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "SettingsTextField", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _SettingsFields.SettingsTextField;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
var _SettingsFields = require("./SettingsFields.js");
|
|
19
|
+
//# sourceMappingURL=fields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_SettingsFields","require"],"sourceRoot":"../../../src","sources":["settings-modal/fields.ts"],"mappings":";;;;;;;;;;;;;;;;;AAMA,IAAAA,eAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "SettingsCard", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _SettingsRows.SettingsCard;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "SettingsModal", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _SettingsModal.SettingsModal;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "SettingsRow", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _SettingsRows.SettingsRow;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "SettingsSection", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _SettingsRows.SettingsSection;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "SettingsSectionLabel", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return _SettingsRows.SettingsSectionLabel;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "SettingsValueField", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () {
|
|
39
|
+
return _SettingsRows.SettingsValueField;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "useSettingsSavedToast", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () {
|
|
45
|
+
return _context.useSettingsSavedToast;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
var _SettingsModal = require("./SettingsModal.js");
|
|
49
|
+
var _SettingsRows = require("./SettingsRows.js");
|
|
50
|
+
var _context = require("./context.js");
|
|
51
|
+
//# sourceMappingURL=modal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_SettingsModal","require","_SettingsRows","_context"],"sourceRoot":"../../../src","sources":["settings-modal/modal.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,IAAAA,cAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AAOA,IAAAE,QAAA,GAAAF,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Lean entry for the committing settings fields, to pair with
|
|
5
|
+
* `settings-modal/modal` or `settings-modal/rows`. Kept apart from the modal
|
|
6
|
+
* shell because `SettingsDateField` links the calendar, `Popover` and
|
|
7
|
+
* `TextField`, which a modal of switches and values never needs.
|
|
8
|
+
*/
|
|
9
|
+
export { SettingsTextField, SettingsDateField } from "./SettingsFields.js";
|
|
10
|
+
//# sourceMappingURL=fields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["SettingsTextField","SettingsDateField"],"sourceRoot":"../../../src","sources":["settings-modal/fields.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,iBAAiB,EAAEC,iBAAiB,QAAQ,qBAAkB","ignoreList":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Lean entry for the settings dialog itself: the `SettingsModal` shell, the
|
|
5
|
+
* row chrome its pages are built from, and the saved-toast hook. Same
|
|
6
|
+
* components as `settings-modal`, without linking the Storage, Tools or Plan
|
|
7
|
+
* pages (and with them `Select`, `FileUpload`, `Pagination`, `DropdownMenu`)
|
|
8
|
+
* or the text/date fields' `TextField` and calendar. Metro does not tree-shake
|
|
9
|
+
* barrel exports, so the full entry put all of those in any bundle that drew
|
|
10
|
+
* the modal — and a lazy modal chunk sharing `Select` with another lazy chunk
|
|
11
|
+
* hoisted it into the first-paint common chunk.
|
|
12
|
+
*/
|
|
13
|
+
export { SettingsModal } from "./SettingsModal.js";
|
|
14
|
+
export { SettingsCard, SettingsRow, SettingsSection, SettingsSectionLabel, SettingsValueField } from "./SettingsRows.js";
|
|
15
|
+
export { useSettingsSavedToast } from "./context.js";
|
|
16
|
+
//# sourceMappingURL=modal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["SettingsModal","SettingsCard","SettingsRow","SettingsSection","SettingsSectionLabel","SettingsValueField","useSettingsSavedToast"],"sourceRoot":"../../../src","sources":["settings-modal/modal.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,aAAa,QAAQ,oBAAiB;AAC/C,SACEC,YAAY,EACZC,WAAW,EACXC,eAAe,EACfC,oBAAoB,EACpBC,kBAAkB,QACb,mBAAgB;AACvB,SAASC,qBAAqB,QAAQ,cAAW","ignoreList":[]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lean entry for the committing settings fields, to pair with
|
|
3
|
+
* `settings-modal/modal` or `settings-modal/rows`. Kept apart from the modal
|
|
4
|
+
* shell because `SettingsDateField` links the calendar, `Popover` and
|
|
5
|
+
* `TextField`, which a modal of switches and values never needs.
|
|
6
|
+
*/
|
|
7
|
+
export { SettingsTextField, SettingsDateField } from './SettingsFields';
|
|
8
|
+
export type { SettingsDateFieldProps, SettingsTextFieldProps } from './types';
|
|
9
|
+
//# sourceMappingURL=fields.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fields.d.ts","sourceRoot":"","sources":["../../../../src/settings-modal/fields.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACxE,YAAY,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lean entry for the settings dialog itself: the `SettingsModal` shell, the
|
|
3
|
+
* row chrome its pages are built from, and the saved-toast hook. Same
|
|
4
|
+
* components as `settings-modal`, without linking the Storage, Tools or Plan
|
|
5
|
+
* pages (and with them `Select`, `FileUpload`, `Pagination`, `DropdownMenu`)
|
|
6
|
+
* or the text/date fields' `TextField` and calendar. Metro does not tree-shake
|
|
7
|
+
* barrel exports, so the full entry put all of those in any bundle that drew
|
|
8
|
+
* the modal — and a lazy modal chunk sharing `Select` with another lazy chunk
|
|
9
|
+
* hoisted it into the first-paint common chunk.
|
|
10
|
+
*/
|
|
11
|
+
export { SettingsModal } from './SettingsModal';
|
|
12
|
+
export { SettingsCard, SettingsRow, SettingsSection, SettingsSectionLabel, SettingsValueField, } from './SettingsRows';
|
|
13
|
+
export { useSettingsSavedToast } from './context';
|
|
14
|
+
export type { SettingsCardProps, SettingsIcon, SettingsModalLabels, SettingsModalPage, SettingsModalPageNavigation, SettingsModalProps, SettingsNavGroup, SettingsNavItem, SettingsRowProps, SettingsSectionLabelProps, SettingsSectionProps, SettingsValueFieldProps, } from './types';
|
|
15
|
+
//# sourceMappingURL=modal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../../src/settings-modal/modal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EACL,YAAY,EACZ,WAAW,EACX,eAAe,EACf,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAElD,YAAY,EACV,iBAAiB,EACjB,YAAY,EACZ,mBAAmB,EACnB,iBAAiB,EACjB,2BAA2B,EAC3B,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,yBAAyB,EACzB,oBAAoB,EACpB,uBAAuB,GACxB,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lean entry for the committing settings fields, to pair with
|
|
3
|
+
* `settings-modal/modal` or `settings-modal/rows`. Kept apart from the modal
|
|
4
|
+
* shell because `SettingsDateField` links the calendar, `Popover` and
|
|
5
|
+
* `TextField`, which a modal of switches and values never needs.
|
|
6
|
+
*/
|
|
7
|
+
export { SettingsTextField, SettingsDateField } from './SettingsFields';
|
|
8
|
+
export type { SettingsDateFieldProps, SettingsTextFieldProps } from './types';
|
|
9
|
+
//# sourceMappingURL=fields.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fields.d.ts","sourceRoot":"","sources":["../../../../src/settings-modal/fields.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACxE,YAAY,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lean entry for the settings dialog itself: the `SettingsModal` shell, the
|
|
3
|
+
* row chrome its pages are built from, and the saved-toast hook. Same
|
|
4
|
+
* components as `settings-modal`, without linking the Storage, Tools or Plan
|
|
5
|
+
* pages (and with them `Select`, `FileUpload`, `Pagination`, `DropdownMenu`)
|
|
6
|
+
* or the text/date fields' `TextField` and calendar. Metro does not tree-shake
|
|
7
|
+
* barrel exports, so the full entry put all of those in any bundle that drew
|
|
8
|
+
* the modal — and a lazy modal chunk sharing `Select` with another lazy chunk
|
|
9
|
+
* hoisted it into the first-paint common chunk.
|
|
10
|
+
*/
|
|
11
|
+
export { SettingsModal } from './SettingsModal';
|
|
12
|
+
export { SettingsCard, SettingsRow, SettingsSection, SettingsSectionLabel, SettingsValueField, } from './SettingsRows';
|
|
13
|
+
export { useSettingsSavedToast } from './context';
|
|
14
|
+
export type { SettingsCardProps, SettingsIcon, SettingsModalLabels, SettingsModalPage, SettingsModalPageNavigation, SettingsModalProps, SettingsNavGroup, SettingsNavItem, SettingsRowProps, SettingsSectionLabelProps, SettingsSectionProps, SettingsValueFieldProps, } from './types';
|
|
15
|
+
//# sourceMappingURL=modal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../../src/settings-modal/modal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EACL,YAAY,EACZ,WAAW,EACX,eAAe,EACf,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAElD,YAAY,EACV,iBAAiB,EACjB,YAAY,EACZ,mBAAmB,EACnB,iBAAiB,EACjB,2BAA2B,EAC3B,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,yBAAyB,EACzB,oBAAoB,EACpB,uBAAuB,GACxB,MAAM,SAAS,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxy.so/bloom",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.33.0",
|
|
4
4
|
"packageManager": "bun@1.3.14",
|
|
5
5
|
"description": "Bloom UI — Oxy ecosystem component library for React Native + Expo + Web",
|
|
6
6
|
"main": "lib/commonjs/index.js",
|
|
@@ -906,6 +906,34 @@
|
|
|
906
906
|
"default": "./lib/commonjs/settings-modal/rows.js"
|
|
907
907
|
}
|
|
908
908
|
},
|
|
909
|
+
"./settings-modal/modal": {
|
|
910
|
+
"react-native": {
|
|
911
|
+
"types": "./lib/typescript/module/settings-modal/modal.d.ts",
|
|
912
|
+
"default": "./src/settings-modal/modal.ts"
|
|
913
|
+
},
|
|
914
|
+
"import": {
|
|
915
|
+
"types": "./lib/typescript/module/settings-modal/modal.d.ts",
|
|
916
|
+
"default": "./lib/module/settings-modal/modal.js"
|
|
917
|
+
},
|
|
918
|
+
"require": {
|
|
919
|
+
"types": "./lib/typescript/commonjs/settings-modal/modal.d.ts",
|
|
920
|
+
"default": "./lib/commonjs/settings-modal/modal.js"
|
|
921
|
+
}
|
|
922
|
+
},
|
|
923
|
+
"./settings-modal/fields": {
|
|
924
|
+
"react-native": {
|
|
925
|
+
"types": "./lib/typescript/module/settings-modal/fields.d.ts",
|
|
926
|
+
"default": "./src/settings-modal/fields.ts"
|
|
927
|
+
},
|
|
928
|
+
"import": {
|
|
929
|
+
"types": "./lib/typescript/module/settings-modal/fields.d.ts",
|
|
930
|
+
"default": "./lib/module/settings-modal/fields.js"
|
|
931
|
+
},
|
|
932
|
+
"require": {
|
|
933
|
+
"types": "./lib/typescript/commonjs/settings-modal/fields.d.ts",
|
|
934
|
+
"default": "./lib/commonjs/settings-modal/fields.js"
|
|
935
|
+
}
|
|
936
|
+
},
|
|
909
937
|
"./auth-card": {
|
|
910
938
|
"react-native": {
|
|
911
939
|
"types": "./lib/typescript/module/auth-card/index.d.ts",
|
|
@@ -3886,6 +3914,12 @@
|
|
|
3886
3914
|
"settings-modal/rows": [
|
|
3887
3915
|
"./lib/typescript/module/settings-modal/rows.d.ts"
|
|
3888
3916
|
],
|
|
3917
|
+
"settings-modal/modal": [
|
|
3918
|
+
"./lib/typescript/module/settings-modal/modal.d.ts"
|
|
3919
|
+
],
|
|
3920
|
+
"settings-modal/fields": [
|
|
3921
|
+
"./lib/typescript/module/settings-modal/fields.d.ts"
|
|
3922
|
+
],
|
|
3889
3923
|
"auth-card": [
|
|
3890
3924
|
"./lib/typescript/module/auth-card/index.d.ts"
|
|
3891
3925
|
],
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lean entry for the committing settings fields, to pair with
|
|
3
|
+
* `settings-modal/modal` or `settings-modal/rows`. Kept apart from the modal
|
|
4
|
+
* shell because `SettingsDateField` links the calendar, `Popover` and
|
|
5
|
+
* `TextField`, which a modal of switches and values never needs.
|
|
6
|
+
*/
|
|
7
|
+
export { SettingsTextField, SettingsDateField } from './SettingsFields';
|
|
8
|
+
export type { SettingsDateFieldProps, SettingsTextFieldProps } from './types';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lean entry for the settings dialog itself: the `SettingsModal` shell, the
|
|
3
|
+
* row chrome its pages are built from, and the saved-toast hook. Same
|
|
4
|
+
* components as `settings-modal`, without linking the Storage, Tools or Plan
|
|
5
|
+
* pages (and with them `Select`, `FileUpload`, `Pagination`, `DropdownMenu`)
|
|
6
|
+
* or the text/date fields' `TextField` and calendar. Metro does not tree-shake
|
|
7
|
+
* barrel exports, so the full entry put all of those in any bundle that drew
|
|
8
|
+
* the modal — and a lazy modal chunk sharing `Select` with another lazy chunk
|
|
9
|
+
* hoisted it into the first-paint common chunk.
|
|
10
|
+
*/
|
|
11
|
+
export { SettingsModal } from './SettingsModal';
|
|
12
|
+
export {
|
|
13
|
+
SettingsCard,
|
|
14
|
+
SettingsRow,
|
|
15
|
+
SettingsSection,
|
|
16
|
+
SettingsSectionLabel,
|
|
17
|
+
SettingsValueField,
|
|
18
|
+
} from './SettingsRows';
|
|
19
|
+
export { useSettingsSavedToast } from './context';
|
|
20
|
+
|
|
21
|
+
export type {
|
|
22
|
+
SettingsCardProps,
|
|
23
|
+
SettingsIcon,
|
|
24
|
+
SettingsModalLabels,
|
|
25
|
+
SettingsModalPage,
|
|
26
|
+
SettingsModalPageNavigation,
|
|
27
|
+
SettingsModalProps,
|
|
28
|
+
SettingsNavGroup,
|
|
29
|
+
SettingsNavItem,
|
|
30
|
+
SettingsRowProps,
|
|
31
|
+
SettingsSectionLabelProps,
|
|
32
|
+
SettingsSectionProps,
|
|
33
|
+
SettingsValueFieldProps,
|
|
34
|
+
} from './types';
|