@pingux/astro 2.88.0 → 2.89.0-alpha.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 (75) hide show
  1. package/lib/cjs/components/CodeView/CodeView.js +29 -4
  2. package/lib/cjs/components/CodeView/CodeView.test.js +10 -0
  3. package/lib/cjs/components/CopyText/CopyText.js +2 -2
  4. package/lib/cjs/components/Menu/Menu.js +1 -3
  5. package/lib/cjs/components/MenuItem/MenuItem.js +1 -3
  6. package/lib/cjs/components/Modal/Modal.js +1 -2
  7. package/lib/cjs/components/NavigationHeader/HeaderAccountMenu.d.ts +9 -0
  8. package/lib/cjs/components/NavigationHeader/HeaderAccountMenu.js +75 -0
  9. package/lib/cjs/components/NavigationHeader/NavigationHeader.d.ts +9 -0
  10. package/lib/cjs/components/NavigationHeader/NavigationHeader.js +49 -0
  11. package/lib/cjs/components/NavigationHeader/NavigationHeader.mdx +31 -0
  12. package/lib/cjs/components/NavigationHeader/NavigationHeader.stories.d.ts +12 -0
  13. package/lib/cjs/components/NavigationHeader/NavigationHeader.stories.js +210 -0
  14. package/lib/cjs/components/NavigationHeader/NavigationHeader.test.d.ts +1 -0
  15. package/lib/cjs/components/NavigationHeader/NavigationHeader.test.js +361 -0
  16. package/lib/cjs/components/NavigationHeader/index.d.ts +1 -0
  17. package/lib/cjs/components/NavigationHeader/index.js +14 -0
  18. package/lib/cjs/components/ProgressBar/ProgressBar.js +1 -5
  19. package/lib/cjs/components/RangeCalendar/RangeCalendarGrid.js +1 -4
  20. package/lib/cjs/components/Separator/Separator.js +1 -3
  21. package/lib/cjs/components/Tab/Tab.js +0 -1
  22. package/lib/cjs/components/Tabs/Tabs.js +2 -4
  23. package/lib/cjs/components/TimeField/TimeSegment.js +1 -3
  24. package/lib/cjs/hooks/useField/useField.d.ts +79 -79
  25. package/lib/cjs/index.d.ts +2 -0
  26. package/lib/cjs/index.js +55 -36
  27. package/lib/cjs/recipes/LinkedListView.stories.js +7 -0
  28. package/lib/cjs/styles/themes/next-gen/codeView/codeView.d.ts +15 -1
  29. package/lib/cjs/styles/themes/next-gen/codeView/codeView.js +22 -6
  30. package/lib/cjs/styles/themes/next-gen/convertedComponentList.d.ts +1 -0
  31. package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +4 -2
  32. package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +261 -7
  33. package/lib/cjs/styles/themes/next-gen/next-gen.js +2 -0
  34. package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +5 -0
  35. package/lib/cjs/styles/themes/next-gen/variants/button.js +6 -4
  36. package/lib/cjs/styles/themes/next-gen/variants/navigationHeader.d.ts +140 -0
  37. package/lib/cjs/styles/themes/next-gen/variants/navigationHeader.js +131 -0
  38. package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +107 -6
  39. package/lib/cjs/styles/themes/next-gen/variants/variants.js +15 -9
  40. package/lib/cjs/types/codeView.d.ts +3 -2
  41. package/lib/cjs/types/copyText.d.ts +1 -1
  42. package/lib/cjs/types/index.d.ts +1 -0
  43. package/lib/cjs/types/index.js +65 -54
  44. package/lib/cjs/types/shared/dom.d.ts +2 -2
  45. package/lib/cjs/utils/devUtils/constants/images.d.ts +2 -0
  46. package/lib/cjs/utils/devUtils/constants/images.js +6 -2
  47. package/lib/components/CodeView/CodeView.js +30 -5
  48. package/lib/components/CodeView/CodeView.test.js +10 -0
  49. package/lib/components/CopyText/CopyText.js +2 -2
  50. package/lib/components/Menu/Menu.js +1 -3
  51. package/lib/components/MenuItem/MenuItem.js +1 -3
  52. package/lib/components/Modal/Modal.js +1 -2
  53. package/lib/components/NavigationHeader/HeaderAccountMenu.js +66 -0
  54. package/lib/components/NavigationHeader/NavigationHeader.js +37 -0
  55. package/lib/components/NavigationHeader/NavigationHeader.mdx +31 -0
  56. package/lib/components/NavigationHeader/NavigationHeader.stories.js +195 -0
  57. package/lib/components/NavigationHeader/NavigationHeader.test.js +358 -0
  58. package/lib/components/NavigationHeader/index.js +1 -0
  59. package/lib/components/ProgressBar/ProgressBar.js +1 -5
  60. package/lib/components/RangeCalendar/RangeCalendarGrid.js +1 -4
  61. package/lib/components/Separator/Separator.js +1 -3
  62. package/lib/components/Tab/Tab.js +0 -1
  63. package/lib/components/Tabs/Tabs.js +2 -4
  64. package/lib/components/TimeField/TimeSegment.js +1 -3
  65. package/lib/index.js +2 -0
  66. package/lib/recipes/LinkedListView.stories.js +7 -0
  67. package/lib/styles/themes/next-gen/codeView/codeView.js +20 -5
  68. package/lib/styles/themes/next-gen/convertedComponentList.js +2 -1
  69. package/lib/styles/themes/next-gen/next-gen.js +2 -0
  70. package/lib/styles/themes/next-gen/variants/button.js +6 -4
  71. package/lib/styles/themes/next-gen/variants/navigationHeader.js +123 -0
  72. package/lib/styles/themes/next-gen/variants/variants.js +14 -8
  73. package/lib/types/index.js +1 -0
  74. package/lib/utils/devUtils/constants/images.js +3 -1
  75. package/package.json +1 -1
