@pingux/astro 2.149.2-alpha.0 → 2.150.0-alpha.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 (30) hide show
  1. package/lib/cjs/components/Icon/Icon.js +2 -2
  2. package/lib/cjs/components/IconButton/IconButton.stories.js +18 -28
  3. package/lib/cjs/components/Tabs/Tabs.style.js +2 -2
  4. package/lib/cjs/hooks/useGetTheme/useGetTheme.d.ts +2 -0
  5. package/lib/cjs/hooks/useTShirtSize/useTShirtSize.test.js +51 -1
  6. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/index.d.ts +1 -0
  7. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.d.ts +7 -45
  8. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +10 -23
  9. package/lib/cjs/styles/themes/astro/customProperties/index.d.ts +1 -0
  10. package/lib/cjs/styles/themes/astro/customProperties/index.js +2 -0
  11. package/lib/cjs/styles/themes/next-gen/colors/colors.js +1 -1
  12. package/lib/cjs/styles/themes/next-gen/customProperties/index.d.ts +4 -2
  13. package/lib/cjs/styles/themes/next-gen/customProperties/index.js +2 -0
  14. package/lib/cjs/styles/themes/next-gen/customProperties/tShirtSizes.js +13 -13
  15. package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +145 -245
  16. package/lib/cjs/styles/themes/next-gen/variants/badges.d.ts +18 -20
  17. package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +136 -235
  18. package/lib/cjs/styles/themes/next-gen/variants/button.js +48 -105
  19. package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +9 -10
  20. package/lib/components/Icon/Icon.js +2 -2
  21. package/lib/components/IconButton/IconButton.stories.js +18 -28
  22. package/lib/components/Tabs/Tabs.style.js +2 -2
  23. package/lib/hooks/useTShirtSize/useTShirtSize.test.js +51 -1
  24. package/lib/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +10 -23
  25. package/lib/styles/themes/astro/customProperties/index.js +2 -0
  26. package/lib/styles/themes/next-gen/colors/colors.js +1 -1
  27. package/lib/styles/themes/next-gen/customProperties/index.js +2 -0
  28. package/lib/styles/themes/next-gen/customProperties/tShirtSizes.js +13 -13
  29. package/lib/styles/themes/next-gen/variants/button.js +48 -105
  30. package/package.json +1 -1
@@ -319,44 +319,60 @@ var aiChat = _objectSpread(_objectSpread({}, withIcon), {}, {
319
319
  }
320
320
  }
321
321
  });
322
- var baseIconButton = {
323
- cursor: 'pointer',
322
+
323
+ // Base styles for icon buttons
324
+ var baseIconButtonStyle = {
325
+ p: '4px',
324
326
  transition: 'color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out',
325
327
  outline: 'none',
326
328
  borderRadius: '28px',
327
- border: '1px solid',
328
- borderColor: 'transparent',
329
+ border: 'none',
330
+ cursor: 'pointer',
331
+ boxShadow: 'none !important'
332
+ };
333
+ var baseIconButton = _objectSpread(_objectSpread({}, baseIconButtonStyle), {}, {
329
334
  path: {
330
335
  fill: 'dark'
331
336
  },
332
- '&.is-focused': {
333
- outline: '2px solid',
334
- outlineColor: 'primary',
335
- outlineOffset: '3px'
336
- },
337
337
  '&.is-hovered': {
338
- backgroundColor: 'gray-100',
338
+ backgroundColor: 'background.hover',
339
339
  path: {
340
340
  fill: 'dark'
341
341
  }
342
342
  },
343
343
  '&.is-pressed': {
344
- backgroundColor: 'gray-100',
345
- borderColor: 'gray-200',
344
+ backgroundColor: 'background.hover',
346
345
  path: {
347
346
  fill: 'dark'
348
347
  }
349
- }
350
- };
348
+ },
349
+ '&.is-focused': _objectSpread({}, defaultFocus)
350
+ });
351
+ var invertedIconButton = _objectSpread(_objectSpread({}, baseIconButtonStyle), {}, {
352
+ '&.is-hovered': {
353
+ boxShadow: 'none !important',
354
+ backgroundColor: 'blue-600'
355
+ },
356
+ '&.is-pressed': {
357
+ backgroundColor: 'blue-600'
358
+ },
359
+ '&.is-disabled': {
360
+ backgroundColor: 'gray-300'
361
+ },
362
+ '&.is-focused': _objectSpread({}, defaultFocus)
363
+ });
351
364
  var modalCloseButton = _objectSpread(_objectSpread({}, baseIconButton), {}, {
352
365
  position: 'absolute',
353
366
  top: 32,
354
367
  right: 18
355
368
  });
