@pingux/astro 2.150.0-alpha.1 → 2.150.0-alpha.2

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 (23) hide show
  1. package/lib/cjs/components/Box/Box.js +5 -3
  2. package/lib/cjs/components/IconButtonToggle/IconButtonToggle.js +4 -2
  3. package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +1 -1
  4. package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +144 -5
  5. package/lib/cjs/styles/themes/next-gen/stories/OnyxInputPatterns.chromatic.stories.d.ts +11 -0
  6. package/lib/cjs/styles/themes/next-gen/stories/OnyxInputPatterns.chromatic.stories.js +197 -0
  7. package/lib/cjs/styles/themes/next-gen/variants/box.d.ts +61 -0
  8. package/lib/cjs/styles/themes/next-gen/variants/box.js +58 -0
  9. package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +106 -5
  10. package/lib/cjs/styles/themes/next-gen/variants/button.js +40 -4
  11. package/lib/cjs/styles/themes/next-gen/variants/input.js +21 -0
  12. package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +38 -0
  13. package/lib/cjs/styles/themes/next-gen/variants/variants.js +2 -16
  14. package/lib/cjs/types/iconButtonToggle.d.ts +2 -0
  15. package/lib/components/Box/Box.js +5 -3
  16. package/lib/components/IconButtonToggle/IconButtonToggle.js +4 -2
  17. package/lib/styles/themes/next-gen/convertedComponentList.js +1 -1
  18. package/lib/styles/themes/next-gen/stories/OnyxInputPatterns.chromatic.stories.js +178 -0
  19. package/lib/styles/themes/next-gen/variants/box.js +49 -0
  20. package/lib/styles/themes/next-gen/variants/button.js +40 -4
  21. package/lib/styles/themes/next-gen/variants/input.js +21 -0
  22. package/lib/styles/themes/next-gen/variants/variants.js +2 -16
  23. package/package.json +1 -1
@@ -13,6 +13,7 @@ import chroma from 'chroma-js';
13
13
  import { copyButton } from '../codeView/codeView';
14
14
  import colors from '../colors/colors';
15
15
  import tShirtSizes from '../customProperties/tShirtSizes';
16
+ import { commonContentProps } from './box';
16
17
  var primaryBlue = colors.primary,
17
18
  primaryBlueHover = colors.active_hover,
18
19
  primaryBluePress = colors.active_pressed,
@@ -109,8 +110,19 @@ var secondary = _objectSpread(_objectSpread({}, buttonBase), {}, {
109
110
  var tertiary = _objectSpread(_objectSpread({}, buttonBase), {}, {
110
111
  backgroundColor: 'transparent',
111
112
  borderColor: 'border.base',
112
- color: 'text.secondary',
113
- '&.is-hovered': _objectSpread({}, boxShadowNone)
113
+ color: 'font.base',
114
+ '&.is-focused': _objectSpread(_objectSpread({}, defaultFocus), {}, {
115
+ outlineColor: 'gray-700',
116
+ backgroundColor: 'background.secondary'
117
+ }),
118
+ '&.is-pressed': {
119
+ backgroundColor: 'background.secondary',
120
+ color: 'font.base'
121
+ },
122
+ '&.is-hovered': _objectSpread({
123
+ backgroundColor: 'background.secondary',
124
+ color: 'font.base'
125
+ }, boxShadowNone)
114
126
  });
115
127
  var outlineCritical = _objectSpread(_objectSpread({}, buttonBase), {}, {
116
128
  backgroundColor: 'transparent',
@@ -500,7 +512,21 @@ var iconButtons = {
500
512
  }
501
513
  }
502
514
  }),
503
- hintButton: _objectSpread({}, hintButton)
515
+ hintButton: _objectSpread({}, hintButton),
516
+ passwordVisibilityIcon: _objectSpread(_objectSpread(_objectSpread({}, baseIconButton), commonContentProps), {}, {
517
+ right: 0,
518
+ padding: '12px 20px',
519
+ border: '0px solid !important',
520
+ '&:hover, &.is-pressed': {
521
+ background: 'transparent',
522
+ boxShadow: 'none'
523
+ },
524
+ '&.is-focused': {
525
+ outline: '2px solid',
526
+ outlineOffset: '2px',
527
+ outlineColor: 'gray-700'
528
+ }
529
+ })
504
530
  };
