@dynamic-framework/ui-react 1.2.2 → 1.3.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 (127) hide show
  1. package/dist/css/dynamic-ui-all.css +1 -1
  2. package/dist/css/dynamic-ui-react.css +1 -1
  3. package/dist/css/dynamic-ui.css +1 -1
  4. package/dist/index.esm.js +177 -175
  5. package/dist/index.esm.js.map +1 -1
  6. package/dist/index.js +222 -220
  7. package/dist/index.js.map +1 -1
  8. package/dist/types/components/{MBoxFile.d.ts → DBoxFile.d.ts} +1 -1
  9. package/dist/types/components/{MCard.d.ts → DCard.d.ts} +1 -1
  10. package/dist/types/components/DCardAccount.d.ts +13 -0
  11. package/dist/types/components/{MCardBody.d.ts → DCardBody.d.ts} +1 -1
  12. package/dist/types/components/{MCardFooter.d.ts → DCardFooter.d.ts} +1 -1
  13. package/dist/types/components/{MCardHeader.d.ts → DCardHeader.d.ts} +1 -1
  14. package/dist/types/components/{MCarousel.d.ts → DCarousel.d.ts} +1 -1
  15. package/dist/types/components/{MCarouselSlide.d.ts → DCarouselSlide.d.ts} +1 -1
  16. package/dist/types/components/DCollapse.d.ts +11 -0
  17. package/dist/types/components/{banking/MCollapseIconText.d.ts → DCollapseIconText.d.ts} +1 -1
  18. package/dist/types/components/{MCurrencyText.d.ts → DCurrencyText.d.ts} +1 -1
  19. package/dist/types/components/{MDatePicker.d.ts → DDatePicker.d.ts} +3 -3
  20. package/dist/types/components/{MDatePickerHeader.d.ts → DDatePickerHeader.d.ts} +5 -4
  21. package/dist/types/components/DDatePickerInput.d.ts +8 -0
  22. package/dist/types/components/DDatePickerTime.d.ts +8 -0
  23. package/dist/types/components/DFormikInput.d.ts +7 -0
  24. package/dist/types/components/DFormikInputCurrency.d.ts +7 -0
  25. package/dist/types/components/{MFormikInputSelect.d.ts → DFormikInputSelect.d.ts} +3 -3
  26. package/dist/types/components/DInputCurrency.d.ts +9 -0
  27. package/dist/types/components/{MList.d.ts → DList.d.ts} +1 -1
  28. package/dist/types/components/{MListItem.d.ts → DListItem.d.ts} +2 -2
  29. package/dist/types/components/{MListItemMovement.d.ts → DListItemMovement.d.ts} +3 -3
  30. package/dist/types/components/DMonthPicker.d.ts +7 -0
  31. package/dist/types/components/{MPaginator.d.ts → DPaginator.d.ts} +4 -4
  32. package/dist/types/components/DPopover.d.ts +8 -0
  33. package/dist/types/components/{MSkeleton.d.ts → DSkeleton.d.ts} +1 -1
  34. package/dist/types/components/{MStepper.d.ts → DStepper.d.ts} +1 -1
  35. package/dist/types/components/{MTabContent.d.ts → DTabContent.d.ts} +1 -1
  36. package/dist/types/components/{MTabs.d.ts → DTabs.d.ts} +5 -5
  37. package/dist/types/components/{MToastContainer.d.ts → DToastContainer.d.ts} +2 -2
  38. package/dist/types/components/{MTooltip.d.ts → DTooltip.d.ts} +2 -2
  39. package/dist/types/components/banking/{MPermissionItem.d.ts → DPermissionItem.d.ts} +1 -1
  40. package/dist/types/components/banking/index.d.ts +1 -2
  41. package/dist/types/components/index.d.ts +27 -27
  42. package/dist/types/components/proxies.d.ts +21 -21
  43. package/dist/types/stories/components/{MBadge.stories.d.ts → DBadge.stories.d.ts} +3 -3
  44. package/dist/types/stories/components/DBoxFile.stories.d.ts +6 -0
  45. package/dist/types/stories/components/{MButton.stories.d.ts → DButton.stories.d.ts} +3 -3
  46. package/dist/types/stories/components/{MCard.stories.d.ts → DCard.stories.d.ts} +3 -3
  47. package/dist/types/stories/components/DCardAccount.stories.d.ts +6 -0
  48. package/dist/types/stories/components/{MChip.stories.d.ts → DChip.stories.d.ts} +3 -3
  49. package/dist/types/stories/components/DCurrencyText.stories.d.ts +6 -0
  50. package/dist/types/stories/components/{MDatePicker.stories.d.ts → DDatePicker.stories.d.ts} +3 -3
  51. package/dist/types/stories/components/DFormikInput.stories.d.ts +7 -0
  52. package/dist/types/stories/components/{MFormikInputCurrency.stories.d.ts → DFormikInputCurrency.stories.d.ts} +3 -3
  53. package/dist/types/stories/components/DFormikInputSelect.stories.d.ts +7 -0
  54. package/dist/types/stories/components/{MIcon.stories.d.ts → DIcon.stories.d.ts} +3 -3
  55. package/dist/types/stories/components/{MInput.stories.d.ts → DInput.stories.d.ts} +3 -3
  56. package/dist/types/stories/components/{MInputCheck.stories.d.ts → DInputCheck.stories.d.ts} +3 -3
  57. package/dist/types/stories/components/{MInputCounter.stories.d.ts → DInputCounter.stories.d.ts} +3 -3
  58. package/dist/types/stories/components/{MInputCurrency.stories.d.ts → DInputCurrency.stories.d.ts} +3 -3
  59. package/dist/types/stories/components/{MInputCurrencyBase.stories.d.ts → DInputCurrencyBase.stories.d.ts} +3 -3
  60. package/dist/types/stories/components/{MInputPassword.stories.d.ts → DInputPassword.stories.d.ts} +3 -3
  61. package/dist/types/stories/components/{MInputPin.stories.d.ts → DInputPin.stories.d.ts} +3 -3
  62. package/dist/types/stories/components/{MInputSearch.stories.d.ts → DInputSearch.stories.d.ts} +3 -3
  63. package/dist/types/stories/components/{MInputSelect.stories.d.ts → DInputSelect.stories.d.ts} +3 -3
  64. package/dist/types/stories/components/{MInputSwitch.stories.d.ts → DInputSwitch.stories.d.ts} +3 -3
  65. package/dist/types/stories/components/{MList.stories.d.ts → DList.stories.d.ts} +3 -3
  66. package/dist/types/stories/components/{MListItem.stories.d.ts → DListItem.stories.d.ts} +3 -3
  67. package/dist/types/stories/components/DListItemMovement.stories.d.ts +7 -0
  68. package/dist/types/stories/components/{MPaginator.stories.d.ts → DPaginator.stories.d.ts} +3 -3
  69. package/dist/types/stories/components/{MProgressBar.stories.d.ts → DProgress.stories.d.ts} +3 -3
  70. package/dist/types/stories/components/{MQuickActionButton.stories.d.ts → DQuickActionButton.stories.d.ts} +3 -3
  71. package/dist/types/stories/components/{MQuickActionCheck.stories.d.ts → DQuickActionCheck.stories.d.ts} +3 -3
  72. package/dist/types/stories/components/{MQuickActionSelect.stories.d.ts → DQuickActionSelect.stories.d.ts} +3 -3
  73. package/dist/types/stories/components/{MQuickActionSwitch.stories.d.ts → DQuickActionSwitch.stories.d.ts} +3 -3
  74. package/dist/types/stories/components/DSkeleton.stories.d.ts +6 -0
  75. package/dist/types/stories/components/{MStepper.stories.d.ts → DStepper.stories.d.ts} +3 -3
  76. package/dist/types/stories/components/{MTooltip.stories.d.ts → DTooltip.stories.d.ts} +3 -3
  77. package/dist/types/stories/constants.d.ts +1 -2
  78. package/dist/types/stories/hooks/useOffcanvasContext.stories.d.ts +2 -2
  79. package/dist/types/stories/patterns/{MAlert.stories.d.ts → DAlert.stories.d.ts} +3 -3
  80. package/dist/types/stories/{components/MCarousel.stories.d.ts → patterns/DCarousel.stories.d.ts} +3 -3
  81. package/dist/types/stories/patterns/{MCollapse.stories.d.ts → DCollapse.stories.d.ts} +3 -3
  82. package/dist/types/stories/patterns/DCollapseIconText.stories.d.ts +6 -0
  83. package/dist/types/stories/patterns/{MModal.stories.d.ts → DModal.stories.d.ts} +3 -3
  84. package/dist/types/stories/patterns/{MOffcanvas.stories.d.ts → DOffcanvas.stories.d.ts} +3 -3
  85. package/dist/types/stories/patterns/{MPopover.stories.d.ts → DPopover.stories.d.ts} +3 -3
  86. package/dist/types/stories/patterns/{MTabs.stories.d.ts → DTabs.stories.d.ts} +3 -3
  87. package/package.json +3 -3
  88. package/src/style/components/_+import.scss +15 -12
  89. package/src/style/components/_d-box-file.scss +66 -0
  90. package/src/style/components/{_m-card-account.scss → _d-card-account.scss} +1 -1
  91. package/src/style/components/_d-carousel.scss +44 -0
  92. package/src/style/components/_d-collapse-icon-text.scss +16 -0
  93. package/src/style/components/_d-collapse.scss +54 -0
  94. package/src/style/components/_d-datepicker.scss +224 -0
  95. package/src/style/components/_d-monthpicker.scss +90 -0
  96. package/src/style/components/_d-paginator.scss +98 -0
  97. package/src/style/components/_d-permission-group.scss +39 -0
  98. package/src/style/components/{_m-popover.scss → _d-popover.scss} +2 -2
  99. package/src/style/components/_d-stepper.scss +156 -0
  100. package/src/style/components/_d-tabs.scss +56 -0
  101. package/src/style/components/_d-timepicker.scss +37 -0
  102. package/dist/types/components/MCardAccount.d.ts +0 -13
  103. package/dist/types/components/MCollapse.d.ts +0 -11
  104. package/dist/types/components/MDatePickerInput.d.ts +0 -9
  105. package/dist/types/components/MDatePickerTime.d.ts +0 -9
  106. package/dist/types/components/MFormikInput.d.ts +0 -7
  107. package/dist/types/components/MFormikInputCurrency.d.ts +0 -7
  108. package/dist/types/components/MInputCurrency.d.ts +0 -9
  109. package/dist/types/components/MMonthPicker.d.ts +0 -7
  110. package/dist/types/components/MPopover.d.ts +0 -8
  111. package/dist/types/stories/components/MBoxFile.stories.d.ts +0 -6
  112. package/dist/types/stories/components/MCardAccount.stories.d.ts +0 -6
  113. package/dist/types/stories/components/MFormikInput.stories.d.ts +0 -7
  114. package/dist/types/stories/components/MFormikInputSelect.stories.d.ts +0 -7
  115. package/dist/types/stories/components/MListItemMovement.stories.d.ts +0 -7
  116. package/dist/types/stories/components/MSkeleton.stories.d.ts +0 -6
  117. package/dist/types/stories/patterns/MCollapseIconText.stories.d.ts +0 -6
  118. package/src/style/components/_m-box-file.scss +0 -66
  119. package/src/style/components/_m-carousel.scss +0 -44
  120. package/src/style/components/_m-collapse-icon-text.scss +0 -16
  121. package/src/style/components/_m-collapse.scss +0 -56
  122. package/src/style/components/_m-datepicker.scss +0 -224
  123. package/src/style/components/_m-monthpicker.scss +0 -90
  124. package/src/style/components/_m-paginator.scss +0 -98
  125. package/src/style/components/_m-stepper.scss +0 -156
  126. package/src/style/components/_m-tabs.scss +0 -56
  127. package/src/style/components/_m-timepicker.scss +0 -37
