@pingux/astro 2.245.0 → 2.246.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 (45) hide show
  1. package/lib/cjs/components/Calendar/CalendarCell.js +8 -2
  2. package/lib/cjs/components/DatePicker/DateField.js +24 -5
  3. package/lib/cjs/components/DatePicker/DatePicker.js +19 -9
  4. package/lib/cjs/components/TableBase/TableBase.js +14 -3
  5. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.d.ts +1 -0
  6. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.js +3 -2
  7. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.d.ts +17 -0
  8. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +17 -0
  9. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/calendar.d.ts +113 -0
  10. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/calendar.js +128 -0
  11. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/forms.d.ts +1822 -0
  12. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/forms.js +42 -2
  13. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +112 -0
  14. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +3 -1
  15. package/lib/cjs/styles/themeOverrides/onyxUiLibraryOverride.js +5 -1
  16. package/lib/cjs/styles/themes/next-gen/colors/colors.d.ts +1 -0
  17. package/lib/cjs/styles/themes/next-gen/colors/colors.js +1 -0
  18. package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +1 -1
  19. package/lib/cjs/styles/themes/next-gen/forms.d.ts +2044 -214
  20. package/lib/cjs/styles/themes/next-gen/forms.js +48 -2
  21. package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +1185 -90
  22. package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +22 -0
  23. package/lib/cjs/styles/themes/next-gen/variants/button.js +22 -0
  24. package/lib/cjs/styles/themes/next-gen/variants/calendar.d.ts +158 -0
  25. package/lib/cjs/styles/themes/next-gen/variants/calendar.js +172 -0
  26. package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +157 -0
  27. package/lib/cjs/styles/themes/next-gen/variants/variants.js +2 -0
  28. package/lib/cjs/types/popoverContainer.d.ts +7 -2
  29. package/lib/components/Calendar/CalendarCell.js +9 -3
  30. package/lib/components/DatePicker/DateField.js +25 -6
  31. package/lib/components/DatePicker/DatePicker.js +20 -10
  32. package/lib/components/TableBase/TableBase.js +14 -3
  33. package/lib/styles/themeOverrides/nextGenDarkMode/colors.js +3 -2
  34. package/lib/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +17 -0
  35. package/lib/styles/themeOverrides/nextGenDarkMode/variants/calendar.js +122 -0
  36. package/lib/styles/themeOverrides/nextGenDarkMode/variants/forms.js +41 -1
  37. package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +3 -1
  38. package/lib/styles/themeOverrides/onyxUiLibraryOverride.js +5 -1
  39. package/lib/styles/themes/next-gen/colors/colors.js +1 -0
  40. package/lib/styles/themes/next-gen/convertedComponentList.js +1 -1
  41. package/lib/styles/themes/next-gen/forms.js +47 -1
  42. package/lib/styles/themes/next-gen/variants/button.js +22 -0
  43. package/lib/styles/themes/next-gen/variants/calendar.js +166 -0
  44. package/lib/styles/themes/next-gen/variants/variants.js +2 -0
  45. package/package.json +1 -1