356
- var onyxIconButton = _objectSpread(_objectSpread(_objectSpread({}, baseIconButton), secondary), {}, {
369
+ var onyxIconButton = _objectSpread(_objectSpread({}, baseIconButton), {}, {
357
370
  path: {
358
371
  fill: 'blue'
359
372
  },
373
+ display: 'inline-flex',
374
+ alignItems: 'center',
375
+ justifyContent: 'center',
360
376
  '&.is-hovered': {
361
377
  backgroundColor: chroma.mix(primaryBlue, 'black', 0.075, 'rgb').hex(),
362
378
  path: {
@@ -365,47 +381,32 @@ var onyxIconButton = _objectSpread(_objectSpread(_objectSpread({}, baseIconButto
365
381
  },
366
382
  '&.is-pressed': {
367
383
  backgroundColor: chroma.mix(primaryBlue, 'black', 0.125, 'rgb').hex(),
368
- borderColor: chroma.mix(primaryBlue, 'black', 0.125, 'rgb').hex(),
369
384
  path: {
370
385
  fill: 'white'
371
386
  }
372
387
  },
373
- maxHeight: '48.5px',
374
- maxWidth: '48.5px',
375
- width: '48.5px',
376
- p: 'sm',
377
- display: 'inline-flex',
378
- alignItems: 'center',
379
- justifyContent: 'center'
388
+ '&.is-focused': _objectSpread({}, defaultFocus)
380
389
  });
381
390
  var hintButton = {
382
391
  backgroundColor: 'transparent',
383
392
  path: {
384
393
  fill: 'dark'
385
394
  },
386
- '&.is-focused': {
387
- outline: '2px solid',
388
- outlineColor: 'primary',
389
- outlineOffset: '3px'
390
- },
391
395
  '&.is-hovered': {
392
396
  backgroundColor: 'gray-100',
393
397
  path: {
394
398
  fill: 'dark'
395
399
  }
396
- }
400
+ },
401
+ '&.is-focused': _objectSpread({}, defaultFocus)
397
402
  };
398
403
  var badgeDeleteButton = _objectSpread(_objectSpread({}, baseIconButton), {}, {
399
- height: 14,
400
404
  p: 0,
405
+ height: 14,
401
406
  width: 14,
402
- border: 'none',
403
- '&.is-focused': _objectSpread(_objectSpread({}, defaultFocus), {}, {
404
- backgroundColor: 'gray-100'
405
- }),
407
+ '&.is-focused': _objectSpread({}, defaultFocus),
406
408
  '&.is-pressed': {
407
409
  backgroundColor: 'gray-100',
408
- borderColor: 'gray-200',
409
410
  path: {
410
411
  fill: 'dark'
411
412
  }
@@ -414,19 +415,17 @@ var badgeDeleteButton = _objectSpread(_objectSpread({}, baseIconButton), {}, {
414
415
  bg: 'transparent'
415
416
  }
416
417
  }, transitions);
417
- var searchClearButton = _objectSpread(_objectSpread({}, baseIconButton), {}, {
418
+ var searchClearButton = _objectSpread(_objectSpread({}, baseIconButtonStyle), {}, {
419
+ path: {
420
+ fill: 'dark'
421
+ },
418
422
  width: '20px',
419
423
  height: '20px',
420
- border: 'none',
421
424
  position: 'absolute',
422
425
  right: '20px',
423
- '& > svg': {
424
- minWidth: tShirtSizes.xs,
425
- width: tShirtSizes.xs,
426
- height: tShirtSizes.xs
427
- },
428
426
  '&.is-hovered': {
429
- bg: 'background.hover'
427
+ bg: 'background.hover',
428
+ boxShadow: 'none !important'
430
429
  },
431
430
  '&.is-pressed': {
432
431
  bg: 'background.hover'
@@ -434,7 +433,6 @@ var searchClearButton = _objectSpread(_objectSpread({}, baseIconButton), {}, {
434
433
  });
435
434
  var iconButtons = {
436
435
  base: _objectSpread({}, baseIconButton),
437
- nextGen: _objectSpread({}, onyxIconButton),
438
436
  onyx: _objectSpread({}, onyxIconButton),
439
437
  responseToolbar: _objectSpread(_objectSpread({}, baseIconButton), {}, {
440
438
  '&.is-not-loaded': {
@@ -455,7 +453,6 @@ var iconButtons = {
455
453
  }),
456
454
  '&.is-pressed': {
457
455
  backgroundColor: 'gray-100',
458
- borderColor: 'gray-200',
459
456
  path: {
460
457
  fill: 'dark'
461
458
  }
@@ -467,83 +464,30 @@ var iconButtons = {
467
464
  width: '28px',
468
465
  height: '28px',
469
466
  '& > svg': {
470
- minWidth: '18px',
471
- width: '18px',
472
- height: '18px',
467
+ minWidth: tShirtSizes.sm,
468
+ width: tShirtSizes.sm,
469
+ height: tShirtSizes.sm,
473
470
  path: {
474
471
  fill: '#455469 !important'
475
472
  }
476
473
  }
477
474
  }),
478
- headerNav: _objectSpread(_objectSpread({}, baseIconButton), {}, {
479
- borderRadius: '4px',
480
- path: {
481
- fill: 'text.primary'
482
- },
483
- px: 'md',
484
- py: 'sm',
485
- width: '56px',
486
- height: '40px',
487
- '&.is-hovered': {
488
- path: {
489
- fill: 'text.secondary'
490
- }
491
- },
492
- '&.is-pressed': {
493
- path: {
494
- fill: 'text.secondary'
495
- }
496
- },
497
- '&.is-focused': _objectSpread(_objectSpread({}, defaultFocus), {}, {
498
- outlineOffset: '1px'
499
- })
500
- }),
475
+ headerNav: _objectSpread({}, baseIconButton),
501
476
  copyButton: copyButton,
502
477
  deleteAttachment: _objectSpread(_objectSpread({}, baseIconButton), {}, {
503
478
  backgroundColor: 'light',
504
- border: '1px solid',
505
- borderColor: 'gray-300',
506
479
  size: '24px',
507
- p: '4px',
508
480
  '&.is-hovered': {
509
481
  backgroundColor: '#dde5ec'
510
482
  }
511
483
  }),
512
- inverted: {
513
- cursor: 'pointer',
514
- transition: 'color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out',
515
- outline: 'none',
516
- path: {
517
- fill: 'white'
518
- },
519
- '&.is-focused': {
520
- outline: '2px solid',
521
- outlineColor: 'primary',
522
- outlineOffset: '3px'
523
- },
524
- '&.is-pressed': {
525
- backgroundColor: chroma.mix(primaryBlue, 'black', 0.125, 'rgb').hex(),
526
- borderColor: chroma.mix(primaryBlue, 'black', 0.125, 'rgb').hex()
527
- },
528
- '&.is-hovered': _objectSpread(_objectSpread({}, boxShadowNone), {}, {
529
- border: 'none !important',
530
- borderColor: 'none !important',
531
- backgroundColor: chroma.mix(primaryBlue, 'black', 0.075, 'rgb').hex()
532
- }),
533
- '&.is-disabled': {
534
- backgroundColor: 'gray-300'
535
- }
536
- },
484
+ inverted: _objectSpread({}, invertedIconButton),
537
485
  searchClearButton: searchClearButton,
538
486
  filter: _objectSpread(_objectSpread({}, baseIconButton), {}, {
539
- bg: 'transparent',
540
- border: '2px solid',
541
- borderColor: 'transparent',
542
487
  width: '32px',
543
488
  height: '32px',
544
489
  '&.is-hovered': {
545
- border: '2px solid',
546
- borderColor: 'transparent',
490
+ boxShadow: 'none !important',
547
491
  backgroundColor: 'gray-100',
548
492
  path: {
549
493
  fill: 'dark'
@@ -551,7 +495,6 @@ var iconButtons = {
551
495
  },
552
496
  '&.is-pressed': {
553
497
  backgroundColor: 'gray-100',
554
- borderColor: 'gray-200',
555
498
  path: {
556
499
  fill: 'dark'
557
500
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.149.2-alpha.0",
3
+ "version": "2.150.0-alpha.0",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",