505
531
  var listBoxLink = {
506
532
  color: 'active',
@@ -529,6 +555,15 @@ var listBoxLink = {
529
555
  }
530
556
  })
531
557
  };
558
+ var ButtonInputGroupContentRight = _objectSpread(_objectSpread(_objectSpread({}, tertiary), commonContentProps), {}, {
559
+ right: 0,
560
+ padding: '12px 20px',
561
+ borderRadius: '0px 4px 4px 0px !important',
562
+ borderWidth: '0px !important',
563
+ borderLeftWidth: '1px !important',
564
+ borderRightWidth: '1px !important',
565
+ borderLeftColor: 'gray-500'
566
+ });
532
567
  var buttons = {
533
568
  neutral: neutral,
534
569
  primary: primary,
@@ -552,6 +587,7 @@ var buttons = {
552
587
  iconButtons: iconButtons,
553
588
  modalCloseButton: modalCloseButton,
554
589
  aiChat: aiChat,
555
- paginationMenu: paginationMenu
590
+ paginationMenu: paginationMenu,
591
+ ButtonInputGroupContentRight: ButtonInputGroupContentRight
556
592
  };
557
593
  export default buttons;
@@ -192,4 +192,25 @@ input.promptInputAttachmentWrapper = {
192
192
  overflowY: 'hidden',
193
193
  whiteSpace: 'nowrap',
194
194
  px: '.75rem'
195
+ };
196
+ input.dropDownContentRight = {
197
+ background: 'inherit',
198
+ '& button': {
199
+ borderRadius: '0px 4px 4px 0px !important',
200
+ '&.is-focused': {
201
+ outline: '2px solid',
202
+ outlineOffset: '2px',
203
+ outlineColor: 'gray-700'
204
+ }
205
+ }
206
+ };
207
+ input.dropDownContentLeft = {
208
+ '& button': {
209
+ borderRadius: '4px 0px 0px 4px !important',
210
+ '&.is-focused': {
211
+ outline: '2px solid',
212
+ outlineOffset: '2px',
213
+ outlineColor: 'gray-700'
214
+ }
215
+ }
195
216
  };
@@ -12,9 +12,9 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
12
12
  import attachment from '../../../../components/AIComponents/Attachment/Attachment.styles';
13
13
  import skeleton from '../../../../components/Skeleton/Skeleton.styles';
14
14
  import codeView from '../codeView/codeView';
15
- import colors from '../colors/colors';
16
15
  import accordion from './accordion';
17
16
  import { avatar } from './avatar';
17
+ import { box } from './box';
18
18
  import button, { defaultFocus } from './button';
19
19
  import callout from './callout';
20
20
  import { dataTable } from './dataTable';
@@ -382,21 +382,7 @@ export default {
382
382
  attachment: attachment,
383
383
  avatar: avatar,
384
384
  breadcrumb: breadcrumb,
385
- box: {
386
- indeterminateCheckboxIcon: {
387
- height: '19.25px',
388
- width: '19.25px',
389
- '&.is-disabled': {
390
- '& rect[id="indeterminate-checkbox-icon-wrapper"]': {
391
- fill: 'gray-500',
392
- stroke: 'gray-500'
393
- }
394
- },
395
- '&.is-focused': {
396
- boxShadow: "inset 0px 0px 0px 1px ".concat(colors.focus)
397
- }
398
- }
399
- },
385
+ box: box,
400
386
  buttonBar: buttonBar,
401
387
  callout: callout,
402
388
  codeView: codeView,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.150.0-alpha.1",
3
+ "version": "2.150.0-alpha.2",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",