@oxy.so/bloom 7.32.0 → 7.33.1

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 (30) hide show
  1. package/docs/adoption-matrix.mdx +4 -4
  2. package/docs/settings-modal.mdx +42 -8
  3. package/lib/commonjs/settings-modal/fields.js +19 -0
  4. package/lib/commonjs/settings-modal/fields.js.map +1 -0
  5. package/lib/commonjs/settings-modal/modal.js +51 -0
  6. package/lib/commonjs/settings-modal/modal.js.map +1 -0
  7. package/lib/commonjs/text-field/FieldBox.js +29 -7
  8. package/lib/commonjs/text-field/FieldBox.js.map +1 -1
  9. package/lib/module/settings-modal/fields.js +10 -0
  10. package/lib/module/settings-modal/fields.js.map +1 -0
  11. package/lib/module/settings-modal/modal.js +16 -0
  12. package/lib/module/settings-modal/modal.js.map +1 -0
  13. package/lib/module/text-field/FieldBox.js +27 -5
  14. package/lib/module/text-field/FieldBox.js.map +1 -1
  15. package/lib/typescript/commonjs/settings-modal/fields.d.ts +9 -0
  16. package/lib/typescript/commonjs/settings-modal/fields.d.ts.map +1 -0
  17. package/lib/typescript/commonjs/settings-modal/modal.d.ts +15 -0
  18. package/lib/typescript/commonjs/settings-modal/modal.d.ts.map +1 -0
  19. package/lib/typescript/commonjs/text-field/FieldBox.d.ts +8 -1
  20. package/lib/typescript/commonjs/text-field/FieldBox.d.ts.map +1 -1
  21. package/lib/typescript/module/settings-modal/fields.d.ts +9 -0
  22. package/lib/typescript/module/settings-modal/fields.d.ts.map +1 -0
  23. package/lib/typescript/module/settings-modal/modal.d.ts +15 -0
  24. package/lib/typescript/module/settings-modal/modal.d.ts.map +1 -0
  25. package/lib/typescript/module/text-field/FieldBox.d.ts +8 -1
  26. package/lib/typescript/module/text-field/FieldBox.d.ts.map +1 -1
  27. package/package.json +35 -1
  28. package/src/settings-modal/fields.ts +8 -0
  29. package/src/settings-modal/modal.ts +34 -0
  30. package/src/text-field/FieldBox.tsx +29 -6
@@ -193,7 +193,7 @@ The classification is an EQUALITY in `src/__tests__/adoption-matrix.test.ts`, no
193
193
  | `hooks` | `@oxy.so/bloom/hooks` + barrel | universal | `hooks.mdx` | yes | 19 | | | | reads |
194
194
  | `hover-card` | `@oxy.so/bloom/hover-card` + barrel | web fork | `hover-card.mdx` | yes | 4 | | | reads | reads |
195
195
  | `icon-circle` | `@oxy.so/bloom/icon-circle` + barrel | universal | `icon-circle.mdx` | yes | 1 | | | | |
196
- | `icons` | `@oxy.so/bloom/icons` + barrel | universal | `icons.mdx` | yes | 62 | | | | |
196
+ | `icons` | `@oxy.so/bloom/icons` + barrel | universal | `icons.mdx` | yes | 63 | | | | |
197
197
  | `image-aspect-ratio-cache` | `@oxy.so/bloom/image-aspect-ratio-cache` + barrel | universal | `image-aspect-ratio-cache.mdx` | yes | 1 | | | | |
198
198
  | `image-resolver` | `@oxy.so/bloom/image-resolver` + barrel | universal | `image-resolver.mdx` | yes | 8 | | | | |
199
199
  | `important-alerts-card` | `@oxy.so/bloom/important-alerts-card` + barrel | universal | `important-alerts-card.mdx` | yes | 1 | | | | |
@@ -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 | 11 | | | | reads |
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 |
@@ -307,9 +307,9 @@ The classification is an EQUALITY in `src/__tests__/adoption-matrix.test.ts`, no
307
307
  | `task-list` | `@oxy.so/bloom/task-list` + barrel | universal | `task-list.mdx` | yes | 1 | | | | |
308
308
  | `teleport` | `@oxy.so/bloom/teleport` | universal | `teleport.mdx` | yes | 1 | | | | |
309
309
  | `tenancy` | `@oxy.so/bloom/tenancy` + barrel | universal | `tenancy.mdx` | yes | 5 | | reads | | |
