@mrpelz/uikit-ish 7.26.2 → 7.29.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.
Files changed (210) hide show
  1. package/dist/components/accordion/style.css +0 -3
  2. package/dist/components/activity-view/style.css +17 -17
  3. package/dist/components/alert/style.css +12 -10
  4. package/dist/components/avatar/style.css +2 -2
  5. package/dist/components/badge/style.css +1 -1
  6. package/dist/components/button/style.css +12 -12
  7. package/dist/components/card/buttons.d.ts +35 -0
  8. package/dist/components/card/buttons.d.ts.map +1 -0
  9. package/dist/components/card/buttons.js +60 -0
  10. package/dist/components/card/buttons.js.map +1 -0
  11. package/dist/components/card/channels.d.ts +43 -0
  12. package/dist/components/card/channels.d.ts.map +1 -0
  13. package/dist/components/card/channels.js +321 -0
  14. package/dist/components/card/channels.js.map +1 -0
  15. package/dist/components/card/color.d.ts +21 -0
  16. package/dist/components/card/color.d.ts.map +1 -0
  17. package/dist/components/card/color.js +100 -0
  18. package/dist/components/card/color.js.map +1 -0
  19. package/dist/components/card/main.d.ts +67 -39
  20. package/dist/components/card/main.d.ts.map +1 -1
  21. package/dist/components/card/main.js +79 -274
  22. package/dist/components/card/main.js.map +1 -1
  23. package/dist/components/card/parts.css +769 -0
  24. package/dist/components/card/press.d.ts +25 -0
  25. package/dist/components/card/press.d.ts.map +1 -0
  26. package/dist/components/card/press.js +111 -0
  27. package/dist/components/card/press.js.map +1 -0
  28. package/dist/components/card/progress.d.ts +43 -0
  29. package/dist/components/card/progress.d.ts.map +1 -0
  30. package/dist/components/card/progress.js +122 -0
  31. package/dist/components/card/progress.js.map +1 -0
  32. package/dist/components/card/props.d.ts +324 -14
  33. package/dist/components/card/props.d.ts.map +1 -1
  34. package/dist/components/card/root.d.ts +100 -0
  35. package/dist/components/card/root.d.ts.map +1 -0
  36. package/dist/components/card/root.js +388 -0
  37. package/dist/components/card/root.js.map +1 -0
  38. package/dist/components/card/rows.d.ts +19 -0
  39. package/dist/components/card/rows.d.ts.map +1 -0
  40. package/dist/components/card/rows.js +185 -0
  41. package/dist/components/card/rows.js.map +1 -0
  42. package/dist/components/card/segmented.d.ts +61 -0
  43. package/dist/components/card/segmented.d.ts.map +1 -0
  44. package/dist/components/card/segmented.js +289 -0
  45. package/dist/components/card/segmented.js.map +1 -0
  46. package/dist/components/card/shared.d.ts +55 -0
  47. package/dist/components/card/shared.d.ts.map +1 -0
  48. package/dist/components/card/shared.js +80 -0
  49. package/dist/components/card/shared.js.map +1 -0
  50. package/dist/components/card/slider.d.ts +16 -0
  51. package/dist/components/card/slider.d.ts.map +1 -0
  52. package/dist/components/card/slider.js +48 -0
  53. package/dist/components/card/slider.js.map +1 -0
  54. package/dist/components/card/stages.d.ts +18 -0
  55. package/dist/components/card/stages.d.ts.map +1 -0
  56. package/dist/components/card/stages.js +37 -0
  57. package/dist/components/card/stages.js.map +1 -0
  58. package/dist/components/card/style.css +125 -66
  59. package/dist/components/checkbox/style.css +10 -5
  60. package/dist/components/collapsible/style.css +0 -3
  61. package/dist/components/color-picker/color.d.ts +2 -2
  62. package/dist/components/color-picker/color.d.ts.map +1 -1
  63. package/dist/components/color-picker/color.js +7 -7
  64. package/dist/components/color-picker/color.js.map +1 -1
  65. package/dist/components/color-picker/main.d.ts +11 -5
  66. package/dist/components/color-picker/main.d.ts.map +1 -1
  67. package/dist/components/color-picker/main.js +128 -57
  68. package/dist/components/color-picker/main.js.map +1 -1
  69. package/dist/components/color-picker/props.d.ts +216 -6
  70. package/dist/components/color-picker/props.d.ts.map +1 -1
  71. package/dist/components/color-picker/style.css +8 -8
  72. package/dist/components/control-cards/main.d.ts +6 -17
  73. package/dist/components/control-cards/main.d.ts.map +1 -1
  74. package/dist/components/control-cards/main.js +119 -758
  75. package/dist/components/control-cards/main.js.map +1 -1
  76. package/dist/components/control-cards/props.d.ts +79 -250
  77. package/dist/components/control-cards/props.d.ts.map +1 -1
  78. package/dist/components/control-cards/style.css +2 -492
  79. package/dist/components/date-picker/main.d.ts +8 -3
  80. package/dist/components/date-picker/main.d.ts.map +1 -1
  81. package/dist/components/date-picker/main.js +71 -29
  82. package/dist/components/date-picker/main.js.map +1 -1
  83. package/dist/components/date-picker/pager.d.ts.map +1 -1
  84. package/dist/components/date-picker/pager.js +9 -2
  85. package/dist/components/date-picker/pager.js.map +1 -1
  86. package/dist/components/date-picker/props.d.ts +81 -5
  87. package/dist/components/date-picker/props.d.ts.map +1 -1
  88. package/dist/components/date-picker/style.css +24 -16
  89. package/dist/components/edit-menu/style.css +2 -2
  90. package/dist/components/glass/style.css +38 -5
  91. package/dist/components/grid/main.d.ts +1 -1
  92. package/dist/components/grid/main.d.ts.map +1 -1
  93. package/dist/components/grid/main.js +104 -21
  94. package/dist/components/grid/main.js.map +1 -1
  95. package/dist/components/grid/props.d.ts +75 -5
  96. package/dist/components/grid/props.d.ts.map +1 -1
  97. package/dist/components/grid/style.css +68 -38
  98. package/dist/components/header/style.css +12 -6
  99. package/dist/components/index.d.ts +10 -8
  100. package/dist/components/index.d.ts.map +1 -1
  101. package/dist/components/index.js +6 -4
  102. package/dist/components/index.js.map +1 -1
  103. package/dist/components/layout/style.css +0 -3
  104. package/dist/components/list/main.d.ts +5 -3
  105. package/dist/components/list/main.d.ts.map +1 -1
  106. package/dist/components/list/main.js +42 -5
  107. package/dist/components/list/main.js.map +1 -1
  108. package/dist/components/list/props.d.ts +5 -0
  109. package/dist/components/list/props.d.ts.map +1 -1
  110. package/dist/components/list/reorder.d.ts +34 -0
  111. package/dist/components/list/reorder.d.ts.map +1 -1
  112. package/dist/components/list/reorder.js +40 -17
  113. package/dist/components/list/reorder.js.map +1 -1
  114. package/dist/components/list/style.css +101 -73
  115. package/dist/components/menu/style.css +38 -30
  116. package/dist/components/navigation/main.d.ts.map +1 -1
  117. package/dist/components/navigation/main.js +35 -13
  118. package/dist/components/navigation/main.js.map +1 -1
  119. package/dist/components/navigation/style.css +7 -0
  120. package/dist/components/page-control/main.d.ts.map +1 -1
  121. package/dist/components/page-control/main.js +32 -15
  122. package/dist/components/page-control/main.js.map +1 -1
  123. package/dist/components/page-control/props.d.ts +6 -0
  124. package/dist/components/page-control/props.d.ts.map +1 -1
  125. package/dist/components/page-control/style.css +36 -0
  126. package/dist/components/pager/main.d.ts +12 -0
  127. package/dist/components/pager/main.d.ts.map +1 -0
  128. package/dist/components/pager/main.js +368 -0
  129. package/dist/components/pager/main.js.map +1 -0
  130. package/dist/components/pager/props.d.ts +36 -0
  131. package/dist/components/pager/props.d.ts.map +1 -0
  132. package/dist/components/pager/props.js +2 -0
  133. package/dist/components/pager/props.js.map +1 -0
  134. package/dist/components/pager/style.css +42 -0
  135. package/dist/components/progress/main.d.ts.map +1 -1
  136. package/dist/components/progress/main.js +3 -2
  137. package/dist/components/progress/main.js.map +1 -1
  138. package/dist/components/progress/style.css +4 -10
  139. package/dist/components/roll/style.css +2 -2
  140. package/dist/components/segmented/style.css +16 -7
  141. package/dist/components/settings/main.d.ts +35 -1
  142. package/dist/components/settings/main.d.ts.map +1 -1
  143. package/dist/components/settings/main.js +297 -68
  144. package/dist/components/settings/main.js.map +1 -1
  145. package/dist/components/settings/props.d.ts +45 -4
  146. package/dist/components/settings/props.d.ts.map +1 -1
  147. package/dist/components/settings/region.d.ts +3 -0
  148. package/dist/components/settings/region.d.ts.map +1 -0
  149. package/dist/components/settings/region.js +120 -0
  150. package/dist/components/settings/region.js.map +1 -0
  151. package/dist/components/settings/style.css +2 -2
  152. package/dist/components/sheet/snap.d.ts.map +1 -1
  153. package/dist/components/sheet/snap.js +13 -5
  154. package/dist/components/sheet/snap.js.map +1 -1
  155. package/dist/components/sheet/style.css +48 -3
  156. package/dist/components/slider/main.d.ts.map +1 -1
  157. package/dist/components/slider/main.js +5 -2
  158. package/dist/components/slider/main.js.map +1 -1
  159. package/dist/components/slider/style.css +6 -6
  160. package/dist/components/stack/main.d.ts +8 -0
  161. package/dist/components/stack/main.d.ts.map +1 -0
  162. package/dist/components/stack/main.js +25 -0
  163. package/dist/components/stack/main.js.map +1 -0
  164. package/dist/components/stack/props.d.ts +42 -0
  165. package/dist/components/stack/props.d.ts.map +1 -0
  166. package/dist/components/stack/props.js +2 -0
  167. package/dist/components/stack/props.js.map +1 -0
  168. package/dist/components/stack/style.css +68 -0
  169. package/dist/components/stepper/main.d.ts +3 -1
  170. package/dist/components/stepper/main.d.ts.map +1 -1
  171. package/dist/components/stepper/main.js +4 -0
  172. package/dist/components/stepper/main.js.map +1 -1
  173. package/dist/components/stepper/style.css +2 -2
  174. package/dist/components/switch/main.d.ts.map +1 -1
  175. package/dist/components/switch/main.js +5 -1
  176. package/dist/components/switch/main.js.map +1 -1
  177. package/dist/components/switch/props.d.ts +4 -1
  178. package/dist/components/switch/props.d.ts.map +1 -1
  179. package/dist/components/tab-bar/style.css +36 -13
  180. package/dist/components/text-field/style.css +28 -17
  181. package/dist/components/toolbar/main.d.ts +5 -2
  182. package/dist/components/toolbar/main.d.ts.map +1 -1
  183. package/dist/components/toolbar/main.js +18 -0
  184. package/dist/components/toolbar/main.js.map +1 -1
  185. package/dist/components/toolbar/props.d.ts +15 -0
  186. package/dist/components/toolbar/props.d.ts.map +1 -1
  187. package/dist/components/toolbar/style.css +126 -10
  188. package/dist/components/tooltip/style.css +2 -2
  189. package/dist/components/typography/main.d.ts +1 -0
  190. package/dist/components/typography/main.d.ts.map +1 -1
  191. package/dist/components/typography/main.js +1 -0
  192. package/dist/components/typography/main.js.map +1 -1
  193. package/dist/components/typography/sizes.css +456 -0
  194. package/dist/components/typography/style.css +24 -456
  195. package/dist/components/utils/main.d.ts +23 -6
  196. package/dist/components/utils/main.d.ts.map +1 -1
  197. package/dist/components/utils/main.js +60 -7
  198. package/dist/components/utils/main.js.map +1 -1
  199. package/dist/components/viewport/edge-effect.d.ts.map +1 -1
  200. package/dist/components/viewport/edge-effect.js +6 -2
  201. package/dist/components/viewport/edge-effect.js.map +1 -1
  202. package/dist/components/viewport/focus-scroll.d.ts.map +1 -1
  203. package/dist/components/viewport/focus-scroll.js +2 -1
  204. package/dist/components/viewport/focus-scroll.js.map +1 -1
  205. package/dist/components/viewport/main.d.ts.map +1 -1
  206. package/dist/components/viewport/main.js +34 -2
  207. package/dist/components/viewport/main.js.map +1 -1
  208. package/dist/components/viewport/style.css +7 -13
  209. package/dist/styles.css +287 -120
  210. package/package.json +1 -1
