@datalayer/primer-addons 1.0.22 → 1.0.24

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 (39) hide show
  1. package/README.md +1 -1
  2. package/lib/components/box/Box.js +1 -2
  3. package/lib/components/box/sx.js +1 -2
  4. package/lib/components/closeable-flash/CloseableFlash.d.ts +23 -1
  5. package/lib/components/closeable-flash/CloseableFlash.js +52 -4
  6. package/lib/components/content-loader/ContentLoader.js +4 -0
  7. package/lib/components/date-picker/DatePicker.d.ts +36 -1
  8. package/lib/components/date-picker/DatePicker.js +122 -16
  9. package/lib/components/date-picker/TimeColumns.d.ts +23 -0
  10. package/lib/components/date-picker/TimeColumns.js +88 -0
  11. package/lib/components/icons/CircleIcon.js +4 -0
  12. package/lib/components/index.js +4 -0
  13. package/lib/components/logo/DatalayerLogo.js +18 -1
  14. package/lib/components/logo/index.js +4 -0
  15. package/lib/components/side-overlay/SideOverlay.js +4 -0
  16. package/lib/components/side-overlay/SideOverlay.stories.js +4 -0
  17. package/lib/components/slider/Slider.js +4 -0
  18. package/lib/components/slider/Slider.stories.js +4 -0
  19. package/lib/components/sliding-panel/SlidingPanel.js +17 -1
  20. package/lib/components/sliding-panel/SlidingPanel.stories.js +4 -0
  21. package/lib/index.js +4 -0
  22. package/lib/reactor/page-layout/PageLayout.js +68 -52
  23. package/lib/story-helpers.d.ts +1 -1
  24. package/lib/theme/colors/index.d.ts +1 -0
  25. package/lib/theme/colors/index.js +3 -0
  26. package/lib/theme/colors/loopColors.d.ts +91 -0
  27. package/lib/theme/colors/loopColors.js +128 -0
  28. package/lib/theme/css/createThemeCSSVars.d.ts +8 -0
  29. package/lib/theme/css/createThemeCSSVars.js +2 -0
  30. package/lib/theme/index.d.ts +1 -0
  31. package/lib/theme/index.js +1 -0
  32. package/lib/theme/palettes/ColorPalette.js +42 -3
  33. package/lib/theme/palettes/index.js +1 -2
  34. package/lib/theme/themeRegistry.d.ts +1 -1
  35. package/lib/theme/themeRegistry.js +52 -1
  36. package/lib/theme/themes/loopTheme.d.ts +1105 -0
  37. package/lib/theme/themes/loopTheme.js +309 -0
  38. package/lib/utils/Portals.js +3 -1
  39. package/package.json +10 -4
@@ -10,6 +10,7 @@ import { earthTheme, earthThemeStyles } from './themes/earthTheme';
10
10
  import { sandTheme, sandThemeStyles } from './themes/sandTheme';
11
11
  import { ivoryTheme, ivoryThemeStyles } from './themes/ivoryTheme';
12
12
  import { sunTheme, sunThemeStyles } from './themes/sunTheme';
13
+ import { loopTheme, loopThemeStyles } from './themes/loopTheme';
13
14
  import { datalayerColors } from './colors/datalayerColors';
14
15
  import { spatialColors } from './colors/spatialColors';
15
16
  import { lovelyColors } from './colors/lovelyColors';
@@ -18,6 +19,7 @@ import { earthColors } from './colors/earthColors';
18
19
  import { sandColors } from './colors/sandColors';
19
20
  import { ivoryColors } from './colors/ivoryColors';
20
21
  import { sunColors } from './colors/sunColors';
22
+ import { loopColors } from './colors/loopColors';
21
23
  /* ─── Registry ────────────────────────────────────────────────────────── */