310
- | `text-field` | `@oxy.so/bloom/text-field` + barrel | universal | `text-field.mdx` | yes | 17 | reads | reads | | |
310
+ | `text-field` | `@oxy.so/bloom/text-field` + barrel | universal | `text-field.mdx` | yes | 18 | reads | reads | | |
311
311
  | `textarea` | `@oxy.so/bloom/textarea` + barrel | universal | `textarea.mdx` | yes | 4 | reads | reads | | n/a¹ |
312
- | `theme` | `@oxy.so/bloom/theme` + barrel | web fork | `theme.mdx` | yes | 381 | | | n/a¹ | reads |
312
+ | `theme` | `@oxy.so/bloom/theme` + barrel | web fork | `theme.mdx` | yes | 382 | | | n/a¹ | reads |
313
313
  | `theme-toggle` | `@oxy.so/bloom/theme-toggle` + barrel | universal | `theme-toggle.mdx` | yes | 2 | n/a¹ | | | |
314
314
  | `toast` | `@oxy.so/bloom/toast` + barrel | universal | `toast.mdx` | yes | 18 | | | | |
315
315
  | `tooltip` | `@oxy.so/bloom/tooltip` + barrel | web fork | `tooltip.mdx` | yes | 1 | | | | |
@@ -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
- ### Rows outside the dialog
108
+ ## Entries
109
109
 
110
- A preference card on a screen or in a sheet imports the lightweight entry:
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
- It carries `SettingsCard`, `SettingsRow`, `SettingsSection`,
117
- `SettingsSectionLabel` and `SettingsValueField` (and their prop types) — the
118
- same components — without linking `SettingsModal`, the storage/tools/plan pages
119
- or `SettingsDateField`'s calendar. Metro does not tree-shake barrel exports, so
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":[]}
@@ -3,17 +3,23 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.FieldBox = void 0;
7
- var _react = _interopRequireDefault(require("react"));
6
+ exports.FieldBox = exports.FIELD_BOX_CSS = void 0;
7
+ exports.horizontalPadding = horizontalPadding;
8
8
  var _reactNative = require("react-native");
9
9
  var _reactNativeCss = require("react-native-css");
10
10
  var _interactiveWebCss = require("../styles/interactive-web-css.js");
11
11
  var _resolveNativeWebStyle = require("../styles/resolve-native-web-style.js");
12
12
  var _jsxRuntime = require("react/jsx-runtime");
13
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
13
  // The field owns two distinct boxes: layout and a non-layout inset ring. Keep
15
14
  // their defaults below caller classes without moving the ring into box sizing.
16
- const properties = ['width', 'minWidth', 'flex', 'flexDirection', 'alignItems', 'position', 'paddingLeft', 'paddingRight', 'paddingInlineStart', 'paddingInlineEnd', 'borderRadius', 'borderWidth', 'borderColor', 'backgroundColor', 'zIndex', 'top', 'right', 'bottom', 'left', 'transitionProperty', 'transitionDuration', 'transitionTimingFunction'];
15
+ //
16
+ // Horizontal padding is declared ONCE, as the logical pair. A rule that also
17
+ // declares `padding-left`/`padding-right` lets whichever comes later win for
18
+ // the same side, and an unset variable falls back to `initial`: with both
19
+ // families listed, `padding-inline-start: initial` silently zeroed every
20
+ // field's `paddingHorizontal` (7.17.0 to 7.33.0). Physical defaults are folded
21
+ // into the logical pair against this box's own `dir` (`horizontalPadding`).
22
+ const properties = ['width', 'minWidth', 'flex', 'flexDirection', 'alignItems', 'position', 'paddingInlineStart', 'paddingInlineEnd', 'borderRadius', 'borderWidth', 'borderColor', 'backgroundColor', 'zIndex', 'top', 'right', 'bottom', 'left', 'transitionProperty', 'transitionDuration', 'transitionTimingFunction'];
17
23
  const cssName = name => name.replace(/[A-Z]/g, c => `-${c.toLowerCase()}`);