@@ -0,0 +1,123 @@
1
+ import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
2
+ import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
3
+ import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
4
+ import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
5
+ import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
6
+ import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
7
+ import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
8
+ import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
9
+ import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
10
+ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
12
+ var defaultFocus = {
13
+ outline: '2px solid',
14
+ outlineColor: 'active'
15
+ };
16
+ var link = {
17
+ fontSize: 'md',
18
+ fontFamily: 'standard',
19
+ py: 'sm',
20
+ px: 'md',
21
+ fontWeight: '1',
22
+ color: 'text.primary',
23
+ textDecoration: 'none',
24
+ borderRadius: '3px',
25
+ '&.is-hovered': {
26
+ textDecoration: 'none',
27
+ color: 'text.secondary'
28
+ },
29
+ '&.is-focused': _objectSpread(_objectSpread({}, defaultFocus), {}, {
30
+ textDecoration: 'none'
31
+ }),
32
+ '&.is-pressed': {
33
+ textDecoration: 'none'
34
+ },
35
+ '&.is-visited': {
36
+ textDecoration: 'none'
37
+ }
38
+ };
39
+ var logoBand = _objectSpread(_objectSpread({}, link), {}, {
40
+ p: 0
41
+ });
42
+ var headerPlaceholder = {
43
+ fontSize: 'lg',
44
+ ml: 'md',
45
+ color: 'text.primary',
46
+ lineHeight: 'body',
47
+ fontWeight: '1',
48
+ '&.is-hovered': {
49
+ color: 'text.secondary'
50
+ }
51
+ };
52
+ var navigationHeader = {
53
+ headerPlaceholder: headerPlaceholder,
54
+ link: link,
55
+ logoBand: logoBand,
56
+ container: {
57
+ fontFamily: 'standard',
58
+ borderBottom: '1px solid',
59
+ borderColor: 'gray-300',
60
+ bg: '#fff',
61
+ height: '4.5rem',
62
+ justifyContent: 'center'
63
+ },
64
+ wrapper: {
65
+ px: ['1.5rem', '1.5rem', '1.5rem', '3rem', '3rem', '3rem'],
66
+ maxWidth: '1540px',
67
+ mx: 'auto',
68
+ width: '100%'
69
+ },
70
+ dropdownMenu: {
71
+ maxWidth: 'unset',
72
+ p: 'sm',
73
+ '& > li': {
74
+ p: '0'
75
+ }
76
+ },
77
+ dropdownMenuItem: _objectSpread(_objectSpread({}, link), {}, {
78
+ padding: '.675rem 1rem',
79
+ pr: '2.25rem',
80
+ '&.is-hovered': {
81
+ textDecoration: 'none'
82
+ },
83
+ '&.is-pressed': {
84
+ textDecoration: 'none'
85
+ },
86
+ '&.is-focused': {
87
+ textDecoration: 'none'
88
+ },
89
+ '&.is-visited': {
90
+ textDecoration: 'none'
91
+ }
92
+ }),
93
+ accountButton: {
94
+ display: 'flex',
95
+ width: 'auto',
96
+ height: 'auto',
97
+ cursor: 'pointer',
98
+ p: '0',
99
+ px: 'sm',
100
+ py: '1px',
101
+ border: 'none',
102
+ borderRadius: '3px',
103
+ bg: 'transparent',
104
+ '&.is-hovered': {
105
+ bg: 'transparent',
106
+ border: 'none',
107
+ boxShadow: 'none'
108
+ },
109
+ '&.is-pressed': {
110
+ bg: 'transparent',
111
+ border: 'none',
112
+ boxShadow: 'none'
113
+ },
114
+ '&.is-focused': _objectSpread(_objectSpread({}, defaultFocus), {}, {
115
+ bg: 'transparent'
116
+ }),
117
+ '&.is-visited': {
118
+ bg: 'transparent'
119
+ },
120
+ minWidth: '50px'
121
+ }
122
+ };
123
+ export default navigationHeader;
@@ -9,6 +9,7 @@ import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object
9
9
  import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
10
10
  function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11
11
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
12
+ import codeView from '../codeView/codeView';
12
13
  import buttons from './button';
13
14
  var fieldHelperText = {
14
15
  title: {
@@ -243,7 +244,10 @@ var menuItem = {
243
244
  };
244
245
  var separator = {
245
246
  base: {
246
- bg: 'gray-300'
247
+ bg: 'gray-300',
248
+ '&.is-vertical': {
249
+ m: '0'
250
+ }
247
251
  }
248
252
  };
249
253
  var avatar = {
@@ -492,21 +496,23 @@ var dataTable = {
492
496
  fontSize: 'md'
493
497
  }
494
498
  };
495
- var codeView = {
499
+
500
+ /* const codeView = {
496
501
  wrapper: {
497
502
  backgroundColor: 'gray-900',
498
503
  borderRadius: '4px',
499
504
  '> button >svg': {
500
505
  color: 'gray-300',
501
506
  path: {
502
- fill: 'gray-300'
503
- }
507
+ fill: 'gray-300',
508
+ },
504
509
  },
505
510
  '> pre': {
506
- p: 'md'
507
- }
508
- }
509
- };
511
+ p: 'md',
512
+ },
513
+ },
514
+ }; */
515
+
510
516
  var tabs = {
511
517
  gap: '0px'
512
518
  };
@@ -1,4 +1,5 @@
1
1
  export * from './arrayField';
2
+ export * from './avatar';
2
3
  export * from './badge';
3
4
  export * from './box';
4
5
  export * from './bracket';