@@ -0,0 +1,54 @@
1
+ .collapse-container {
2
+ // Container
3
+ --#{$prefix}collapse-bg: var(--#{$prefix}white);
4
+ --#{$prefix}collapse-border-radius: var(--#{$prefix}ref-spacer-1);
5
+ --#{$prefix}collapse-box-shadow: var(--#{$prefix}box-shadow-sm);
6
+ // Button
7
+ --#{$prefix}collapse-button-padding-x: var(--#{$prefix}ref-spacer-3);
8
+ --#{$prefix}collapse-button-padding-y: var(--#{$prefix}ref-spacer-3);
9
+ --#{$prefix}collapse-button-gap: var(--#{$prefix}ref-spacer-3);
10
+ // Body
11
+ --#{$prefix}collapse-body-padding-x: var(--#{$prefix}ref-spacer-3);
12
+ --#{$prefix}collapse-body-padding-y: var(--#{$prefix}ref-spacer-3);
13
+ // Separator
14
+ --#{$prefix}collapse-separator-display: none;
15
+ --#{$prefix}collapse-separator-height: 1px;
16
+ --#{$prefix}collapse-separator-bg: var(--#{$prefix}gray-200);
17
+
18
+ background-color: var(--#{$prefix}collapse-bg);
19
+ border-radius: var(--#{$prefix}collapse-border-radius);
20
+ box-shadow: var(--#{$prefix}collapse-box-shadow);
21
+
22
+ .collapse-button {
23
+ display: flex;
24
+ gap: var(--#{$prefix}collapse-button-gap);
25
+ align-items: center;
26
+ width: 100%;
27
+ padding: var(--#{$prefix}collapse-button-padding-y) var(--#{$prefix}collapse-button-padding-x);
28
+ text-align: left;
29
+ user-select: none;
30
+ background: transparent;
31
+ border: 0;
32
+
33
+ &:focus,
34
+ &:focus-visible {
35
+ outline: 0;
36
+ }
37
+ }
38
+
39
+ .collapse-body {
40
+ position: relative;
41
+ padding: var(--#{$prefix}collapse-body-padding-y) var(--#{$prefix}collapse-body-padding-x);
42
+ padding-top: 0;
43
+
44
+ &::before {
45
+ position: absolute;
46
+ top: 0;
47
+ display: var(--#{$prefix}collapse-separator-display);
48
+ width: calc(100% - (var(--#{$prefix}collapse-body-padding-x) * 2));
49
+ height: var(--#{$prefix}collapse-separator-height);
50
+ content: " ";
51
+ background-color: var(--#{$prefix}collapse-separator-bg);
52
+ }
53
+ }
54
+ }
@@ -0,0 +1,224 @@
1
+ @import "react-datepicker/src/stylesheets/datepicker";
2
+
3
+ // stylelint-disable selector-class-pattern
4
+
5
+ .react-datepicker {
6
+ --#{$prefix}datepicker-font-family: var(--#{$prefix}font-sans-serif);
7
+ --#{$prefix}datepicker-border: 0px;
8
+ --#{$prefix}datepicker-box-shadow: var(--#{$prefix}box-shadow);
9
+ --#{$prefix}datepicker-font-size: var(--#{$prefix}ref-spacer-3);
10
+
11
+ // Header variables
12
+ --#{$prefix}datepicker-header-gap: var(--#{$prefix}ref-spacer-3);
13
+ --#{$prefix}datepicker-header-padding: var(--#{$prefix}ref-spacer-3) var(--#{$prefix}ref-spacer-4);
14
+ --#{$prefix}datepicker-header-background-color: var(--#{$prefix}indigo-soft);
15
+ --#{$prefix}datepicker-header-border: 0;
16
+ --#{$prefix}datepicker-header-font-size: var(--#{$prefix}ref-fs-6);
17
+
18
+ --#{$prefix}datepicker-day-names-margin: 0;
19
+ --#{$prefix}datepicker-day-names-font-size: var(--#{$prefix}ref-spacer-3);
20
+
21
+ --#{$prefix}datepicker-day-name-weight: var(--#{$prefix}ref-fw-bold);
22
+ --#{$prefix}datepicker-day-name-margin: 0;
23
+ --#{$prefix}datepicker-day-name-size: 20px;
24
+ --#{$prefix}datepicker-day-name-color: var(--#{$prefix}gray-500);
25
+
26
+ // Calendar variables
27
+ --#{$prefix}datepicker-month-gap: var(--#{$prefix}ref-fs-small);
28
+ --#{$prefix}datepicker-month-padding: var(--#{$prefix}ref-spacer-3) var(--#{$prefix}ref-spacer-4) var(--#{$prefix}ref-spacer-4);
29
+ --#{$prefix}datepicker-month-margin: 0;
30
+
31
+ --#{$prefix}datepicker-week-gap: 1.875rem;
32
+
33
+ // Day variables
34
+ --#{$prefix}datepicker-day-margin: 0;
35
+ --#{$prefix}datepicker-day-font-size: var(--#{$prefix}ref-fs-small);
36
+ --#{$prefix}datepicker-day-size: 20px;
37
+ --#{$prefix}datepicker-day-radius: 100%;
38
+
39
+ --#{$prefix}datepicker-day-bg-hover: var(--#{$prefix}body);
40
+ --#{$prefix}datepicker-day-color-hover: var(--#{$prefix}info-100);
41
+
42
+ --#{$prefix}datepicker-day-selected-color: var(--#{$prefix}white);
43
+ --#{$prefix}datepicker-day-selected-bg: var(--#{$prefix}secondary-500);
44
+
45
+ --#{$prefix}datepicker-day-in-range-color: var(--#{$prefix}dark);
46
+ --#{$prefix}datepicker-day-in-range-bg: var(--#{$prefix}secondary-100);
47
+
48
+ --#{$prefix}datepicker-day-outside-month-color: var(--#{$prefix}gray-400);
49
+
50
+ --#{$prefix}datepicker-day-today-font-weight: var(--#{$prefix}ref-fw-normal);
51
+ --#{$prefix}datepicker-day-today-box-shadow: 0 0 0 2px inset var(--#{$prefix}secondary);
52
+
53
+ // Time variables
54
+ --#{$prefix}datepicker-time-container-margin: 0;
55
+ --#{$prefix}datepicker-time-container-align: center;
56
+ --#{$prefix}datepicker-time-input-width: 50%;
57
+ --#{$prefix}datepicker-time-input-margin: 0;
58
+ --#{$prefix}datepicker-time-input-align: center;
59
+
60
+ --#{$prefix}datepicker-time-input-padding: var(--#{$prefix}ref-spacer-3);
61
+ --#{$prefix}datepicker-time-input-gap: var(--#{$prefix}ref-spacer-2);
62
+ --#{$prefix}datepicker-time-input-label-weight: var(--#{$prefix}ref-fw-bold);
63
+ --#{$prefix}datepicker-time-input-label-color: var(--#{$prefix}gray-700);
64
+ --#{$prefix}datepicker-time-input-label-size: var(--#{$prefix}ref-fs-small);
65
+
66
+ font-family: var(--#{$prefix}datepicker-font-family);
67
+ font-size: var(--#{$prefix}datepicker-font-size);
68
+ border: var(--#{$prefix}datepicker-border);
69
+ box-shadow: var(--#{$prefix}datepicker-box-shadow);
70
+
71
+ .react-datepicker__header {
72
+ display: flex;
73
+ flex-direction: column;
74
+ gap: var(--#{$prefix}datepicker-header-gap);
75
+ padding: var(--#{$prefix}datepicker-header-padding);
76
+ font-size: var(--#{$prefix}datepicker-header-font-size);
77
+ background-color: var(--#{$prefix}datepicker-header-background-color);
78
+ border: var(--#{$prefix}datepicker-header-border);
79
+
80
+ .react-datepicker__day-names {
81
+ display: flex;
82
+ justify-content: space-between;
83
+ margin: var(--#{$prefix}datepicker-day-names-margin);
84
+ font-size: var(--#{$prefix}datepicker-day-names-font-size);
85
+ }
86
+ .react-datepicker__day-name {
87
+ width: var(--#{$prefix}datepicker-day-name-size);
88
+ height: var(--#{$prefix}datepicker-day-name-size);
89
+ margin: var(--#{$prefix}datepicker-day-name-margin);
90
+ font-weight: var(--#{$prefix}datepicker-day-name-weight);
91
+ line-height: var(--#{$prefix}datepicker-day-name-size);
92
+ color: var(--#{$prefix}datepicker-day-name-color);
93
+ }
94
+ }
95
+
96
+ .react-datepicker__month {
97
+ display: flex;
98
+ flex-direction: column;
99
+ gap: var(--#{$prefix}datepicker-month-gap);
100
+ padding: var(--#{$prefix}datepicker-month-padding);
101
+ margin: var(--#{$prefix}datepicker-month-margin);
102
+
103
+ .react-datepicker__week {
104
+ display: flex;
105
+ gap: var(--#{$prefix}datepicker-week-gap);
106
+ }
107
+
108
+ .react-datepicker__day {
109
+ width: var(--#{$prefix}datepicker-day-size);
110
+ height: var(--#{$prefix}datepicker-day-size);
111
+ margin: var(--#{$prefix}datepicker-day-margin);
112
+ font-size: var(--#{$prefix}datepicker-day-font-size);
113
+ line-height: var(--#{$prefix}datepicker-day-size);
114
+ }
115
+ }
116
+
117
+ // Hover state
118
+ .react-datepicker__day,
119
+ .react-datepicker__month-text,
120
+ .react-datepicker__quarter-text,
121
+ .react-datepicker__year-text {
122
+ &:not(
123
+ .react-datepicker__day--selected,
124
+ .react-datepicker__month-text--selected,
125
+ .react-datepicker__quarter-text--selected,
126
+ .react-datepicker__year-text--selected):hover {
127
+ color: var(--#{$prefix}datepicker-day-bg-hover);
128
+ background-color: var(--#{$prefix}datepicker-day-color-hover);
129
+ border-radius: var(--#{$prefix}datepicker-day-radius);
130
+ }
131
+ }
132
+
133
+ // Selected single item
134
+ .react-datepicker__day--selected,
135
+ .react-datepicker__month--selected,
136
+ .react-datepicker__quarter--selected,
137
+ .react-datepicker__year--selected {
138
+ color: var(--#{$prefix}datepicker-day-selected-color);
139
+ background-color: var(--#{$prefix}datepicker-day-selected-bg);
140
+ border-radius: var(--#{$prefix}datepicker-day-radius);
141
+ }
142
+
143
+ .react-datepicker__day--selected {
144
+ &.react-datepicker__day--in-range.react-datepicker__day--range-start,
145
+ &.react-datepicker__day--in-selecting-range.react-datepicker__day--selecting-range-start {
146
+ color: var(--#{$prefix}datepicker-day-selected-color);
147
+ background-color: var(--#{$prefix}datepicker-day-selected-bg);
148
+ }
149
+ }
150
+ .react-datepicker__day {
151
+ &.react-datepicker__day--in-range.react-datepicker__day--range-end,
152
+ &.react-datepicker__day--in-selecting-range.react-datepicker__day--selecting-range-end {
153
+ color: var(--#{$prefix}datepicker-day-selected-color);
154
+ background-color: var(--#{$prefix}datepicker-day-selected-bg);
155
+ }
156
+ }
157
+
158
+ .react-datepicker__day--in-range,
159
+ .react-datepicker__month-text--in-range,
160
+ .react-datepicker__quarter-text--in-range,
161
+ .react-datepicker__year-text--in-range,
162
+ .react-datepicker__day--in-selecting-range,
163
+ .react-datepicker__month-text--in-selecting-range,
164
+ .react-datepicker__quarter-text--in-selecting-range,
165
+ .react-datepicker__year-text--in-selecting-range,
166
+ .react-datepicker__day--keyboard-selected,
167
+ .react-datepicker__month-text--keyboard-selected,
168
+ .react-datepicker__quarter-text--keyboard-selected,
169
+ .react-datepicker__year-text--keyboard-selected {
170
+ color: var(--#{$prefix}datepicker-day-in-range-color);
171
+ background-color: var(--#{$prefix}datepicker-day-in-range-bg);
172
+ border-radius: var(--#{$prefix}datepicker-day-radius);
173
+ }
174
+
175
+ .react-datepicker__day--outside-month {
176
+ color: var(--#{$prefix}datepicker-day-outside-month-color);
177
+ }
178
+
179
+ /* Start time selector */
180
+ .react-datepicker__input-time-container {
181
+ width: 100%;
182
+ margin: var(--#{$prefix}datepicker-time-container-margin);
183
+ text-align: var(--#{$prefix}datepicker-time-container-align);
184
+ border-top: var(--#{$prefix}border-width) solid var(--#{$prefix}light);
185
+
186
+ .react-datepicker-time__caption {
187
+ display: none;
188
+ }
189
+
190
+ .react-datepicker-time__input-container {
191
+ width: 100%;
192
+
193
+ .react-datepicker-time__input {
194
+ width: var(--#{$prefix}datepicker-time-input-width);
195
+ margin: var(--#{$prefix}datepicker-time-input-margin);
196
+ text-align: var(--#{$prefix}datepicker-time-input-align);
197
+ outline: 0;
198
+ }
199
+ }
200
+ }
201
+
202
+ /* End time selector */
203
+
204
+ .react-datepicker__day--today {
205
+ font-weight: var(--#{$prefix}datepicker-day-today-font-weight);
206
+ border-radius: var(--#{$prefix}datepicker-day-radius);
207
+ box-shadow: var(--#{$prefix}datepicker-day-today-box-shadow);
208
+ }
209
+
210
+ .d-datepicker-time {
211
+ gap: var(--#{$prefix}datepicker-time-input-gap);
212
+ padding: var(--#{$prefix}datepicker-time-input-padding);
213
+ .d-datepicker-time-label {
214
+ font-size: var(--#{$prefix}datepicker-time-input-label-size);
215
+ font-weight: var(--#{$prefix}datepicker-time-input-label-weight);
216
+ color: var(--#{$prefix}datepicker-time-input-label-color);
217
+ }
218
+ }
219
+ .d-datepicker-header {
220
+ font-size: var(--#{$prefix}ref-fs-6);
221
+ }
222
+ }
223
+
224
+ // stylelint-enable selector-class-pattern
@@ -0,0 +1,90 @@
1
+ // stylelint-disable selector-class-pattern
2
+
3
+ .react-datepicker.d-month-picker {
4
+ // Month variables
5
+ --#{$prefix}monthpicker-header-padding: var(--#{$prefix}ref-spacer-3) var(--#{$prefix}ref-spacer-2) 0;
6
+ --#{$prefix}monthpicker-font-weight: var(--#{$prefix}ref-fw-normal);
7
+ --#{$prefix}monthpicker-header-color: var(--#{$prefix}white);
8
+ --#{$prefix}monthpicker-header-bg: var(--#{$prefix}dark);
9
+
10
+ --#{$prefix}monthpicker-month-gap: 0;
11
+ --#{$prefix}monthpicker-month-padding: var(--#{$prefix}ref-spacer-2) var(--#{$prefix}ref-spacer-4) var(--#{$prefix}ref-spacer-3);
12
+ --#{$prefix}monthpicker-month-color: var(--#{$prefix}white);
13
+ --#{$prefix}monthpicker-month-bg: var(--#{$prefix}dark);
14
+
15
+ --#{$prefix}monthpicker-month-today-color: var(--#{$prefix}white);
16
+ --#{$prefix}monthpicker-month-selected-bg: var(--#{$prefix}gray-500);
17
+ --#{$prefix}monthpicker-month-selected-box-shadow: 0 0 0 1px inset var(--#{$prefix}gray-100);
18
+
19
+ --#{$prefix}monthpicker-month-hover-bg: var(--#{$prefix}gray-700);
20
+
21
+ --#{$prefix}monthpicker-month-wrapper-gap: var(--#{$prefix}ref-spacer-2);
22
+ --#{$prefix}monthpicker-month-wrapper-font-size: var(--#{$prefix}ref-fs-small);
23
+
24
+ --#{$prefix}monthpicker-single-month-width: 46px;
25
+ --#{$prefix}monthpicker-single-month-padding: var(--#{$prefix}ref-spacer-2);
26
+ --#{$prefix}monthpicker-single-month-margin: 0;
27
+ --#{$prefix}monthpicker-single-month-text-transform: capitalize;
28
+ --#{$prefix}monthpicker-single-month-radius: var(--#{$prefix}ref-spacer-4);
29
+
30
+ --#{$prefix}monthpicker-single-month-after-display: inline;
31
+ --#{$prefix}monthpicker-single-month-after-content: ".";
32
+
33
+ --#{$prefix}datepicker-triangle-color: var(--#{$prefix}dark);
34
+
35
+ font-family: var(--#{$prefix}datepicker-font-family);
36
+ border: var(--#{$prefix}datepicker-border);
37
+ box-shadow: var(--#{$prefix}datepicker-box-shadow);
38
+
39
+ .react-datepicker__header {
40
+ padding: var(--#{$prefix}monthpicker-header-padding);
41
+ font-weight: var(--#{$prefix}monthpicker-font-weight);
42
+ color: var(--#{$prefix}monthpicker-header-color);
43
+ background-color: var(--#{$prefix}monthpicker-header-bg);
44
+ }
45
+
46
+ .react-datepicker__month.react-datepicker__monthPicker,
47
+ .react-datepicker__header.react-datepicker-year-header {
48
+ gap: var(--#{$prefix}monthpicker-month-gap);
49
+ padding: var(--#{$prefix}monthpicker-month-padding);
50
+ color: var(--#{$prefix}monthpicker-month-color);
51
+ background-color: var(--#{$prefix}monthpicker-month-bg);
52
+
53
+ }
54
+ .react-datepicker__month--selected,
55
+ .react-datepicker__month-text--in-range,
56
+ .react-datepicker__month-text--in-selecting-range,
57
+ .react-datepicker__month-text--keyboard-selected {
58
+ color: var(--#{$prefix}monthpicker-month-today-color);
59
+ background-color: var(--#{$prefix}monthpicker-month-selected-bg);
60
+ box-shadow: var(--#{$prefix}monthpicker-month-selected-box-shadow);
61
+ }
62
+ .react-datepicker__month-text:hover {
63
+ background-color: var(--#{$prefix}monthpicker-month-hover-bg);
64
+ }
65
+ .react-datepicker__month-wrapper {
66
+ display: flex;
67
+ gap: var(--#{$prefix}monthpicker-month-wrapper-gap);
68
+ font-size: var(--#{$prefix}monthpicker-month-wrapper-font-size);
69
+ .react-datepicker__month-text {
70
+ width: var(--#{$prefix}monthpicker-single-month-width);
71
+ padding: var(--#{$prefix}monthpicker-single-month-padding);
72
+ margin: var(--#{$prefix}monthpicker-single-month-margin);
73
+ text-transform: var(--#{$prefix}monthpicker-single-month-text-transform);
74
+ border-radius: var(--#{$prefix}monthpicker-single-month-radius);
75
+ &::after {
76
+ display: var(--#{$prefix}monthpicker-single-month-after-display);
77
+ content: var(--#{$prefix}monthpicker-single-month-after-content);
78
+ }
79
+ }
80
+ }
81
+ .react-datepicker__triangle {
82
+ &::after,
83
+ &::before {
84
+ top: 0;
85
+ border-bottom-color: var(--#{$prefix}datepicker-triangle-color);
86
+ }
87
+ }
88
+ }
89
+
90
+ // stylelint-enable selector-class-pattern
@@ -0,0 +1,98 @@
1
+ .pagination {
2
+ // Page link
3
+ --#{$prefix}pagination-page-item-size: 2.125rem;
4
+ --#{$prefix}pagination-page-link-bg: transparent;
5
+ --#{$prefix}pagination-page-border-radius: 50%;
6
+ // Arrow
7
+ --#{$prefix}pagination-arrow-font-size: var(--#{$prefix}ref-fs-small);
8
+ --#{$prefix}pagination-arrow-padding-y: var(--#{$prefix}ref-spacer-1);
9
+ --#{$prefix}pagination-arrow-padding-x: var(--#{$prefix}ref-spacer-2);
10
+ --#{$prefix}pagination-arrow-border-radius: var(--#{$prefix}border-radius);
11
+ --#{$prefix}pagination-arrow-color: var(--#{$prefix}secondary);
12
+ // Arrow :focus
13
+ --#{$prefix}pagination-focus-arrow-bg: var(--#{$prefix}secondary-100);
14
+ // Arrow previous
15
+ --#{$prefix}pagination-arrow-prev-icon-bg-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%234848b7" class="bi bi-chevron-left" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"/></svg>');
16
+ --#{$prefix}pagination-disabled-arrow-prev-icon-bg-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23a1a1b5" class="bi bi-chevron-left" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"/></svg>');
17
+ // Arrow next
18
+ --#{$prefix}pagination-arrow-next-icon-bg-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%234848b7" class="bi bi-chevron-right" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"/></svg>');
19
+ --#{$prefix}pagination-disabled-arrow-next-icon-bg-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23a1a1b5" class="bi bi-chevron-right" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"/></svg>');
20
+ margin: 0;
21
+
22
+ .page-item {
23
+ min-width: var(--#{$prefix}pagination-page-item-size);
24
+ min-height: var(--#{$prefix}pagination-page-item-size);
25
+
26
+ &:not(.active, :hover) .page-link {
27
+ background-color: var(--#{$prefix}pagination-page-link-bg);
28
+ }
29
+ }
30
+
31
+ .arrow .page-link {
32
+ min-width: fit-content;
33
+ padding: var(--#{$prefix}pagination-arrow-padding-y) var(--#{$prefix}pagination-arrow-padding-x);
34
+ font-size: var(--#{$prefix}pagination-arrow-font-size);
35
+ border-radius: var(--#{$prefix}pagination-arrow-border-radius);
36
+
37
+ &:focus {
38
+ background-color: var(--#{$prefix}pagination-focus-arrow-bg);
39
+ }
40
+
41
+ &::after,
42
+ &::before {
43
+ position: relative;
44
+ display: flex;
45
+ align-items: center;
46
+ justify-content: center;
47
+ background-repeat: no-repeat;
48
+ background-size: var(--#{$prefix}pagination-arrow-font-size);
49
+ }
50
+ }
51
+
52
+ .arrow:is(.arrow-prev, .arrow-next):not(.disabled) .page-link {
53
+ color: var(--#{$prefix}pagination-arrow-color);
54
+ }
55
+
56
+ // Arrow prev
57
+ .arrow.arrow-prev .page-link::before {
58
+ min-width: var(--#{$prefix}pagination-arrow-font-size);
59
+ min-height: var(--#{$prefix}pagination-arrow-font-size);
60
+ margin-right: var(--#{$prefix}ref-spacer-1);
61
+ content: "";
62
+ background-image: var(--#{$prefix}pagination-arrow-prev-icon-bg-image);
63
+ background-position: center left;
64
+ }
65
+
66
+ // Arrow next
67
+ .arrow.arrow-next .page-link::after {
68
+ width: var(--#{$prefix}pagination-arrow-font-size);
69
+ height: var(--#{$prefix}pagination-arrow-font-size);
70
+ margin-left: var(--#{$prefix}ref-spacer-1);
71
+ content: "";
72
+ background-image: var(--#{$prefix}pagination-arrow-next-icon-bg-image);
73
+ background-position: center right;
74
+ }
75
+
76
+ // Hide default icon
77
+ .arrow:is(.arrow-next, .arrow-prev).no-label .page-link > span {
78
+ display: none;
79
+ }
80
+
81
+ .arrow-prev.disabled .page-link::before {
82
+ background-image: var(--#{$prefix}pagination-disabled-arrow-prev-icon-bg-image);
83
+ }
84
+
85
+ .arrow-next.disabled .page-link::after {
86
+ background-image: var(--#{$prefix}pagination-disabled-arrow-next-icon-bg-image);
87
+ }
88
+
89
+ .page-link {
90
+ display: flex;
91
+ align-items: center;
92
+ justify-content: center;
93
+ width: 100%;
94
+ height: 100%;
95
+ padding: 0;
96
+ border-radius: var(--#{$prefix}pagination-page-border-radius);
97
+ }
98
+ }
@@ -0,0 +1,39 @@
1
+ .operation-group {
2
+ &:not(:last-child) {
3
+ border-bottom: 1px solid var(--#{$prefix}gray-300);
4
+ }
5
+ }
6
+
7
+ .permission-item {
8
+ padding: 8px 0;
9
+ .form-switch-box {
10
+ width: auto;
11
+ }
12
+ .label {
13
+ font-size: .875rem;
14
+ }
15
+ &:hover {
16
+ background: #f7f7ff;
17
+ }
18
+ &:not(:last-child) {
19
+ border-bottom: 1px solid var(--#{$prefix}gray-300);
20
+ }
21
+ }
22
+
23
+ @media screen and (min-width: 768px) {
24
+ .permission-item {
25
+ padding: 8px 10px;
26
+ }
27
+ .permission-item .label {
28
+ font-size: 1rem;
29
+ }
30
+ }
31
+
32
+ @media screen and (min-width: 992px) {
33
+ .operation-group {
34
+ border-top: 1px solid var(--#{$prefix}gray-300);
35
+ &:not(:last-child) {
36
+ border-bottom: none;
37
+ }
38
+ }
39
+ }
@@ -1,8 +1,8 @@
1
- .m-popover {
1
+ .d-popover {
2
2
  position: relative;
3
3
  width: 100%;
4
4
 
5
- .m-popover-content {
5
+ .d-popover-content {
6
6
  width: 100%;
7
7
 
8
8
  &:focus-visible {
@@ -0,0 +1,156 @@
1
+ .d-stepper {
2
+ /* Icon container */
3
+ --#{$prefix}step-icon-container-color: var(--#{$prefix}secondary);
4
+ --#{$prefix}step-icon-container-background-color: var(--#{$prefix}white);
5
+ --#{$prefix}step-icon-container-size: 34px;
6
+ --#{$prefix}step-icon-container-border-width: 1px;
7
+ --#{$prefix}step-icon-container-border-color: var(--#{$prefix}secondary);
8
+ --#{$prefix}step-icon-container-border-radius: 100%;
9
+ --#{$prefix}step-icon-container-z-index: 3;
10
+
11
+ /* Base step */
12
+ --#{$prefix}step-label-height: 3rem;
13
+ --#{$prefix}step-icon-size: 1.125rem;
14
+ --#{$prefix}step-gap: .5rem;
15
+ --#{$prefix}step-z-index: 2;
16
+
17
+ /* Checked step */
18
+ --#{$prefix}step-check-text-color: var(--#{$prefix}white);
19
+ --#{$prefix}step-check-background-color: var(--#{$prefix}success);
20
+ --#{$prefix}step-check-border-color: var(--#{$prefix}success);
21
+
22
+ /* Current step */
23
+ --#{$prefix}step-current-text-color: var(--#{$prefix}white);
24
+ --#{$prefix}step-current-background-color: var(--#{$prefix}secondary);
25
+
26
+ /* Step line */
27
+ --#{$prefix}step-line-stroke: 1px;
28
+ --#{$prefix}step-line-color: var(--#{$prefix}secondary);
29
+
30
+ /* Step label */
31
+ --#{$prefix}step-label-padding: var(--#{$prefix}ref-spacer-4);
32
+ --#{$prefix}step-vertical-label-padding: var(--#{$prefix}ref-spacer-3);
33
+
34
+
35
+ position: relative;
36
+ display: flex;
37
+
38
+ .d-step {
39
+ display: flex;
40
+ flex: 1 1 0;
41
+ flex-direction: column;
42
+ gap: var(--#{$prefix}step-gap);
43
+
44
+ .d-step-value {
45
+ position: relative;
46
+ display: flex;
47
+ justify-content: center;
48
+ }
49
+
50
+ .d-step-icon-container {
51
+ position: relative;
52
+ z-index: var(--#{$prefix}step-icon-container-z-index);
53
+ display: flex;
54
+ align-items: center;
55
+ justify-content: center;
56
+ width: var(--#{$prefix}step-icon-container-size);
57
+ height: var(--#{$prefix}step-icon-container-size);
58
+
59
+ color: var(--#{$prefix}step-icon-container-color);
60
+ background-color: var(--#{$prefix}step-icon-container-background-color);
61
+ border: var(--#{$prefix}step-icon-container-border-width) solid var(--#{$prefix}step-icon-container-border-color);
62
+ border-radius: var(--#{$prefix}step-icon-container-border-radius);
63
+ }
64
+
65
+ .d-step-check {
66
+ color: var(--#{$prefix}step-check-text-color);
67
+ background-color: var(--#{$prefix}step-check-background-color);
68
+ border-color: var(--#{$prefix}step-check-border-color);
69
+ }
70
+
71
+ .d-step-current {
72
+ color: var(--#{$prefix}step-current-text-color);
73
+ background-color: var(--#{$prefix}step-current-background-color);
74
+ }
75
+
76
+ .d-step-value::after {
77
+ position: absolute;
78
+ top: 50%;
79
+ z-index: var(--#{$prefix}step-z-index);
80
+ width: 100%;
81
+ height: var(--#{$prefix}step-line-stroke);
82
+ content: "";
83
+ background-color: var(--#{$prefix}step-line-color);
84
+ }
85
+
86
+ &:first-child .d-step-value::after {
87
+ left: 50%;
88
+ z-index: var(--#{$prefix}step-z-index);
89
+ width: 50%;
90
+ }
91
+
92
+ &:last-child .d-step-value::after {
93
+ right: 50%;
94
+ z-index: var(--#{$prefix}step-z-index);
95
+ width: 50%;
96
+ }
97
+
98
+ .d-step-label {
99
+ padding-right: var(--#{$prefix}step-label-padding);
100
+ padding-left: var(--#{$prefix}step-label-padding);
101
+ text-align: center;
102
+ }
103
+ }
104
+
105
+ &.is-vertical {
106
+ flex-direction: column;
107
+
108
+ .d-step {
109
+ flex-direction: row;
110
+ align-items: center;
111
+
112
+ .d-step-value {
113
+ align-items: center;
114
+ height: 100%;
115
+ }
116
+
117
+ .d-step-label {
118
+ display: flex;
119
+ flex-grow: 1;
120
+ align-items: center;
121
+ min-height: var(--#{$prefix}step-label-height);
122
+ padding: var(--#{$prefix}step-vertical-label-padding);
123
+ text-align: left;
124
+ }
125
+
126
+ .d-step-value::after {
127
+ position: absolute;
128
+ top: 0;
129
+ left: calc(50% - var(--#{$prefix}step-line-stroke));
130
+ z-index: var(--#{$prefix}step-z-index);
131
+ width: 0;
132
+ height: 100%;
133
+ content: "";
134
+ border: var(--#{$prefix}step-icon-container-border-width) solid var(--#{$prefix}step-icon-container-border-color);
135
+ }
136
+
137
+ &:first-child .d-step-value::after {
138
+ top: 50%;
139
+ z-index: var(--#{$prefix}step-z-index);
140
+ width: 0;
141
+ height: 50%;
142
+ }
143
+
144
+ &:last-child .d-step-value::after {
145
+ z-index: var(--#{$prefix}step-z-index);
146
+ width: 0;
147
+ height: 50%;
148
+ }
149
+ }
150
+ }
151
+
152
+ .d-step-icon {
153
+ display: flex;
154
+ font-size: var(--#{$prefix}step-icon-size);
155
+ }
156
+ }