18
24
  const fallbacks = {
19
25
  borderWidth: '0px',
@@ -21,7 +27,19 @@ const fallbacks = {
21
27
  flex: '0 0 auto',
22
28
  flexDirection: 'column'
23
29
  };
24
- const CSS = `@layer base { [data-bloom-field-box] { display:flex; box-sizing:border-box; border-style:solid; border-width:0; min-width:0; ${properties.map(name => `${cssName(name)}:var(--bloom-field-${cssName(name)},${fallbacks[name] ?? 'initial'});`).join('')} } }`;
30
+ /**
31
+ * The resting horizontal padding as the logical pair. A logical value wins over
32
+ * a physical one for the same side, as `paddingStart` wins over `paddingLeft`
33
+ * in React Native; a physical value keeps its side by mapping through `dir`.
34
+ */
35
+ function horizontalPadding(defaults, dir) {
36
+ const rtl = dir === 'rtl';
37
+ return {
38
+ paddingInlineStart: defaults.paddingInlineStart ?? (rtl ? defaults.paddingRight : defaults.paddingLeft),
39
+ paddingInlineEnd: defaults.paddingInlineEnd ?? (rtl ? defaults.paddingLeft : defaults.paddingRight)
40
+ };
41
+ }
42
+ const FIELD_BOX_CSS = exports.FIELD_BOX_CSS = `@layer base { [data-bloom-field-box] { display:flex; box-sizing:border-box; border-style:solid; border-width:0; min-width:0; ${properties.map(name => `${cssName(name)}:var(--bloom-field-${cssName(name)},${fallbacks[name] ?? 'initial'});`).join('')} } }`;
25
43
  function FieldBoxComponent({
26
44
  children,
27
45
  className,
@@ -35,14 +53,18 @@ function FieldBoxComponent({
35
53
  onMouseOut,
36
54
  testID
37
55
  }) {
38
- (0, _interactiveWebCss.useInteractiveWebCss)('bloom-field-box', CSS);
56
+ (0, _interactiveWebCss.useInteractiveWebCss)('bloom-field-box', FIELD_BOX_CSS);
39
57
  if (_reactNative.Platform.OS !== 'web') return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
40
58
  pointerEvents: pointerEvents,
41
59
  testID: testID,
42
60
  style: [baseStyle, style, stateStyle],
43
61
  children: children
44
62
  });
45
- const defaults = (0, _resolveNativeWebStyle.resolveNativeWebStyle)(baseStyle);
63
+ const resolved = (0, _resolveNativeWebStyle.resolveNativeWebStyle)(baseStyle);
64
+ const defaults = {
65
+ ...resolved,
66
+ ...horizontalPadding(resolved, dir ?? 'ltr')
67
+ };
46
68
  const variables = {};
47
69
  for (const name of properties) {
48
70
  const value = defaults[name];
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeCss","_interactiveWebCss","_resolveNativeWebStyle","_jsxRuntime","e","__esModule","default","properties","cssName","name","replace","c","toLowerCase","fallbacks","borderWidth","minWidth","flex","flexDirection","CSS","map","join","FieldBoxComponent","children","className","style","baseStyle","stateStyle","dir","pointerEvents","onClick","onMouseOver","onMouseOut","testID","useInteractiveWebCss","Platform","OS","jsx","View","defaults","resolveNativeWebStyle","variables","value","undefined","unit","includes","display","NativeFieldBox","styled","FieldBox","exports"],"sourceRoot":"../../../src","sources":["text-field/FieldBox.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,kBAAA,GAAAH,OAAA;AACA,IAAAI,sBAAA,GAAAJ,OAAA;AAA2E,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE3E;AACA;AACA,MAAMG,UAAU,GAAG,CACjB,OAAO,EACP,UAAU,EACV,MAAM,EACN,eAAe,EACf,YAAY,EACZ,UAAU,EACV,aAAa,EACb,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,QAAQ,EACR,KAAK,EACL,OAAO,EACP,QAAQ,EACR,MAAM,EACN,oBAAoB,EACpB,oBAAoB,EACpB,0BAA0B,CAClB;AACV,MAAMC,OAAO,GAAIC,IAAY,IAAKA,IAAI,CAACC,OAAO,CAAC,QAAQ,EAAGC,CAAC,IAAK,IAAIA,CAAC,CAACC,WAAW,CAAC,CAAC,EAAE,CAAC;AACtF,MAAMC,SAAiC,GAAG;EACxCC,WAAW,EAAE,KAAK;EAClBC,QAAQ,EAAE,KAAK;EACfC,IAAI,EAAE,UAAU;EAChBC,aAAa,EAAE;AACjB,CAAC;AACD,MAAMC,GAAG,GAAG,gIAAgIX,UAAU,CAACY,GAAG,CAAEV,IAAI,IAAK,GAAGD,OAAO,CAACC,IAAI,CAAC,sBAAsBD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EACjE;EACA,oBACE,IAAAxC,WAAA,CAAAiC,GAAA;IACE,wBAAqB,EAAE;IACvB,eAAaJ,MAAO;IACpBT,SAAS,EAAEA,SAAU;IACrBI,GAAG,EAAEA,GAAG,IAAI,KAAM;IAClBE,OAAO,EAAEA,OAAQ;IACjBC,WAAW,EAAEA,WAAY;IACzBC,UAAU,EAAEA,UAAW;IACvBP,KAAK,EAAE;MACL,GAAGgB,SAAS;MACZ,GAAG,IAAAD,4CAAqB,EAACf,KAAK,CAAC;MAC/B,GAAG,IAAAe,4CAAqB,EAACb,UAAU,CAAC;MACpCE;IACF,CAAE;IAAAN,QAAA,eAIF,IAAAnB,WAAA,CAAAiC,GAAA,EAACrC,YAAA,CAAAsC,IAAI;MAAOV,GAAG,EAAEA,GAAG,IAAI,KAAK;MAAIH,KAAK,EAAE;QAAEqB,OAAO,EAAE;MAAW,CAAE;MAAAvB,QAAA,EAC7DA;IAAQ,CACL;EAAC,CACJ,CAAC;AAEV;AACA,MAAMwB,cAAc,GAAG,IAAAC,sBAAM,EAAC1B,iBAAiB,EAAE;EAAEE,SAAS,EAAE;AAAQ,CAAC,CAAC;AACjE,MAAMyB,QAAQ,GAAAC,OAAA,CAAAD,QAAA,GAAGd,qBAAQ,CAACC,EAAE,KAAK,KAAK,GAAGd,iBAAiB,GAAGyB,cAAc","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_reactNativeCss","_interactiveWebCss","_resolveNativeWebStyle","_jsxRuntime","properties","cssName","name","replace","c","toLowerCase","fallbacks","borderWidth","minWidth","flex","flexDirection","horizontalPadding","defaults","dir","rtl","paddingInlineStart","paddingRight","paddingLeft","paddingInlineEnd","FIELD_BOX_CSS","exports","map","join","FieldBoxComponent","children","className","style","baseStyle","stateStyle","pointerEvents","onClick","onMouseOver","onMouseOut","testID","useInteractiveWebCss","Platform","OS","jsx","View","resolved","resolveNativeWebStyle","variables","value","undefined","unit","includes","display","NativeFieldBox","styled","FieldBox"],"sourceRoot":"../../../src","sources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,CAAC,CAAC,MAAM,EAAE,QAAQ,CAAC,CAACG,QAAQ,CAAC3C,IAAI,CAAC,GAAG,IAAI,GAAG,EAAE;IACxFuC,SAAS,CAAC,iBAAiBxC,OAAO,CAACC,IAAI,CAAC,EAAE,CAAC,GAAG,GAAGwC,KAAK,GAAGE,IAAI,EAAE;EACjE;EACA,oBACE,IAAA7C,WAAA,CAAAsC,GAAA;IACE,wBAAqB,EAAE;IACvB,eAAaJ,MAAO;IACpBR,SAAS,EAAEA,SAAU;IACrBZ,GAAG,EAAEA,GAAG,IAAI,KAAM;IAClBiB,OAAO,EAAEA,OAAQ;IACjBC,WAAW,EAAEA,WAAY;IACzBC,UAAU,EAAEA,UAAW;IACvBN,KAAK,EAAE;MACL,GAAGe,SAAS;MACZ,GAAG,IAAAD,4CAAqB,EAACd,KAAK,CAAC;MAC/B,GAAG,IAAAc,4CAAqB,EAACZ,UAAU,CAAC;MACpCC;IACF,CAAE;IAAAL,QAAA,eAIF,IAAAzB,WAAA,CAAAsC,GAAA,EAAC3C,YAAA,CAAA4C,IAAI;MAAOzB,GAAG,EAAEA,GAAG,IAAI,KAAK;MAAIa,KAAK,EAAE;QAAEoB,OAAO,EAAE;MAAW,CAAE;MAAAtB,QAAA,EAC7DA;IAAQ,CACL;EAAC,CACJ,CAAC;AAEV;AACA,MAAMuB,cAAc,GAAG,IAAAC,sBAAM,EAACzB,iBAAiB,EAAE;EAAEE,SAAS,EAAE;AAAQ,CAAC,CAAC;AACjE,MAAMwB,QAAQ,GAAA7B,OAAA,CAAA6B,QAAA,GAAGd,qBAAQ,CAACC,EAAE,KAAK,KAAK,GAAGb,iBAAiB,GAAGwB,cAAc","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":[]}
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
- import React from 'react';
4
3
  import { Platform, View } from 'react-native';
5
4
  import { styled } from 'react-native-css';
6
5
  import { useInteractiveWebCss } from "../styles/interactive-web-css.js";
@@ -8,8 +7,15 @@ import { resolveNativeWebStyle } from "../styles/resolve-native-web-style.js";
8
7
 
9
8
  // The field owns two distinct boxes: layout and a non-layout inset ring. Keep
10
9
  // their defaults below caller classes without moving the ring into box sizing.
10
+ //
11
+ // Horizontal padding is declared ONCE, as the logical pair. A rule that also
12
+ // declares `padding-left`/`padding-right` lets whichever comes later win for
13
+ // the same side, and an unset variable falls back to `initial`: with both
14
+ // families listed, `padding-inline-start: initial` silently zeroed every
15
+ // field's `paddingHorizontal` (7.17.0 to 7.33.0). Physical defaults are folded
16
+ // into the logical pair against this box's own `dir` (`horizontalPadding`).
11
17
  import { jsx as _jsx } from "react/jsx-runtime";
12
- const properties = ['width', 'minWidth', 'flex', 'flexDirection', 'alignItems', 'position', 'paddingLeft', 'paddingRight', 'paddingInlineStart', 'paddingInlineEnd', 'borderRadius', 'borderWidth', 'borderColor', 'backgroundColor', 'zIndex', 'top', 'right', 'bottom', 'left', 'transitionProperty', 'transitionDuration', 'transitionTimingFunction'];
18
+ const properties = ['width', 'minWidth', 'flex', 'flexDirection', 'alignItems', 'position', 'paddingInlineStart', 'paddingInlineEnd', 'borderRadius', 'borderWidth', 'borderColor', 'backgroundColor', 'zIndex', 'top', 'right', 'bottom', 'left', 'transitionProperty', 'transitionDuration', 'transitionTimingFunction'];
13
19
  const cssName = name => name.replace(/[A-Z]/g, c => `-${c.toLowerCase()}`);
14
20
  const fallbacks = {
15
21
  borderWidth: '0px',
@@ -17,7 +23,19 @@ const fallbacks = {
17
23
  flex: '0 0 auto',
18
24
  flexDirection: 'column'
19
25
  };
20
- const CSS = `@layer base { [data-bloom-field-box] { display:flex; box-sizing:border-box; border-style:solid; border-width:0; min-width:0; ${properties.map(name => `${cssName(name)}:var(--bloom-field-${cssName(name)},${fallbacks[name] ?? 'initial'});`).join('')} } }`;
26
+ /**
27
+ * The resting horizontal padding as the logical pair. A logical value wins over
28
+ * a physical one for the same side, as `paddingStart` wins over `paddingLeft`
29
+ * in React Native; a physical value keeps its side by mapping through `dir`.
30
+ */
31
+ export function horizontalPadding(defaults, dir) {
32
+ const rtl = dir === 'rtl';
33
+ return {
34
+ paddingInlineStart: defaults.paddingInlineStart ?? (rtl ? defaults.paddingRight : defaults.paddingLeft),
35
+ paddingInlineEnd: defaults.paddingInlineEnd ?? (rtl ? defaults.paddingLeft : defaults.paddingRight)
36
+ };
37
+ }
38
+ export const FIELD_BOX_CSS = `@layer base { [data-bloom-field-box] { display:flex; box-sizing:border-box; border-style:solid; border-width:0; min-width:0; ${properties.map(name => `${cssName(name)}:var(--bloom-field-${cssName(name)},${fallbacks[name] ?? 'initial'});`).join('')} } }`;
21
39
  function FieldBoxComponent({
22
40
  children,
23
41
  className,
@@ -31,14 +49,18 @@ function FieldBoxComponent({
31
49
  onMouseOut,
32
50
  testID
33
51
  }) {
34
- useInteractiveWebCss('bloom-field-box', CSS);
52
+ useInteractiveWebCss('bloom-field-box', FIELD_BOX_CSS);
35
53
  if (Platform.OS !== 'web') return /*#__PURE__*/_jsx(View, {
36
54
  pointerEvents: pointerEvents,
37
55
  testID: testID,
38
56
  style: [baseStyle, style, stateStyle],
39
57
  children: children
40
58
  });
41
- const defaults = resolveNativeWebStyle(baseStyle);
59
+ const resolved = resolveNativeWebStyle(baseStyle);
60
+ const defaults = {
61
+ ...resolved,
62
+ ...horizontalPadding(resolved, dir ?? 'ltr')
63
+ };
42
64
  const variables = {};
43
65
  for (const name of properties) {
44
66
  const value = defaults[name];
@@ -1 +1 @@
1
- {"version":3,"names":["React","Platform","View","styled","useInteractiveWebCss","resolveNativeWebStyle","jsx","_jsx","properties","cssName","name","replace","c","toLowerCase","fallbacks","borderWidth","minWidth","flex","flexDirection","CSS","map","join","FieldBoxComponent","children","className","style","baseStyle","stateStyle","dir","pointerEvents","onClick","onMouseOver","onMouseOut","testID","OS","defaults","variables","value","undefined","unit","includes","display","NativeFieldBox","FieldBox"],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UAAU,CAAC;MACpCE;IACF,CAAE;IAAAN,QAAA,eAIFhB,IAAA,CAACL,IAAI;MAAO0B,GAAG,EAAEA,GAAG,IAAI,KAAK;MAAIH,KAAK,EAAE;QAAEgB,OAAO,EAAE;MAAW,CAAE;MAAAlB,QAAA,EAC7DA;IAAQ,CACL;EAAC,CACJ,CAAC;AAEV;AACA,MAAMmB,cAAc,GAAGvC,MAAM,CAACmB,iBAAiB,EAAE;EAAEE,SAAS,EAAE;AAAQ,CAAC,CAAC;AACxE,OAAO,MAAMmB,QAAQ,GAAG1C,QAAQ,CAACiC,EAAE,KAAK,KAAK,GAAGZ,iBAAiB,GAAGoB,cAAc","ignoreList":[]}
1
+ {"version":3,"names":["Platform","View","styled","useInteractiveWebCss","resolveNativeWebStyle","jsx","_jsx","properties","cssName","name","replace","c","toLowerCase","fallbacks","borderWidth","minWidth","flex","flexDirection","horizontalPadding","defaults","dir","rtl","paddingInlineStart","paddingRight","paddingLeft","paddingInlineEnd","FIELD_BOX_CSS","map","join","FieldBoxComponent","children","className","style","baseStyle","stateStyle","pointerEvents","onClick","onMouseOver","onMouseOut","testID","OS","resolved","variables","value","undefined","unit","includes","display","NativeFieldBox","FieldBox"],"sourceRoot":"../../../src","sources":["text-field/FieldBox.tsx"],"mappings":";;AACA,SAASA,QAAQ,EAAEC,IAAI,QAAwC,cAAc;AAC7E,SAASC,MAAM,QAAQ,kBAAkB;AACzC,SAASC,oBAAoB,QAAQ,kCAA+B;AACpE,SAASC,qBAAqB,QAAQ,uCAAoC;;AAE1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA,SAAAC,GAAA,IAAAC,IAAA;AACA,MAAMC,UAAU,GAAG,CACjB,OAAO,EACP,UAAU,EACV,MAAM,EACN,eAAe,EACf,YAAY,EACZ,UAAU,EACV,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,QAAQ,EACR,KAAK,EACL,OAAO,EACP,Q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BAAqB,CAAC8B,UAAU,CAAC;MACpCC;IACF,CAAE;IAAAL,QAAA,eAIFxB,IAAA,CAACL,IAAI;MAAOmB,GAAG,EAAEA,GAAG,IAAI,KAAK;MAAIY,KAAK,EAAE;QAAEe,OAAO,EAAE;MAAW,CAAE;MAAAjB,QAAA,EAC7DA;IAAQ,CACL;EAAC,CACJ,CAAC;AAEV;AACA,MAAMkB,cAAc,GAAG9C,MAAM,CAAC2B,iBAAiB,EAAE;EAAEE,SAAS,EAAE;AAAQ,CAAC,CAAC;AACxE,OAAO,MAAMkB,QAAQ,GAAGjD,QAAQ,CAACwC,EAAE,KAAK,KAAK,GAAGX,iBAAiB,GAAGmB,cAAc","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"}
@@ -1,5 +1,12 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  import { type StyleProp, type ViewStyle } from 'react-native';
3
+ /**
4
+ * The resting horizontal padding as the logical pair. A logical value wins over
5
+ * a physical one for the same side, as `paddingStart` wins over `paddingLeft`
6
+ * in React Native; a physical value keeps its side by mapping through `dir`.
7
+ */
8
+ export declare function horizontalPadding(defaults: React.CSSProperties, dir: 'ltr' | 'rtl'): Pick<React.CSSProperties, 'paddingInlineStart' | 'paddingInlineEnd'>;
9
+ export declare const FIELD_BOX_CSS: string;
3
10
  interface FieldBoxProps {
4
11
  children?: React.ReactNode;
5
12
  className?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"FieldBox.d.ts","sourceRoot":"","sources":["../../../../src/text-field/FieldBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAkB,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAuC9E,UAAU,aAAa;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,SAAS,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACjC,UAAU,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAClC,GAAG,CAAC,EAAE,KAAK,CAAC;IACZ,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AACD,iBAAS,iBAAiB,CAAC,EACzB,QAAQ,EACR,SAAS,EACT,KAAK,EACL,SAAS,EACT,UAAU,EACV,GAAG,EACH,aAAa,EACb,OAAO,EACP,WAAW,EACX,UAAU,EACV,MAAM,GACP,EAAE,aAAa,2CA0Cf;AAED,eAAO,MAAM,QAAQ;;;;GAA6D,CAAC"}
1
+ {"version":3,"file":"FieldBox.d.ts","sourceRoot":"","sources":["../../../../src/text-field/FieldBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAkB,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AA2C9E;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,KAAK,CAAC,aAAa,EAC7B,GAAG,EAAE,KAAK,GAAG,KAAK,GACjB,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,oBAAoB,GAAG,kBAAkB,CAAC,CAQtE;AACD,eAAO,MAAM,aAAa,QAAmQ,CAAC;AAC9R,UAAU,aAAa;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,SAAS,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACjC,UAAU,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAClC,GAAG,CAAC,EAAE,KAAK,CAAC;IACZ,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AACD,iBAAS,iBAAiB,CAAC,EACzB,QAAQ,EACR,SAAS,EACT,KAAK,EACL,SAAS,EACT,UAAU,EACV,GAAG,EACH,aAAa,EACb,OAAO,EACP,WAAW,EACX,UAAU,EACV,MAAM,GACP,EAAE,aAAa,2CA2Cf;AAED,eAAO,MAAM,QAAQ;;;;GAA6D,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"}
@@ -1,5 +1,12 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  import { type StyleProp, type ViewStyle } from 'react-native';
3
+ /**
4
+ * The resting horizontal padding as the logical pair. A logical value wins over
5
+ * a physical one for the same side, as `paddingStart` wins over `paddingLeft`
6
+ * in React Native; a physical value keeps its side by mapping through `dir`.
7
+ */
8
+ export declare function horizontalPadding(defaults: React.CSSProperties, dir: 'ltr' | 'rtl'): Pick<React.CSSProperties, 'paddingInlineStart' | 'paddingInlineEnd'>;
9
+ export declare const FIELD_BOX_CSS: string;
3
10
  interface FieldBoxProps {
4
11
  children?: React.ReactNode;
5
12
  className?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"FieldBox.d.ts","sourceRoot":"","sources":["../../../../src/text-field/FieldBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAkB,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAuC9E,UAAU,aAAa;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,SAAS,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACjC,UAAU,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAClC,GAAG,CAAC,EAAE,KAAK,CAAC;IACZ,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAA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M,IAAI,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AACD,iBAAS,iBAAiB,CAAC,EACzB,QAAQ,EACR,SAAS,EACT,KAAK,EACL,SAAS,EACT,UAAU,EACV,GAAG,EACH,aAAa,EACb,OAAO,EACP,WAAW,EACX,UAAU,EACV,MAAM,GACP,EAAE,aAAa,2CA2Cf;AAED,eAAO,MAAM,QAAQ;;;;GAA6D,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxy.so/bloom",
3
- "version": "7.32.0",
3
+ "version": "7.33.1",
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';
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  import { Platform, View, type StyleProp, type ViewStyle } from 'react-native';
3
3
  import { styled } from 'react-native-css';
4
4
  import { useInteractiveWebCss } from '../styles/interactive-web-css';
@@ -6,6 +6,13 @@ import { resolveNativeWebStyle } from '../styles/resolve-native-web-style';
6
6
 
7
7
  // The field owns two distinct boxes: layout and a non-layout inset ring. Keep
8
8
  // their defaults below caller classes without moving the ring into box sizing.
9
+ //
10
+ // Horizontal padding is declared ONCE, as the logical pair. A rule that also
11
+ // declares `padding-left`/`padding-right` lets whichever comes later win for
12
+ // the same side, and an unset variable falls back to `initial`: with both
13
+ // families listed, `padding-inline-start: initial` silently zeroed every
14
+ // field's `paddingHorizontal` (7.17.0 to 7.33.0). Physical defaults are folded
15
+ // into the logical pair against this box's own `dir` (`horizontalPadding`).
9
16
  const properties = [
10
17
  'width',
11
18
  'minWidth',
@@ -13,8 +20,6 @@ const properties = [
13
20
  'flexDirection',
14
21
  'alignItems',
15
22
  'position',
16
- 'paddingLeft',
17
- 'paddingRight',
18
23
  'paddingInlineStart',
19
24
  'paddingInlineEnd',
20
25
  'borderRadius',
@@ -37,7 +42,24 @@ const fallbacks: Record<string, string> = {
37
42
  flex: '0 0 auto',
38
43
  flexDirection: 'column',
39
44
  };
40
- const CSS = `@layer base { [data-bloom-field-box] { display:flex; box-sizing:border-box; border-style:solid; border-width:0; min-width:0; ${properties.map((name) => `${cssName(name)}:var(--bloom-field-${cssName(name)},${fallbacks[name] ?? 'initial'});`).join('')} } }`;
45
+ /**
46
+ * The resting horizontal padding as the logical pair. A logical value wins over
47
+ * a physical one for the same side, as `paddingStart` wins over `paddingLeft`
48
+ * in React Native; a physical value keeps its side by mapping through `dir`.
49
+ */
50
+ export function horizontalPadding(
51
+ defaults: React.CSSProperties,
52
+ dir: 'ltr' | 'rtl',
53
+ ): Pick<React.CSSProperties, 'paddingInlineStart' | 'paddingInlineEnd'> {
54
+ const rtl = dir === 'rtl';
55
+ return {
56
+ paddingInlineStart:
57
+ defaults.paddingInlineStart ?? (rtl ? defaults.paddingRight : defaults.paddingLeft),
58
+ paddingInlineEnd:
59
+ defaults.paddingInlineEnd ?? (rtl ? defaults.paddingLeft : defaults.paddingRight),
60
+ };
61
+ }
62
+ export const FIELD_BOX_CSS = `@layer base { [data-bloom-field-box] { display:flex; box-sizing:border-box; border-style:solid; border-width:0; min-width:0; ${properties.map((name) => `${cssName(name)}:var(--bloom-field-${cssName(name)},${fallbacks[name] ?? 'initial'});`).join('')} } }`;
41
63
  interface FieldBoxProps {
42
64
  children?: React.ReactNode;
43
65
  className?: string;
@@ -64,14 +86,15 @@ function FieldBoxComponent({
64
86
  onMouseOut,
65
87
  testID,
66
88
  }: FieldBoxProps) {
67
- useInteractiveWebCss('bloom-field-box', CSS);
89
+ useInteractiveWebCss('bloom-field-box', FIELD_BOX_CSS);
68
90
  if (Platform.OS !== 'web')
69
91
  return (
70
92
  <View pointerEvents={pointerEvents} testID={testID} style={[baseStyle, style, stateStyle]}>
71
93
  {children}
72
94
  </View>
73
95
  );
74
- const defaults = resolveNativeWebStyle(baseStyle);
96
+ const resolved = resolveNativeWebStyle(baseStyle);
97
+ const defaults = { ...resolved, ...horizontalPadding(resolved, dir ?? 'ltr') };
75
98
  const variables: Record<string, unknown> = {};
76
99
  for (const name of properties) {
77
100
  const value = defaults[name as keyof React.CSSProperties];