@@ -0,0 +1,166 @@
1
+ import { astroTokens } from '@pingux/onyx-tokens';
2
+ const calendarBody = {
3
+ py: 'sm',
4
+ borderTop: 'none',
5
+ backgroundColor: 'backgroundBase',
6
+ '& > tr:nth-of-type(odd) ': {
7
+ backgroundColor: 'backgroundBase'
8
+ }
9
+ };
10
+ const calendarButton = {
11
+ height: '31px',
12
+ width: '31px',
13
+ margin: '0 auto',
14
+ p: 0,
15
+ fontWeight: '2',
16
+ fontSize: 'small',
17
+ borderRadius: astroTokens.radius.xl,
18
+ color: 'text.primary',
19
+ lineHeight: 1.6,
20
+ justifyContent: 'center',
21
+ '&.is-hovered': {
22
+ bg: astroTokens.color.gray[100],
23
+ color: 'text.primary',
24
+ cursor: 'pointer'
25
+ },
26
+ '&.is-selected': {
27
+ bg: 'active',
28
+ color: 'text.reverse',
29
+ borderRadius: astroTokens.radius.xl,
30
+ outline: 'none',
31
+ boxShadow: 'none'
32
+ },
33
+ '&.is-selection-start': {
34
+ borderRadius: astroTokens.radius.xl
35
+ },
36
+ '&.is-selection-end': {
37
+ borderRadius: astroTokens.radius.xl
38
+ },
39
+ '&.is-start-and-end': {
40
+ borderRadius: astroTokens.radius.xl
41
+ },
42
+ '&.is-focused, &:focus-visible': {
43
+ outline: '2px',
44
+ outlineStyle: 'solid',
45
+ outlineColor: 'focus',
46
+ outlineOffset: '2px'
47
+ },
48
+ '&.is-disabled': {
49
+ backgroundColor: astroTokens.color.gray[300],
50
+ cursor: 'default',
51
+ '&.is-hovered': {
52
+ backgroundColor: astroTokens.color.gray[300]
53
+ }
54
+ },
55
+ '&.is-unavailable': {
56
+ backgroundColor: astroTokens.color.gray[300],
57
+ color: 'text.primary',
58
+ '&.is-hovered': {
59
+ cursor: 'default'
60
+ }
61
+ },
62
+ '&:not(.is-unavailable)&.is-outside-month': {
63
+ backgroundColor: 'unset'
64
+ },
65
+ '&:not(.is-outside-visible-range)&.is-extreme&:not(.is-completely-disabled)': {
66
+ backgroundColor: astroTokens.color.gray[300],
67
+ color: 'text.primary',
68
+ cursor: 'default',
69
+ '&.is-hovered': {
70
+ backgroundColor: astroTokens.color.gray[300]
71
+ }
72
+ }
73
+ };
74
+ const calendarCell = {
75
+ height: '36px',
76
+ width: '40px',
77
+ px: 0,
78
+ color: 'text.primary',
79
+ '&.is-outside-month': {
80
+ opacity: 0.65,
81
+ backgroundColor: 'transparent',
82
+ color: 'text.secondary',
83
+ '& [data-hidden="true"], & > [hidden]': {
84
+ color: 'text.secondary'
85
+ },
86
+ '&.is-completely-disabled': {
87
+ backgroundColor: 'transparent',
88
+ color: 'text.secondary',
89
+ '& > [hidden]': {
90
+ color: 'text.secondary'
91
+ },
92
+ '&.is-hovered': {
93
+ backgroundColor: 'transparent',
94
+ color: 'text.secondary'
95
+ }
96
+ },
97
+ '&.is-unavailable': {
98
+ backgroundColor: astroTokens.color.gray[300],
99
+ color: 'text.primary',
100
+ '& > [hidden]': {
101
+ color: 'text.secondary'
102
+ },
103
+ '&.is-hovered': {
104
+ backgroundColor: astroTokens.color.gray[300],
105
+ color: 'text.primary'
106
+ }
107
+ },
108
+ '&.is-extreme:not(.is-completely-disabled):not(.is-unavailable)': {
109
+ backgroundColor: astroTokens.color.gray[300],
110
+ color: 'text.primary',
111
+ '& > [hidden]': {
112
+ color: 'text.secondary'
113
+ },
114
+ '&.is-hovered': {
115
+ backgroundColor: astroTokens.color.gray[300],
116
+ color: 'text.primary'
117
+ }
118
+ }
119
+ }
120
+ };
121
+ const calendarHeader = {
122
+ justifyContent: 'space-between',
123
+ alignItems: 'center',
124
+ color: 'text.primary'
125
+ };
126
+ const calendarHeaderContainer = {
127
+ mt: 0,
128
+ height: '26px',
129
+ mb: 'md',
130
+ width: '100%'
131
+ };
132
+ const columnHeader = {
133
+ color: 'text.primary',
134
+ fontWeight: 0,
135
+ fontSize: 'small',
136
+ borderBottom: '1px solid',
137
+ borderBottomColor: astroTokens.color.gray[200],
138
+ pb: '32px',
139
+ mb: '0',
140
+ '&.is-disabled': {
141
+ opacity: 0.65
142
+ }
143
+ };
144
+ const calendarContainer = {
145
+ boxShadow: `0 ${astroTokens.spacing.popover.shadow.y}px ${astroTokens.spacing.popover.shadow.blur}px 0 rgba(0, 0, 0, 0.18)`,
146
+ border: '1px solid',
147
+ borderColor: astroTokens.color.common.border,
148
+ borderRadius: astroTokens.radius.xl,
149
+ p: 'md',
150
+ bg: 'backgroundBase',
151
+ color: 'text.primary',
152
+ maxWidth: '312px'
153
+ };
154
+ const calendarRow = {
155
+ bg: 'backgroundBase'
156
+ };
157
+ export default {
158
+ calendarBody,
159
+ calendarButton,
160
+ calendarCell,
161
+ calendarContainer,
162
+ calendarHeader,
163
+ calendarHeaderContainer,
164
+ columnHeader,
165
+ calendarRow
166
+ };
@@ -12,6 +12,7 @@ import arrayField from './arrayField';
12
12
  import { avatar } from './avatar';
13
13
  import { box } from './box';
14
14
  import button, { defaultFocus } from './button';
15
+ import calendar from './calendar';
15
16
  import callout from './callout';
16
17
  import { dataTable } from './dataTable';
17
18
  import environmentBreadcrumb from './environmentBreadcrumb';
@@ -491,6 +492,7 @@ export default {
491
492
  breadcrumb,
492
493
  box,
493
494
  buttonBar,
495
+ calendar,
494
496
  callout,
495
497
  checkboxFieldGroup,
496
498
  codeView,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.245.0",
3
+ "version": "2.246.0-alpha.0",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",