22
24
  export const themeConfigs = {
23
25
  datalayer: {
@@ -276,9 +278,42 @@ export const themeConfigs = {
276
278
  gold: sunColors.brightLightGold, // #8A6E00 — deep gold
277
279
  },
278
280
  },
281
+ loop: {
282
+ label: 'Loop',
283
+ description: 'Very clean: one soft accent, neutral everything else. The look of an application built in LOOP.',
284
+ brandColor: loopColors.loopBrand,
285
+ defaultColorMode: 'light',
286
+ primerTheme: loopTheme,
287
+ themeStyles: loopThemeStyles,
288
+ // The theme has no gradient on a surface: both stops are the accent.
289
+ cardGradient: {
290
+ light: { from: loopColors.loopBrand, to: loopColors.loopBrand }, // #7ADBB8, flat
291
+ dark: { from: loopColors.loopBrand, to: loopColors.loopBrand }, // #7ADBB8, flat
292
+ },
293
+ brightPalette: {
294
+ glow: loopColors.brightGlow, // #7ADBB8 — green, the accent
295
+ onGlow: loopColors.loopOn, // dark text on the accent
296
+ pop: loopColors.brightPop, // #8CCBF9 — sky
297
+ spark: loopColors.brightSpark, // #BEDC55 — lime
298
+ blaze: loopColors.brightBlaze, // #F6A5C1 — rose
299
+ surge: loopColors.brightSurge, // #C0AEF6 — violet
300
+ flame: loopColors.brightFlame, // #F4A261 — soft orange
301
+ gold: loopColors.brightGold, // #F8D469 — sun
302
+ },
303
+ brightPaletteLight: {
304
+ glow: loopColors.brightLightGlow, // #0F6B4F — deep green
305
+ onGlow: '#ffffff', // white text on deep green
306
+ pop: loopColors.brightLightPop, // #1F6FB0 — deep sky
307
+ spark: loopColors.brightLightSpark, // #5F7A00 — deep lime
308
+ blaze: loopColors.brightLightBlaze, // #B83A6B — deep rose
309
+ surge: loopColors.brightLightSurge, // #6B53C9 — deep violet
310
+ flame: loopColors.brightLightFlame, // #B4571A — deep orange
311
+ gold: loopColors.brightLightGold, // #8A6A00 — deep sun
312
+ },
313
+ },
279
314
  };
280
315
  /** All available theme variants in display order. */
281
- export const themeVariants = ['datalayer', 'spatial', 'lovely', 'matrix', 'earth', 'sand', 'ivory', 'sun'];
316
+ export const themeVariants = ['datalayer', 'spatial', 'lovely', 'matrix', 'earth', 'sand', 'ivory', 'sun', 'loop'];
282
317
  /** Look up a theme config by variant name. */
283
318
  export function getThemeConfig(variant) {
284
319
  return themeConfigs[variant];
@@ -463,6 +498,22 @@ const avatarColorPalettes = {
463
498
  sunColors.brightSurge, // #4FB0C6 — sky blue
464
499
  ],
465
500
  },
501
+ loop: {
502
+ light: [
503
+ loopColors.brightLightGlow, // #0F6B4F — deep green
504
+ loopColors.brightLightPop, // #1F6FB0 — deep sky
505
+ loopColors.brightLightBlaze, // #B83A6B — deep rose
506
+ loopColors.brightLightSurge, // #6B53C9 — deep violet
507
+ loopColors.gray, // #6A6A66 — neutral gray
508
+ ],
509
+ dark: [
510
+ loopColors.loopBrand, // #7ADBB8 — green
511
+ loopColors.brightPop, // #8CCBF9 — sky
512
+ loopColors.brightBlaze, // #F6A5C1 — rose
513
+ loopColors.brightSurge, // #C0AEF6 — violet
514
+ loopColors.brightGold, // #F8D469 — sun
515
+ ],
516
+ },
466
517
  };
467
518
  /**
468
519
  * Get a 5-colour avatar palette for the given theme variant and colour mode.