@@ -59,14 +59,20 @@
59
59
  color: var(--color-ui-label);
60
60
  font-family: inherit;
61
61
  font-size: 14px;
62
- font-variation-settings: 'wght' 510;
63
- font-weight: round(down, 510, 100);
62
+ font-variation-settings: 'wght' calc(510 + var(--uikit-font-weight-boost, 0));
63
+ font-weight: round(down, calc(510 + var(--uikit-font-weight-boost, 0)), 100);
64
64
  letter-spacing: -0.08px;
65
65
  line-height: 18px;
66
66
  text-align: center;
67
67
  text-transform: none;
68
68
  transform: translate3d(0, 0, 0);
69
69
  transition-duration: 100ms;
70
+
71
+ /* (Its weight as it's checked, its opacity as it's disabled: named, not
72
+ all of them; with `visibility` among them, its words would stay
73
+ shown as its page is hidden (e.g. a page pushed over it), until the
74
+ transition ends.) */
75
+ transition-property: color, font-variation-settings, font-weight, opacity;
70
76
  -webkit-user-select: none;
71
77
  user-select: none;
72
78
 
@@ -105,8 +111,8 @@
105
111
  }
106
112
 
107
113
  &[data-checked] {
108
- font-variation-settings: 'wght' 590;
109
- font-weight: round(down, 590, 100);
114
+ font-variation-settings: 'wght' calc(590 + var(--uikit-font-weight-boost, 0));
115
+ font-weight: round(down, calc(590 + var(--uikit-font-weight-boost, 0)), 100);
110
116
 
111
117
  --uikit-symbol-emphasis: 1;
112
118
  }
@@ -132,8 +138,8 @@
132
138
 
133
139
  .uikit-segmented-label-reserve {
134
140
  overflow: hidden;
135
- font-variation-settings: 'wght' 590;
136
- font-weight: round(down, 590, 100);
141
+ font-variation-settings: 'wght' calc(590 + var(--uikit-font-weight-boost, 0));
142
+ font-weight: round(down, calc(590 + var(--uikit-font-weight-boost, 0)), 100);
137
143
  grid-area: 1 / 1;
138
144
  text-overflow: ellipsis;
139
145
  visibility: hidden;
@@ -317,7 +323,10 @@
317
323
  );
318
324
  opacity: calc(1 - var(--uikit-segmented-pressed, 0));
319
325
  pointer-events: none;
320
- transition: 200ms;
326
+ transition-duration: 200ms;
327
+
328
+ /* (Moving and fading: named, not all, see the item's.) */
329
+ transition-property: clip-path, inset-inline-start, opacity;
321
330
 
322
331
  &:dir(rtl) {
323
332
  clip-path: inset(
@@ -1,18 +1,52 @@
1
+ import '../typography/sizes.css';
1
2
  import './style.css';
2
3
  import { FunctionComponent, ReactNode } from 'react';
3
4
  import { type ColorScheme } from '../utils/main.js';
4
5
  import type { SettingsPortalProps, SettingsProviderProps, SettingsValues } from './props.js';
5
6
  export type { SettingsContrast, SettingsPortalProps, SettingsProviderProps, SettingsValues, } from './props.js';
7
+ /**
8
+ * Reads the system's settings that have no event of their own again: the
9
+ * time zone, for the guessed `region` (e.g. after the device moved to
10
+ * another one), and the text size (e.g. changed while the app was in the
11
+ * background). Providers and `useSettings` follow.
12
+ */
13
+ export declare const refreshSettings: () => void;
14
+ /**
15
+ * The best of an app's translations (`supported`, language tags) for the
16
+ * preferred `languages` (ranked, e.g. the settings', see `useLanguage`):
17
+ * for each, in order, the same tag, else it shortened (`en-GB`, then
18
+ * `en`), else the same language with another region (`en-GB` for
19
+ * `en-US`), before the next preferred one; none if nothing matches.
20
+ */
21
+ export declare const matchLanguage: (supported: readonly string[], languages: readonly string[]) => string | undefined;
22
+ /**
23
+ * Whether it's within a `Settings.Provider` (the system's settings apply
24
+ * there only, see above): e.g. Viewport's, marking the root.
25
+ */
26
+ export declare const useIsInSettingsProvider: () => boolean;
6
27
  /**
7
28
  * The settings where it's rendered: each the nearest provider's override,
8
29
  * else the system's, else the default (see `Settings.Provider`). A
9
30
  * component's own props win over them (e.g. a switch's `onOffLabels`).
10
31
  */
11
32
  export declare const useSettings: () => SettingsValues;
33
+ /**
34
+ * The app's translation for where it's rendered: the best of its
35
+ * `supported` ones (language tags) for the settings' preferred languages
36
+ * (see `matchLanguage`), else its first.
37
+ */
38
+ export declare const useLanguage: <T extends string>(supported: readonly T[]) => T | undefined;
39
+ /**
40
+ * A component's locale: its own (`locale` given), else the settings' (see
41
+ * `SettingsValues`' `locale`).
42
+ */
43
+ export declare const useLocale: <T extends Intl.LocalesArgument>(own: T | undefined) => string | T;
12
44
  /**
13
45
  * The props of a portal opened within providers: their overrides as custom
14
46
  * properties (and its color scheme), on the portal (outside their elements,
15
- * e.g. in the body). Spread by the library's portals (Menu's, Popover's, …).
47
+ * e.g. in the body); without any, its marker alone (the system's settings
48
+ * applying in it, as within its providers). Outside providers, none.
49
+ * Spread by the library's portals (Menu's, Popover's, …).
16
50
  */
17
51
  export declare const useSettingsPortalProps: () => SettingsPortalProps;
18
52
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/settings/main.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAGrB,OAAO,EAGL,iBAAiB,EACjB,SAAS,EAIV,MAAM,OAAO,CAAC;AAEf,OAAO,EAAM,KAAK,WAAW,EAAa,MAAM,kBAAkB,CAAC;AACnE,OAAO,KAAK,EACV,mBAAmB,EACnB,qBAAqB,EACrB,cAAc,EACf,MAAM,YAAY,CAAC;AAEpB,YAAY,EACV,gBAAgB,EAChB,mBAAmB,EACnB,qBAAqB,EACrB,cAAc,GACf,MAAM,YAAY,CAAC;AA0EpB;;;;GAIG;AACH,eAAO,MAAM,WAAW,QAAO,cAkB9B,CAAC;AA8CF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,QAAO,mBAYzC,CAAC;AA6EF;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,EAAE,iBAAiB,CAAC;IAC/C,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,WAAW,EAAE,WAAW,GAAG,SAAS,CAAC;CACtC,CAWA,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;CAEpB,CAAC"}
1
+ {"version":3,"file":"main.d.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,CAAC"}
@@ -1,28 +1,42 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ import '../typography/sizes.css';
2
3
  import './style.css';
3
4
  import { useRender } from '@base-ui/react/use-render';
4
5
  import { createContext, forwardRef, useContext, useMemo, useSyncExternalStore, } from 'react';
5
6
  import { cn, withStyle } from '../utils/main.js';
6
- // Settings: each the nearest provider's override, else the system's (a
7
- // media query's, live), else the default. For CSS, as custom properties
8
- // (inherited: the nearest provider's wins, see style.css): a provider sets
9
- // those it overrides on its element (`display: contents`), a portal those
10
- // overridden where it's opened (see `useSettingsPortalProps`), as it's
11
- // outside that element.
7
+ import { regionOfTimeZone } from './region.js';
8
+ // Settings: each the nearest provider's override, else the system's, else
9
+ // the default. The system's apply within providers only (an app's root
10
+ // provider applies them across it); outside one, the defaults, but for the
11
+ // color scheme, languages, locale and region, which the platform follows on
12
+ // its own (`color-scheme: light dark`, `navigator.languages`, `Intl`'s
13
+ // defaults). For script, in context (`useSettings`); for the stylesheets,
14
+ // as attributes on a provider's element (`display: contents`) and on its
15
+ // portals' (see `useSettingsPortalProps`, as they're outside it), the
16
+ // nearest winning, and media queries scoped to providers (see styles.css):
17
+ // not style queries, which don't apply on iOS.
12
18
  const keys = [
19
+ 'boldText',
13
20
  'colorScheme',
14
21
  'contrast',
15
22
  'differentiateWithoutColor',
23
+ 'languages',
24
+ 'locale',
16
25
  'reducedMotion',
17
26
  'reducedTransparency',
27
+ 'region',
18
28
  'textSize',
19
29
  ];
20
30
  const defaults = {
31
+ boldText: false,
21
32
  colorScheme: 'light',
22
33
  contrast: 'standard',
23
34
  differentiateWithoutColor: false,
35
+ languages: ['en'],
36
+ locale: 'en',
24
37
  reducedMotion: false,
25
38
  reducedTransparency: false,
39
+ region: undefined,
26
40
  textSize: 'large',
27
41
  };
28
42
  // The system's, by media queries.
@@ -34,33 +48,216 @@ const queries = {
34
48
  };
35
49
  const noSystem = {};
36
50
  let system;
51
+ // The system's languages: the browser's, ranked (not the document's
52
+ // `lang`: the content's language, not the user's); its region, the time
53
+ // zone's (read at first use, and again by `refreshSettings`: the time zone
54
+ // has no event of its own).
55
+ const systemLanguages = () => {
56
+ if (navigator.languages.length > 0)
57
+ return navigator.languages;
58
+ return navigator.language ? [navigator.language] : undefined;
59
+ };
60
+ let zoneRegion;
61
+ /**
62
+ * The system's text size, by its body text's size (the text sizes' each
63
+ * its own, see Typography): where the browser has it (`font:
64
+ * -apple-system-body`, WebKit's: the system's text size), else none. Read
65
+ * at first use, and again by `refreshSettings` (it has no event).
66
+ */
67
+ const textSizes = {
68
+ 14: 'xSmall',
69
+ 15: 'small',
70
+ 16: 'medium',
71
+ 17: 'large',
72
+ 19: 'xLarge',
73
+ 21: 'xxLarge',
74
+ 23: 'xxxLarge',
75
+ 28: 'ax1',
76
+ 33: 'ax2',
77
+ 40: 'ax3',
78
+ 47: 'ax4',
79
+ 53: 'ax5',
80
+ };
81
+ let bodyText;
82
+ /**
83
+ * The system's body text: its size (as a text size), where the browser
84
+ * reports it. (Not its weight: WebKit doesn't report bold text there,
85
+ * measured on a device; bold text has no system signal.)
86
+ */
87
+ const systemBodyText = () => {
88
+ const probe = document.createElement('span');
89
+ probe.style.font = '-apple-system-body';
90
+ // (Not a font the browser has: not set.)
91
+ if (probe.style.font === '')
92
+ return {};
93
+ probe.style.position = 'absolute';
94
+ probe.style.visibility = 'hidden';
95
+ document.documentElement.append(probe);
96
+ const { fontSize } = getComputedStyle(probe);
97
+ probe.remove();
98
+ return { textSize: textSizes[Math.round(Number.parseFloat(fontSize))] };
99
+ };
37
100
  /** The system's settings (the same object until they change). */
38
101
  const getSystem = () => {
39
102
  const [isDark, isMore, isReducedMotion, isReducedTransparency] = Object.values(queries).map((query) => matchMedia(query).matches);
40
- const key = [isDark, isMore, isReducedMotion, isReducedTransparency].join(',');
103
+ zoneRegion ??= { value: regionOfTimeZone() };
104
+ bodyText ??= { value: systemBodyText() };
105
+ const languages = systemLanguages();
106
+ const region = zoneRegion.value;
107
+ const { textSize } = bodyText.value;
108
+ const key = [
109
+ isDark,
110
+ isMore,
111
+ isReducedMotion,
112
+ isReducedTransparency,
113
+ languages?.join('|'),
114
+ region,
115
+ textSize,
116
+ ].join(',');
41
117
  if (system?.key !== key) {
42
118
  system = {
43
119
  key,
44
120
  values: {
45
121
  colorScheme: isDark ? 'dark' : 'light',
46
122
  contrast: isMore ? 'more' : 'standard',
123
+ languages,
47
124
  reducedMotion: isReducedMotion,
48
125
  reducedTransparency: isReducedTransparency,
126
+ region,
127
+ textSize,
49
128
  },
50
129
  };
51
130
  }
52
131
  return system.values;
53
132
  };
54
- const subscribe = (onChange) => {
133
+ // Everything reading the system's settings (`useSettings`), told as they
134
+ // change: one set of listeners for all of them (not one each, as many
135
+ // components read them: a card's value, a slider, a date picker), while
136
+ // any reads them.
137
+ const changeListeners = new Set();
138
+ let stopListening;
139
+ const onSystemChange = () => {
140
+ for (const listener of changeListeners)
141
+ listener();
142
+ };
143
+ const listen = () => {
55
144
  const lists = Object.values(queries).map((query) => matchMedia(query));
56
145
  for (const list of lists)
57
- list.addEventListener('change', onChange);
146
+ list.addEventListener('change', onSystemChange);
147
+ addEventListener('languagechange', onSystemChange);
148
+ return () => {
149
+ for (const list of lists) {
150
+ list.removeEventListener('change', onSystemChange);
151
+ }
152
+ removeEventListener('languagechange', onSystemChange);
153
+ };
154
+ };
155
+ /**
156
+ * Reads the system's settings that have no event of their own again: the
157
+ * time zone, for the guessed `region` (e.g. after the device moved to
158
+ * another one), and the text size (e.g. changed while the app was in the
159
+ * background). Providers and `useSettings` follow.
160
+ */
161
+ export const refreshSettings = () => {
162
+ zoneRegion = undefined;
163
+ bodyText = undefined;
164
+ onSystemChange();
165
+ };
166
+ const subscribe = (onChange) => {
167
+ changeListeners.add(onChange);
168
+ stopListening ??= listen();
58
169
  return () => {
59
- for (const list of lists)
60
- list.removeEventListener('change', onChange);
170
+ changeListeners.delete(onChange);
171
+ if (changeListeners.size > 0)
172
+ return;
173
+ stopListening?.();
174
+ stopListening = undefined;
61
175
  };
62
176
  };
177
+ /** A language tag's region, if it names one. */
178
+ const regionOf = (tag) => {
179
+ try {
180
+ return new Intl.Locale(tag).region;
181
+ }
182
+ catch {
183
+ return undefined;
184
+ }
185
+ };
186
+ /** A language tag with another region (as it is, if it can't be). */
187
+ const withRegion = (tag, region) => {
188
+ if (region === undefined)
189
+ return tag;
190
+ try {
191
+ return new Intl.Locale(tag, { region }).toString();
192
+ }
193
+ catch {
194
+ return tag;
195
+ }
196
+ };
197
+ /**
198
+ * The languages, locale and region (see `SettingsValues`): the locale a
199
+ * given one, else the first preferred language; its region a given one,
200
+ * then a given locale's own, then the time zone's, then the language's
201
+ * own.
202
+ */
203
+ const localeOf = (overrides, systemValues) => {
204
+ const languages = overrides.languages ?? systemValues.languages ?? defaults.languages;
205
+ const given = overrides.locale;
206
+ const base = given ?? languages[0] ?? defaults.locale;
207
+ const region = overrides.region ??
208
+ (given === undefined ? undefined : regionOf(given)) ??
209
+ systemValues.region ??
210
+ regionOf(base);
211
+ return { languages, locale: withRegion(base, region), region };
212
+ };
213
+ /** A language tag, canonical and lowercase (none if it isn't one). */
214
+ const canonicalTag = (tag) => {
215
+ try {
216
+ return Intl.getCanonicalLocales(tag)[0]?.toLowerCase();
217
+ }
218
+ catch {
219
+ return undefined;
220
+ }
221
+ };
222
+ /** A language tag's language (e.g. `en` of `en-GB`). */
223
+ const languageOf = (tag) => tag.split('-')[0];
224
+ /**
225
+ * The best of an app's translations (`supported`, language tags) for the
226
+ * preferred `languages` (ranked, e.g. the settings', see `useLanguage`):
227
+ * for each, in order, the same tag, else it shortened (`en-GB`, then
228
+ * `en`), else the same language with another region (`en-GB` for
229
+ * `en-US`), before the next preferred one; none if nothing matches.
230
+ */
231
+ export const matchLanguage = (supported, languages) => {
232
+ const candidates = supported.map((tag) => [tag, canonicalTag(tag)]);
233
+ const find = (match) => candidates.find(([, candidate]) => candidate !== undefined && match(candidate))?.[0];
234
+ for (const preferred of languages) {
235
+ const wanted = canonicalTag(preferred);
236
+ if (wanted === undefined)
237
+ continue;
238
+ const parts = wanted.split('-');
239
+ for (let length = parts.length; length > 0; length -= 1) {
240
+ const shortened = parts.slice(0, length).join('-');
241
+ const found = find((candidate) => candidate === shortened);
242
+ if (found !== undefined)
243
+ return found;
244
+ }
245
+ const sameLanguage = find((candidate) => languageOf(candidate) === languageOf(wanted));
246
+ if (sameLanguage !== undefined)
247
+ return sameLanguage;
248
+ }
249
+ return undefined;
250
+ };
63
251
  const SettingsContext = createContext({});
252
+ /** Whether it's within a provider (see `Provider`): the system's apply. */
253
+ const InProviderContext = createContext(false);
254
+ /**
255
+ * Whether it's within a `Settings.Provider` (the system's settings apply
256
+ * there only, see above): e.g. Viewport's, marking the root.
257
+ */
258
+ export const useIsInSettingsProvider = () => useContext(InProviderContext);
259
+ /** The system's settings the platform follows anyway (see above). */
260
+ const nativeKeys = ['colorScheme', 'languages', 'locale', 'region'];
64
261
  /**
65
262
  * The settings where it's rendered: each the nearest provider's override,
66
263
  * else the system's, else the default (see `Settings.Provider`). A
@@ -68,68 +265,79 @@ const SettingsContext = createContext({});
68
265
  */
69
266
  export const useSettings = () => {
70
267
  const overrides = useContext(SettingsContext);
71
- const systemValues = useSyncExternalStore(subscribe, getSystem, () => noSystem);
72
- return useMemo(() => Object.fromEntries(keys.map((key) => [
73
- key,
74
- overrides[key] ?? systemValues[key] ?? defaults[key],
75
- ])), [overrides, systemValues]);
76
- };
77
- /** A setting's custom property (see style.css), its value for CSS. */
78
- const properties = {
79
- contrast: [
80
- '--uikit-settings-contrast',
81
- (value) => (value === 'more' ? '1' : '0'),
82
- ],
83
- differentiateWithoutColor: [
84
- '--uikit-settings-differentiate-without-color',
85
- (value) => (value ? '1' : '0'),
86
- ],
87
- reducedMotion: [
88
- '--uikit-settings-reduced-motion',
89
- (value) => (value ? '1' : '0'),
90
- ],
91
- reducedTransparency: [
92
- '--uikit-settings-reduced-transparency',
93
- (value) => (value ? '1' : '0'),
94
- ],
95
- textSize: ['--uikit-settings-text-size', (value) => value],
268
+ const isInProvider = useContext(InProviderContext);
269
+ const allSystem = useSyncExternalStore(subscribe, getSystem, () => noSystem);
270
+ return useMemo(() => {
271
+ // (Outside a provider, only those the platform follows anyway.)
272
+ const systemValues = isInProvider
273
+ ? allSystem
274
+ : Object.fromEntries(nativeKeys.map((key) => [key, allSystem[key]]));
275
+ return {
276
+ ...Object.fromEntries(keys.map((key) => [
277
+ key,
278
+ overrides[key] ?? systemValues[key] ?? defaults[key],
279
+ ])),
280
+ ...localeOf(overrides, systemValues),
281
+ };
282
+ }, [allSystem, isInProvider, overrides]);
96
283
  };
97
284
  /**
98
- * The custom properties (and color scheme) for `overrides`: each key in it
99
- * (`only`), its value, or reset to the system's (`undefined`).
285
+ * The app's translation for where it's rendered: the best of its
286
+ * `supported` ones (language tags) for the settings' preferred languages
287
+ * (see `matchLanguage`), else its first.
100
288
  */
101
- const styleFor = (overrides, only) => {
102
- const style = {};
103
- for (const key of only) {
104
- const value = overrides[key];
105
- if (key === 'colorScheme') {
106
- style['color-scheme'] =
107
- value === undefined ? 'light dark' : String(value);
108
- continue;
109
- }
110
- const [name, encode] = properties[key];
111
- style[name] =
112
- value === undefined ? `var(${name}-system)` : encode(value);
113
- }
114
- return style;
289
+ export const useLanguage = (supported) => {
290
+ const { languages } = useSettings();
291
+ const supportedKey = supported.join('|');
292
+ return useMemo(() => matchLanguage(supported, languages) ?? supported[0],
293
+ // (By its tags, not the array: e.g. given inline.)
294
+ // eslint-disable-next-line react-hooks/exhaustive-deps
295
+ [languages, supportedKey]);
115
296
  };
297
+ /**
298
+ * A component's locale: its own (`locale` given), else the settings' (see
299
+ * `SettingsValues`' `locale`).
300
+ */
301
+ export const useLocale = (own) => {
302
+ const { locale } = useSettings();
303
+ return own ?? locale;
304
+ };
305
+ /** A boolean setting as an attribute's value (none: not set). */
306
+ const booleanAttribute = (value) => value === undefined ? undefined : String(value);
307
+ /**
308
+ * The settings the stylesheets follow, as attributes on an element (see
309
+ * styles.css; the nearest one's wins): those given (a provider's
310
+ * overrides, or its portal's), `false` too (within an outer `true`).
311
+ */
312
+ const attributesOf = (values) => ({
313
+ 'data-uikit-bold-text': booleanAttribute(values.boldText),
314
+ 'data-uikit-contrast': values.contrast,
315
+ 'data-uikit-differentiate-without-color': booleanAttribute(values.differentiateWithoutColor),
316
+ 'data-uikit-reduced-motion': booleanAttribute(values.reducedMotion),
317
+ 'data-uikit-reduced-transparency': booleanAttribute(values.reducedTransparency),
318
+ 'data-uikit-text-size': values.textSize,
319
+ });
116
320
  /**
117
321
  * The props of a portal opened within providers: their overrides as custom
118
322
  * properties (and its color scheme), on the portal (outside their elements,
119
- * e.g. in the body). Spread by the library's portals (Menu's, Popover's, …).
323
+ * e.g. in the body); without any, its marker alone (the system's settings
324
+ * applying in it, as within its providers). Outside providers, none.
325
+ * Spread by the library's portals (Menu's, Popover's, …).
120
326
  */
121
327
  export const useSettingsPortalProps = () => {
122
328
  const overrides = useContext(SettingsContext);
123
- return useMemo(() => {
124
- const overridden = keys.filter((key) => overrides[key] !== undefined);
125
- if (overridden.length === 0)
126
- return {};
127
- return {
329
+ const isInProvider = useContext(InProviderContext);
330
+ // (The text size and bold text as where it was opened, always: no media
331
+ // query has the system's, see `Provider`.)
332
+ const { boldText, textSize } = useSettings();
333
+ return useMemo(() => isInProvider
334
+ ? {
128
335
  'data-color-scheme': overrides.colorScheme,
336
+ ...attributesOf({ ...overrides, boldText, textSize }),
129
337
  'data-uikit-settings': '',
130
- style: styleFor(overrides, overridden),
131
- };
132
- }, [overrides]);
338
+ lang: overrides.languages?.[0],
339
+ }
340
+ : {}, [boldText, isInProvider, overrides, textSize]);
133
341
  };
134
342
  /**
135
343
  * A provider's own settings (given, even as `undefined`), as a key: JSON,
@@ -149,9 +357,9 @@ const useOverrides = (outer, ownKey) => useMemo(() => ({
149
357
  /**
150
358
  * Settings for what's within it (see `SettingsProviderProps`): a
151
359
  * `display: contents` element (or `render`'s, as it's laid out), its
152
- * overrides on it as
153
- * custom properties, for CSS, and in context, for `useSettings`. Nested,
154
- * an inner provider overrides an outer one's, setting by setting.
360
+ * overrides on it as attributes, for the stylesheets, and in context, for
361
+ * `useSettings`. Nested, an inner provider overrides an outer one's,
362
+ * setting by setting.
155
363
  */
156
364
  const Provider = forwardRef(({ className, render, style, ...props }, ref) => {
157
365
  const outer = useContext(SettingsContext);
@@ -160,6 +368,15 @@ const Provider = forwardRef(({ className, render, style, ...props }, ref) => {
160
368
  const ownKey = ownSettingsKey(props);
161
369
  const elementProps = Object.fromEntries(Object.entries(props).filter(([key]) => !keys.includes(key)));
162
370
  const overrides = useOverrides(outer, ownKey);
371
+ // Its text size and bold text, on its element: the outermost
372
+ // provider's (its own, or the system's, detected: no media query has
373
+ // them), a nested one's given (or reset, to the system's); else
374
+ // inherited.
375
+ const isOutermost = !useContext(InProviderContext);
376
+ const systemValues = useSyncExternalStore(subscribe, getSystem, () => noSystem);
377
+ const detected = (key) => isOutermost || own.includes(key) || overrides[key] !== undefined
378
+ ? (overrides[key] ?? systemValues[key] ?? defaults[key])
379
+ : undefined;
163
380
  const element = useRender({
164
381
  defaultTagName: 'div',
165
382
  props: {
@@ -170,15 +387,27 @@ const Provider = forwardRef(({ className, render, style, ...props }, ref) => {
170
387
  'data-color-scheme': own.includes('colorScheme')
171
388
  ? props.colorScheme
172
389
  : undefined,
173
- // (For the stylesheets' style queries on what's directly within
174
- // it, see styles.css.)
390
+ ...attributesOf({
391
+ ...overrides,
392
+ boldText: detected('boldText'),
393
+ textSize: detected('textSize'),
394
+ }),
395
+ // (For the stylesheets: what's within a provider, and directly
396
+ // within it, see styles.css.)
175
397
  'data-uikit-settings': '',
176
- style: withStyle(styleFor(overrides, own), style),
398
+ // (Its languages given: its first, for what's within it; not its
399
+ // formatting locale, which isn't the content's language.)
400
+ lang: own.includes('languages') ? props.languages?.[0] : undefined,
401
+ // (Its color scheme reset: the system's again, within an outer
402
+ // provider's; one given, by its attribute, see styles.css.)
403
+ style: own.includes('colorScheme') && props.colorScheme === undefined
404
+ ? withStyle({ colorScheme: 'light dark' }, style)
405
+ : style,
177
406
  },
178
407
  ref,
179
408
  render,
180
409
  });
181
- return (_jsx(SettingsContext.Provider, { value: overrides, children: element }));
410
+ return (_jsx(InProviderContext.Provider, { value: true, children: _jsx(SettingsContext.Provider, { value: overrides, children: element }) }));
182
411
  });
183
412
  /**
184
413
  * Its children in a color scheme of their own (internal: a glass surface's
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/components/settings/main.tsx"],"names":[],"mappings":";AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EACL,aAAa,EACb,UAAU,EAGV,UAAU,EACV,OAAO,EACP,oBAAoB,GACrB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,EAAE,EAAoB,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAcnE,uEAAuE;AACvE,wEAAwE;AACxE,2EAA2E;AAC3E,0EAA0E;AAC1E,uEAAuE;AACvE,wBAAwB;AAExB,MAAM,IAAI,GAAG;IACX,aAAa;IACb,UAAU;IACV,2BAA2B;IAC3B,eAAe;IACf,qBAAqB;IACrB,UAAU;CAC0C,CAAC;AAOvD,MAAM,QAAQ,GAAmB;IAC/B,WAAW,EAAE,OAAO;IACpB,QAAQ,EAAE,UAAU;IACpB,yBAAyB,EAAE,KAAK;IAChC,aAAa,EAAE,KAAK;IACpB,mBAAmB,EAAE,KAAK;IAC1B,QAAQ,EAAE,OAAO;CAClB,CAAC;AAEF,kCAAkC;AAClC,MAAM,OAAO,GAAG;IACd,WAAW,EAAE,8BAA8B;IAC3C,QAAQ,EAAE,mDAAmD;IAC7D,aAAa,EAAE,kCAAkC;IACjD,mBAAmB,EAAE,wCAAwC;CACd,CAAC;AAElD,MAAM,QAAQ,GAA4B,EAAE,CAAC;AAC7C,IAAI,MAAoE,CAAC;AAEzE,iEAAiE;AACjE,MAAM,SAA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