@dreamcommerce/aurora 3.1.29 → 3.1.31
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.
- package/README.md +0 -134
- package/build/cjs/packages/aurora/src/components/color_picker/color_picker.js +5 -3
- package/build/cjs/packages/aurora/src/components/color_picker/color_picker.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/color_picker/components/pure_color_picker.js +5 -3
- package/build/cjs/packages/aurora/src/components/color_picker/components/pure_color_picker.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/controls/color_picker_control/color_picker_control.js +4 -3
- package/build/cjs/packages/aurora/src/components/controls/color_picker_control/color_picker_control.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/controls/multiselect_control/multiselect_control.js +4 -3
- package/build/cjs/packages/aurora/src/components/controls/multiselect_control/multiselect_control.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/controls/radio_group_control/radio_group_control.js +5 -3
- package/build/cjs/packages/aurora/src/components/controls/radio_group_control/radio_group_control.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/controls/select_control/select_control.js +4 -3
- package/build/cjs/packages/aurora/src/components/controls/select_control/select_control.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/controls/text_area_control/text_area_control.js +4 -3
- package/build/cjs/packages/aurora/src/components/controls/text_area_control/text_area_control.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/controls/values_syncer_control/values_syncer_control.js +4 -2
- package/build/cjs/packages/aurora/src/components/controls/values_syncer_control/values_syncer_control.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/image_picker/image_picker.js +8 -4
- package/build/cjs/packages/aurora/src/components/image_picker/image_picker.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/image_picker/image_picker_delete_button.js +3 -0
- package/build/cjs/packages/aurora/src/components/image_picker/image_picker_delete_button.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/multiselect/multiselect.js +4 -3
- package/build/cjs/packages/aurora/src/components/multiselect/multiselect.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/resizable/components/resizable_container.js +42 -0
- package/build/cjs/packages/aurora/src/components/resizable/components/resizable_container.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/resizable/components/resizable_handle.js +39 -0
- package/build/cjs/packages/aurora/src/components/resizable/components/resizable_handle.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/resizable/components/resizable_pure.js +41 -0
- package/build/cjs/packages/aurora/src/components/resizable/components/resizable_pure.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/resizable/hooks/use_resizable.js +79 -0
- package/build/cjs/packages/aurora/src/components/resizable/hooks/use_resizable.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/resizable/hooks/use_resizable_context.js +17 -0
- package/build/cjs/packages/aurora/src/components/resizable/hooks/use_resizable_context.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/resizable/resizable.js +44 -0
- package/build/cjs/packages/aurora/src/components/resizable/resizable.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/resizable/resizable_container_constants.js +21 -0
- package/build/cjs/packages/aurora/src/components/resizable/resizable_container_constants.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/resizable/resizable_context.js +14 -0
- package/build/cjs/packages/aurora/src/components/resizable/resizable_context.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/resizable/resizable_utils.js +37 -0
- package/build/cjs/packages/aurora/src/components/resizable/resizable_utils.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/select/select.js +3 -2
- package/build/cjs/packages/aurora/src/components/select/select.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/values_syncer/values_syncer.js +5 -2
- package/build/cjs/packages/aurora/src/components/values_syncer/values_syncer.js.map +1 -1
- package/build/cjs/packages/aurora/src/index.js +2 -0
- package/build/cjs/packages/aurora/src/index.js.map +1 -1
- package/build/esm/packages/aurora/src/components/color_picker/color_picker.d.ts +1 -1
- package/build/esm/packages/aurora/src/components/color_picker/color_picker.js +5 -3
- package/build/esm/packages/aurora/src/components/color_picker/color_picker.js.map +1 -1
- package/build/esm/packages/aurora/src/components/color_picker/components/pure_color_picker.d.ts +1 -1
- package/build/esm/packages/aurora/src/components/color_picker/components/pure_color_picker.js +5 -3
- package/build/esm/packages/aurora/src/components/color_picker/components/pure_color_picker.js.map +1 -1
- package/build/esm/packages/aurora/src/components/controls/color_picker_control/color_picker_control.d.ts +7 -2
- package/build/esm/packages/aurora/src/components/controls/color_picker_control/color_picker_control.js +4 -3
- package/build/esm/packages/aurora/src/components/controls/color_picker_control/color_picker_control.js.map +1 -1
- package/build/esm/packages/aurora/src/components/controls/multiselect_control/multiselect_control.d.ts +8 -2
- package/build/esm/packages/aurora/src/components/controls/multiselect_control/multiselect_control.js +4 -3
- package/build/esm/packages/aurora/src/components/controls/multiselect_control/multiselect_control.js.map +1 -1
- package/build/esm/packages/aurora/src/components/controls/radio_group_control/radio_group_control.d.ts +6 -2
- package/build/esm/packages/aurora/src/components/controls/radio_group_control/radio_group_control.js +5 -3
- package/build/esm/packages/aurora/src/components/controls/radio_group_control/radio_group_control.js.map +1 -1
- package/build/esm/packages/aurora/src/components/controls/select_control/select_control.d.ts +7 -2
- package/build/esm/packages/aurora/src/components/controls/select_control/select_control.js +4 -3
- package/build/esm/packages/aurora/src/components/controls/select_control/select_control.js.map +1 -1
- package/build/esm/packages/aurora/src/components/controls/text_area_control/text_area_control.d.ts +1 -1
- package/build/esm/packages/aurora/src/components/controls/text_area_control/text_area_control.js +4 -3
- package/build/esm/packages/aurora/src/components/controls/text_area_control/text_area_control.js.map +1 -1
- package/build/esm/packages/aurora/src/components/controls/values_syncer_control/values_syncer_control.d.ts +8 -5
- package/build/esm/packages/aurora/src/components/controls/values_syncer_control/values_syncer_control.js +4 -2
- package/build/esm/packages/aurora/src/components/controls/values_syncer_control/values_syncer_control.js.map +1 -1
- package/build/esm/packages/aurora/src/components/controls/xhr_image_picker_control/xhr_image_picker_control.d.ts +1 -1
- package/build/esm/packages/aurora/src/components/image_picker/image_picker.d.ts +1 -1
- package/build/esm/packages/aurora/src/components/image_picker/image_picker.js +8 -4
- package/build/esm/packages/aurora/src/components/image_picker/image_picker.js.map +1 -1
- package/build/esm/packages/aurora/src/components/image_picker/image_picker_delete_button.js +3 -0
- package/build/esm/packages/aurora/src/components/image_picker/image_picker_delete_button.js.map +1 -1
- package/build/esm/packages/aurora/src/components/multiselect/multiselect.d.ts +4 -5
- package/build/esm/packages/aurora/src/components/multiselect/multiselect.js +4 -3
- package/build/esm/packages/aurora/src/components/multiselect/multiselect.js.map +1 -1
- package/build/esm/packages/aurora/src/components/resizable/components/resizable_container.d.ts +3 -0
- package/build/esm/packages/aurora/src/components/resizable/components/resizable_container.js +34 -0
- package/build/esm/packages/aurora/src/components/resizable/components/resizable_container.js.map +1 -0
- package/build/esm/packages/aurora/src/components/resizable/components/resizable_handle.d.ts +8 -0
- package/build/esm/packages/aurora/src/components/resizable/components/resizable_handle.js +31 -0
- package/build/esm/packages/aurora/src/components/resizable/components/resizable_handle.js.map +1 -0
- package/build/esm/packages/aurora/src/components/resizable/components/resizable_pure.d.ts +3 -0
- package/build/esm/packages/aurora/src/components/resizable/components/resizable_pure.js +33 -0
- package/build/esm/packages/aurora/src/components/resizable/components/resizable_pure.js.map +1 -0
- package/build/esm/packages/aurora/src/components/resizable/hooks/use_resizable.d.ts +7 -0
- package/build/esm/packages/aurora/src/components/resizable/hooks/use_resizable.js +75 -0
- package/build/esm/packages/aurora/src/components/resizable/hooks/use_resizable.js.map +1 -0
- package/build/esm/packages/aurora/src/components/resizable/hooks/use_resizable_context.d.ts +2 -0
- package/build/esm/packages/aurora/src/components/resizable/hooks/use_resizable_context.js +13 -0
- package/build/esm/packages/aurora/src/components/resizable/hooks/use_resizable_context.js.map +1 -0
- package/build/esm/packages/aurora/src/components/resizable/resizable.d.ts +3 -0
- package/build/esm/packages/aurora/src/components/resizable/resizable.js +36 -0
- package/build/esm/packages/aurora/src/components/resizable/resizable.js.map +1 -0
- package/build/esm/packages/aurora/src/components/resizable/resizable_container_constants.d.ts +11 -0
- package/build/esm/packages/aurora/src/components/resizable/resizable_container_constants.js +14 -0
- package/build/esm/packages/aurora/src/components/resizable/resizable_container_constants.js.map +1 -0
- package/build/esm/packages/aurora/src/components/resizable/resizable_context.d.ts +3 -0
- package/build/esm/packages/aurora/src/components/resizable/resizable_context.js +10 -0
- package/build/esm/packages/aurora/src/components/resizable/resizable_context.js.map +1 -0
- package/build/esm/packages/aurora/src/components/resizable/resizable_utils.d.ts +5 -0
- package/build/esm/packages/aurora/src/components/resizable/resizable_utils.js +30 -0
- package/build/esm/packages/aurora/src/components/resizable/resizable_utils.js.map +1 -0
- package/build/esm/packages/aurora/src/components/select/select.d.ts +4 -5
- package/build/esm/packages/aurora/src/components/select/select.js +3 -2
- package/build/esm/packages/aurora/src/components/select/select.js.map +1 -1
- package/build/esm/packages/aurora/src/components/values_syncer/values_syncer.d.ts +1 -1
- package/build/esm/packages/aurora/src/components/values_syncer/values_syncer.js +5 -2
- package/build/esm/packages/aurora/src/components/values_syncer/values_syncer.js.map +1 -1
- package/build/esm/packages/aurora/src/components/xhr_image_picker/xhr_image_picker.d.ts +1 -1
- package/build/esm/packages/aurora/src/index.d.ts +1 -0
- package/build/esm/packages/aurora/src/index.js +1 -0
- package/build/esm/packages/aurora/src/index.js.map +1 -1
- package/build/index.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,135 +1 @@
|
|
|
1
1
|
# Aurora
|
|
2
|
-
|
|
3
|
-
## Jak odpalić?
|
|
4
|
-
|
|
5
|
-
1. `yarn install`
|
|
6
|
-
2. `yarn run start` - odpala Rollupa, który nasłuchuje na folder src (tutaj developujemy komponenty)
|
|
7
|
-
3. `yarn run storybook` - w osobnej zakladace odpalamy storybooka, tutaj tworzymy tzw "story" dla naszego nowo
|
|
8
|
-
tworzonego komponentu. Dzięki temu możemy sobie developować nasz komponent w izolacji. Proponuje się wzorować na tym
|
|
9
|
-
co już gotowe.
|
|
10
|
-
|
|
11
|
-
Taki pakiet możemy zainstlować w swoim projekcie przez użycie tagu beta wrzucając do
|
|
12
|
-
package.json `@dreamcommerce/aurora: "0.2.10-1"`. Co jeśli pracujemy dalej? Odpalamy znowu
|
|
13
|
-
`yarn version --prerelease`
|
|
14
|
-
To uaktualni nam wersję np z `0.2.10-1` do `0.2.10-2` i znowu
|
|
15
|
-
`yarn npm publish --tag beta --access public`
|
|
16
|
-
|
|
17
|
-
## Testowanie:
|
|
18
|
-
|
|
19
|
-
Posiadamy dwa rodzaje testów, standardowe unit testy oraz wizualne. Jak je odpalić:
|
|
20
|
-
|
|
21
|
-
1. `yarn run tests:unit`
|
|
22
|
-
2. `yarn run tests:visual`
|
|
23
|
-
|
|
24
|
-
Co gdy celowo zmieniamy wyglad komponentu i testy wizualne nie przechodza?
|
|
25
|
-
Wtedy musimy zaktualizować pliki wzorcowe:
|
|
26
|
-
|
|
27
|
-
1. `yarn run update-visuals` aktualizuje pliki wzorcowe zmian wizualnych (.png)
|
|
28
|
-
|
|
29
|
-
## Jak piszemy componenty
|
|
30
|
-
|
|
31
|
-
### importy
|
|
32
|
-
|
|
33
|
-
1. W pierwszej kolejnosci importujemy rzeczy zewnętrzne (React, lodash, classnames itp)
|
|
34
|
-
2. Style komponentu
|
|
35
|
-
3. Typowanie
|
|
36
|
-
4. Rzeczy wewnętrzne komponentu
|
|
37
|
-
|
|
38
|
-
### Komponenty
|
|
39
|
-
|
|
40
|
-
- do wiekszosci komponentów, korzystamy z opensourcowej libki https://ui.shadcn.com. Kod komponentóœ kopiujemy manualnie i dostosowujemy do naszych potrzeb.
|
|
41
|
-
|
|
42
|
-
#### Struktura folderów i plików komponentu
|
|
43
|
-
|
|
44
|
-
- Komponent umieszczamy w folderze `src/components`
|
|
45
|
-
- W nazewnictwie plików i folderów stosujemy `snake_case`
|
|
46
|
-
- Nazwy prefixujemy nazwa komponentu
|
|
47
|
-
- Nazwa komponentu powinna być w liczbe pojedyńczej (button, color_picker, heading itp);
|
|
48
|
-
- struktura komponentu:
|
|
49
|
-
|
|
50
|
-
```
|
|
51
|
-
- components (komponenty wchodza w sklad glownego komponetu, nieuzywalne osobno)
|
|
52
|
-
- somethings.tsx
|
|
53
|
-
- ...
|
|
54
|
-
- hooks (folder zawierajacy hooki specyficzne dla danego elementu)
|
|
55
|
-
- [nazwa-komponentu]_useValues.ts
|
|
56
|
-
- ...
|
|
57
|
-
- [nazwa-komponentu]_constants.ts (opcjonalnie, stałe dla tego komponentu)
|
|
58
|
-
- [nazwa-komponentu]_context.tsx (opcjonalne, context elementu)
|
|
59
|
-
- [nazwa-komponentu].tsx
|
|
60
|
-
- [nazwa-komponentu]_types.ts
|
|
61
|
-
- [nazwa-komponentu]_utils.ts (opcjonalnie, helpery, funkcje danego komponetu)
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
#### Style
|
|
65
|
-
|
|
66
|
-
**Autocomplete dla funkcji cva i cx**
|
|
67
|
-
https://cva.style/docs/getting-started/installation#tailwind-css
|
|
68
|
-
|
|
69
|
-
- do stylowania używamy tailwindcss
|
|
70
|
-
- dostpene tokeny dla różnych wartosci stili (np. `colors`, `spacing`, `fontSizes` itp) znajdują się w pliku `tailwind.config.js`
|
|
71
|
-
|
|
72
|
-
## Uwagi ogólne
|
|
73
|
-
|
|
74
|
-
Nazwy metod, zmiennych powinny odpowiadać temu co kryje się za daną zmienną lub co robi metoda. Metody powinny
|
|
75
|
-
realizowac jedna rzeczy. Zmienne typu boolean powinny zawsze zaczynac sie od `is` lub `has`.
|
|
76
|
-
|
|
77
|
-
## Tymczasowe na czas developmentu westa
|
|
78
|
-
|
|
79
|
-
- jako, ze wyczysciłam folder z komponentami bo gryzły sie lessy. Niektóre komponenty bd kopiować w zależnosci od kejsu. Np takie taby albo skin-tree bd raczej kopiowane z aurory na tagu 2.0. Nie chcemy zmieniać api tych komponentó
|
|
80
|
-
- czesc bardziej skomplikowanych komponentów bd najprawdopodbniej z osobnych libek, np. select
|
|
81
|
-
|
|
82
|
-
### Nowa struktura pod storybooka
|
|
83
|
-
|
|
84
|
-
1. **Feedback and indicators**
|
|
85
|
-
1. Loader
|
|
86
|
-
2. Message-box(infobox)
|
|
87
|
-
3. badge
|
|
88
|
-
4. flash-messanger
|
|
89
|
-
2. **Table**
|
|
90
|
-
1. table
|
|
91
|
-
3. **Text**
|
|
92
|
-
1. Typography
|
|
93
|
-
4. **Selection and Input**
|
|
94
|
-
1. Checkbox
|
|
95
|
-
2. Checkbox-switch
|
|
96
|
-
3. Color-picker
|
|
97
|
-
4. Date-picker
|
|
98
|
-
5. File-Picker
|
|
99
|
-
6. Input
|
|
100
|
-
7. Select
|
|
101
|
-
8. MultiSelect
|
|
102
|
-
9. Radio
|
|
103
|
-
10. Radio-group
|
|
104
|
-
11. Textarea
|
|
105
|
-
12. xhrImagePicker
|
|
106
|
-
13. Values Syncer
|
|
107
|
-
14. Hint - ma zostac tyko jeden, juz nie bd tooltip i hint osobno
|
|
108
|
-
15. Button
|
|
109
|
-
5. **Layout**
|
|
110
|
-
1. Grid
|
|
111
|
-
2. Stack
|
|
112
|
-
3. Box
|
|
113
|
-
4. Divider
|
|
114
|
-
5. Spacing
|
|
115
|
-
6. **Modal**
|
|
116
|
-
7. **Navigation**
|
|
117
|
-
1. Link
|
|
118
|
-
2. BreadCrumbs
|
|
119
|
-
3. Pagination
|
|
120
|
-
4. Tabs
|
|
121
|
-
5. Slide
|
|
122
|
-
8. **Lists**
|
|
123
|
-
1. Search List
|
|
124
|
-
2. Tree
|
|
125
|
-
3. Action List
|
|
126
|
-
9. **Surface**
|
|
127
|
-
1. Accordion
|
|
128
|
-
2. Dropdown
|
|
129
|
-
3. Paper - box + shadow
|
|
130
|
-
10. **Utils**
|
|
131
|
-
1. Scroll Syncer
|
|
132
|
-
2. Accordion groups
|
|
133
|
-
3. With Loader
|
|
134
|
-
11. **Hooks**
|
|
135
|
-
1. ...
|
|
@@ -13,7 +13,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
13
13
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
14
14
|
|
|
15
15
|
var _excluded = ["id", "name", "value", "colorVariables", "errors", "onChange", "onCancel", "onSave", "onPickShade", "withGradient", "disabled"];
|
|
16
|
-
var ColorPicker = function
|
|
16
|
+
var ColorPicker = /*#__PURE__*/React__default['default'].forwardRef(function (_ref, ref) {
|
|
17
17
|
var id = _ref.id,
|
|
18
18
|
name = _ref.name,
|
|
19
19
|
value = _ref.value,
|
|
@@ -104,9 +104,11 @@ var ColorPicker = function ColorPicker(_ref) {
|
|
|
104
104
|
id: id,
|
|
105
105
|
name: name,
|
|
106
106
|
errors: errors,
|
|
107
|
-
disabled: disabled
|
|
107
|
+
disabled: disabled,
|
|
108
|
+
ref: ref
|
|
108
109
|
}, rest)));
|
|
109
|
-
};
|
|
110
|
+
});
|
|
111
|
+
ColorPicker.displayName = 'ColorPicker';
|
|
110
112
|
|
|
111
113
|
exports.ColorPicker = ColorPicker;
|
|
112
114
|
//# sourceMappingURL=color_picker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
package/build/cjs/packages/aurora/src/components/color_picker/components/pure_color_picker.js
CHANGED
|
@@ -22,7 +22,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
22
22
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
23
23
|
|
|
24
24
|
var _excluded = ["id", "name", "errors", "disabled", "className", "children", "triggerClassName"];
|
|
25
|
-
var ColorPickerPure = function
|
|
25
|
+
var ColorPickerPure = /*#__PURE__*/React__default['default'].forwardRef(function (_ref, ref) {
|
|
26
26
|
var id = _ref.id,
|
|
27
27
|
name = _ref.name,
|
|
28
28
|
errors = _ref.errors,
|
|
@@ -61,7 +61,8 @@ var ColorPickerPure = function ColorPickerPure(_ref) {
|
|
|
61
61
|
setIsColorPickerOpened(true);
|
|
62
62
|
},
|
|
63
63
|
disabled: disabled,
|
|
64
|
-
className: cn.cn('aurora-w-full', triggerClassName)
|
|
64
|
+
className: cn.cn('aurora-w-full', triggerClassName),
|
|
65
|
+
ref: ref
|
|
65
66
|
}, !children && (/*#__PURE__*/React__default['default'].createElement(color_picker_input.ColorPickerInput, {
|
|
66
67
|
id: id,
|
|
67
68
|
name: name,
|
|
@@ -75,7 +76,8 @@ var ColorPickerPure = function ColorPickerPure(_ref) {
|
|
|
75
76
|
})), children), /*#__PURE__*/React__default['default'].createElement(popover_content.PopoverContent, _rollupPluginBabelHelpers.objectSpread2({
|
|
76
77
|
className: cn.cn('aurora-rounded-16 aurora-overflow-hidden aurora-z-[99999] js__aurora-color-picker', className)
|
|
77
78
|
}, rest), /*#__PURE__*/React__default['default'].createElement(color_picker_content.ColorPickerContent, null))));
|
|
78
|
-
};
|
|
79
|
+
});
|
|
80
|
+
ColorPickerPure.displayName = 'ColorPickerPure';
|
|
79
81
|
|
|
80
82
|
exports.default = ColorPickerPure;
|
|
81
83
|
//# sourceMappingURL=pure_color_picker.js.map
|
package/build/cjs/packages/aurora/src/components/color_picker/components/pure_color_picker.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,qFAAyF;AAC7G,sBAAsB,iFAAqF;AAC3G,qBAAqB,uFAA2F;AAChH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,qFAAyF;AAC7G,sBAAsB,iFAAqF;AAC3G,qBAAqB,uFAA2F;AAChH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -16,7 +16,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
16
16
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
17
17
|
|
|
18
18
|
var _excluded = ["label", "tooltip", "required", "id", "name", "errors", "value", "colorVariables", "onChange", "onCancel", "onSave", "onPickShade", "withGradient", "helperText", "disabled"];
|
|
19
|
-
var ColorPickerControl = function
|
|
19
|
+
var ColorPickerControl = /*#__PURE__*/React__default['default'].forwardRef(function (_ref, ref) {
|
|
20
20
|
var label$1 = _ref.label,
|
|
21
21
|
tooltip = _ref.tooltip,
|
|
22
22
|
_ref$required = _ref.required,
|
|
@@ -51,13 +51,14 @@ var ColorPickerControl = function ColorPickerControl(_ref) {
|
|
|
51
51
|
onSave: onSave,
|
|
52
52
|
onPickShade: onPickShade,
|
|
53
53
|
withGradient: withGradient,
|
|
54
|
-
disabled: disabled
|
|
54
|
+
disabled: disabled,
|
|
55
|
+
ref: ref
|
|
55
56
|
}, rest)), helperText ? /*#__PURE__*/React__default['default'].createElement(helper_text.HelperText, {
|
|
56
57
|
color: disabled ? css_text_color_tokens.CSS_TEXT_COLOR_TOKENS.subtleLight : undefined
|
|
57
58
|
}, helperText) : null, errors ? /*#__PURE__*/React__default['default'].createElement(error_list.ErrorList, {
|
|
58
59
|
errors: errors
|
|
59
60
|
}) : null);
|
|
60
|
-
};
|
|
61
|
+
});
|
|
61
62
|
ColorPickerControl.displayName = 'ColorPickerControl';
|
|
62
63
|
|
|
63
64
|
exports.ColorPickerControl = ColorPickerControl;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
package/build/cjs/packages/aurora/src/components/controls/multiselect_control/multiselect_control.js
CHANGED
|
@@ -16,7 +16,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
16
16
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
17
17
|
|
|
18
18
|
var _excluded = ["id", "options", "placeholder", "disabled", "label", "helperText", "tooltip", "errors", "onValueChange", "required"];
|
|
19
|
-
var MultiSelectControl = function
|
|
19
|
+
var MultiSelectControl = /*#__PURE__*/React__default['default'].forwardRef(function (_ref, ref) {
|
|
20
20
|
var id = _ref.id,
|
|
21
21
|
options = _ref.options,
|
|
22
22
|
placeholder = _ref.placeholder,
|
|
@@ -41,13 +41,14 @@ var MultiSelectControl = function MultiSelectControl(_ref) {
|
|
|
41
41
|
placeholder: placeholder,
|
|
42
42
|
disabled: disabled,
|
|
43
43
|
onValueChange: onValueChange,
|
|
44
|
-
errors: errors
|
|
44
|
+
errors: errors,
|
|
45
|
+
ref: ref
|
|
45
46
|
}, props)), helperText ? /*#__PURE__*/React__default['default'].createElement(helper_text.HelperText, {
|
|
46
47
|
color: disabled ? css_text_color_tokens.CSS_TEXT_COLOR_TOKENS.subtleLight : undefined
|
|
47
48
|
}, helperText) : null, errors ? /*#__PURE__*/React__default['default'].createElement(error_list.ErrorList, {
|
|
48
49
|
errors: errors
|
|
49
50
|
}) : null);
|
|
50
|
-
};
|
|
51
|
+
});
|
|
51
52
|
MultiSelectControl.displayName = 'MultiSelectControl';
|
|
52
53
|
|
|
53
54
|
exports.MultiSelectControl = MultiSelectControl;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
package/build/cjs/packages/aurora/src/components/controls/radio_group_control/radio_group_control.js
CHANGED
|
@@ -18,7 +18,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
18
18
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
19
19
|
|
|
20
20
|
var _excluded = ["id", "name", "items", "label", "value", "defaultValue", "tooltip", "helperText", "errors", "disabled", "required", "onValueChange"];
|
|
21
|
-
var RadioGroupControl = function
|
|
21
|
+
var RadioGroupControl = /*#__PURE__*/React__default['default'].forwardRef(function (_ref, ref) {
|
|
22
22
|
var id = _ref.id,
|
|
23
23
|
name = _ref.name,
|
|
24
24
|
items = _ref.items,
|
|
@@ -54,7 +54,8 @@ var RadioGroupControl = function RadioGroupControl(_ref) {
|
|
|
54
54
|
defaultValue: defaultValue,
|
|
55
55
|
disabled: disabled,
|
|
56
56
|
required: required,
|
|
57
|
-
onValueChange: onValueChange
|
|
57
|
+
onValueChange: onValueChange,
|
|
58
|
+
ref: ref
|
|
58
59
|
}, rest), items.map(function (item) {
|
|
59
60
|
return /*#__PURE__*/React__default['default'].createElement(radio_group_item.RadioGroupItem, {
|
|
60
61
|
key: "radio-button-".concat(item.value),
|
|
@@ -69,7 +70,8 @@ var RadioGroupControl = function RadioGroupControl(_ref) {
|
|
|
69
70
|
})), errors ? /*#__PURE__*/React__default['default'].createElement(error_list.ErrorList, {
|
|
70
71
|
errors: errors
|
|
71
72
|
}) : null);
|
|
72
|
-
};
|
|
73
|
+
});
|
|
74
|
+
RadioGroupControl.displayName = 'RadioGroupControl';
|
|
73
75
|
|
|
74
76
|
exports.RadioGroupControl = RadioGroupControl;
|
|
75
77
|
//# sourceMappingURL=radio_group_control.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -16,7 +16,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
16
16
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
17
17
|
|
|
18
18
|
var _excluded = ["options", "id", "name", "label", "helperText", "tooltip", "placeholder", "searchPlaceholder", "hasSearch", "hasClearValueButton", "errors", "disabled", "value", "onValueChange", "onScroll", "innerAdditionalContent", "required"];
|
|
19
|
-
var SelectControl = function
|
|
19
|
+
var SelectControl = /*#__PURE__*/React__default['default'].forwardRef(function (_ref, ref) {
|
|
20
20
|
var options = _ref.options,
|
|
21
21
|
id = _ref.id,
|
|
22
22
|
name = _ref.name,
|
|
@@ -54,13 +54,14 @@ var SelectControl = function SelectControl(_ref) {
|
|
|
54
54
|
errors: errors,
|
|
55
55
|
value: value,
|
|
56
56
|
onValueChange: onValueChange,
|
|
57
|
-
onScroll: onScroll
|
|
57
|
+
onScroll: onScroll,
|
|
58
|
+
ref: ref
|
|
58
59
|
}, props)), helperText ? /*#__PURE__*/React__default['default'].createElement(helper_text.HelperText, {
|
|
59
60
|
color: disabled ? css_text_color_tokens.CSS_TEXT_COLOR_TOKENS.subtleLight : undefined
|
|
60
61
|
}, helperText) : null, errors ? /*#__PURE__*/React__default['default'].createElement(error_list.ErrorList, {
|
|
61
62
|
errors: errors
|
|
62
63
|
}) : null);
|
|
63
|
-
};
|
|
64
|
+
});
|
|
64
65
|
SelectControl.displayName = 'SelectControl';
|
|
65
66
|
|
|
66
67
|
exports.SelectControl = SelectControl;
|
package/build/cjs/packages/aurora/src/components/controls/select_control/select_control.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
package/build/cjs/packages/aurora/src/components/controls/text_area_control/text_area_control.js
CHANGED
|
@@ -16,7 +16,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
16
16
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
17
17
|
|
|
18
18
|
var _excluded = ["id", "name", "label", "errors", "placeholder", "disabled", "readOnly", "value", "helperText", "required", "tooltip", "onChange"];
|
|
19
|
-
var TextAreaControl = function
|
|
19
|
+
var TextAreaControl = /*#__PURE__*/React__default['default'].forwardRef(function (_ref, ref) {
|
|
20
20
|
var id = _ref.id,
|
|
21
21
|
name = _ref.name,
|
|
22
22
|
label$1 = _ref.label,
|
|
@@ -46,13 +46,14 @@ var TextAreaControl = function TextAreaControl(_ref) {
|
|
|
46
46
|
disabled: disabled,
|
|
47
47
|
readOnly: readOnly,
|
|
48
48
|
errors: errors,
|
|
49
|
-
onChange: onChange
|
|
49
|
+
onChange: onChange,
|
|
50
|
+
ref: ref
|
|
50
51
|
}, props)), helperText ? /*#__PURE__*/React__default['default'].createElement(helper_text.HelperText, {
|
|
51
52
|
color: disabled ? css_text_color_tokens.CSS_TEXT_COLOR_TOKENS.subtleLight : undefined
|
|
52
53
|
}, helperText) : null, errors ? /*#__PURE__*/React__default['default'].createElement(error_list.ErrorList, {
|
|
53
54
|
errors: errors
|
|
54
55
|
}) : null);
|
|
55
|
-
};
|
|
56
|
+
});
|
|
56
57
|
TextAreaControl.displayName = 'TextAreaControl';
|
|
57
58
|
|
|
58
59
|
exports.TextAreaControl = TextAreaControl;
|
package/build/cjs/packages/aurora/src/components/controls/text_area_control/text_area_control.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -14,7 +14,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
14
14
|
|
|
15
15
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var ValuesSyncerControlInternal = function ValuesSyncerControlInternal(_ref, ref) {
|
|
18
18
|
var label$1 = _ref.label,
|
|
19
19
|
_ref$required = _ref.required,
|
|
20
20
|
required = _ref$required === void 0 ? false : _ref$required,
|
|
@@ -45,13 +45,15 @@ var ValuesSyncerControl = function ValuesSyncerControl(_ref) {
|
|
|
45
45
|
onLock: onLock,
|
|
46
46
|
disableLockButton: disableLockButton,
|
|
47
47
|
onChange: onChange,
|
|
48
|
-
className: className
|
|
48
|
+
className: className,
|
|
49
|
+
ref: ref
|
|
49
50
|
}), helperText ? /*#__PURE__*/React__default['default'].createElement(helper_text.HelperText, {
|
|
50
51
|
color: disabled ? css_text_color_tokens.CSS_TEXT_COLOR_TOKENS.subtleLight : undefined
|
|
51
52
|
}, helperText) : null, errors ? /*#__PURE__*/React__default['default'].createElement(error_list.ErrorList, {
|
|
52
53
|
errors: errors
|
|
53
54
|
}) : null);
|
|
54
55
|
};
|
|
56
|
+
var ValuesSyncerControl = /*#__PURE__*/React__default['default'].forwardRef(ValuesSyncerControlInternal);
|
|
55
57
|
ValuesSyncerControl.displayName = 'ValuesSyncerControl';
|
|
56
58
|
|
|
57
59
|
exports.ValuesSyncerControl = ValuesSyncerControl;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -119,7 +119,7 @@ var ImagePicker = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function
|
|
|
119
119
|
};
|
|
120
120
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
121
121
|
className: "aurora-mb-1"
|
|
122
|
-
}, /*#__PURE__*/React__default['default'].createElement("
|
|
122
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
123
123
|
className: cn.cn('aurora-block aurora-w-full aurora-rounded-8 aurora-relative aurora-border-strong hover:aurora-border-extraStrong focus-visible:aurora-border-active focus-visible:aurora-outline-none', {
|
|
124
124
|
'aurora-border aurora-border-dashed': !(errors && errors.length > 0 && !isDragOver),
|
|
125
125
|
'aurora-border-2 aurora-border-danger aurora-border-solid hover:aurora-border-danger focus-visible:aurora-border-danger': errors && errors.length > 0,
|
|
@@ -129,8 +129,13 @@ var ImagePicker = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function
|
|
|
129
129
|
var _inputRef$current;
|
|
130
130
|
return (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.click();
|
|
131
131
|
},
|
|
132
|
+
onKeyDown: function onKeyDown(e) {
|
|
133
|
+
var _inputRef$current2;
|
|
134
|
+
return e.key === 'Enter' && ((_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.click());
|
|
135
|
+
},
|
|
132
136
|
ref: ref,
|
|
133
|
-
|
|
137
|
+
role: 'button',
|
|
138
|
+
tabIndex: 0
|
|
134
139
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
135
140
|
onDragOver: onDragOver,
|
|
136
141
|
onDragLeave: onDragLeave
|
|
@@ -138,8 +143,7 @@ var ImagePicker = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function
|
|
|
138
143
|
className: "aurora-p-1 aurora-relative"
|
|
139
144
|
}, /*#__PURE__*/React__default['default'].createElement(image_picker_preview_container.ImagePickerPreviewContainer, {
|
|
140
145
|
classname: "aurora-relative aurora-flex aurora-flex-col"
|
|
141
|
-
}, topButtons && /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, topButtons), /*#__PURE__*/React__default['default'].createElement("
|
|
142
|
-
htmlFor: id,
|
|
146
|
+
}, topButtons && /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, topButtons), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
143
147
|
className: "aurora-relative"
|
|
144
148
|
}, /*#__PURE__*/React__default['default'].createElement(image_picker_preview.ImagePickerPreview, {
|
|
145
149
|
file: file,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA,6BAA6B,iEAAqE;AAClG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA,6BAA6B,iEAAqE;AAClG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -23,6 +23,9 @@ var ImagePickerDeleteButton = function ImagePickerDeleteButton(_ref) {
|
|
|
23
23
|
e.preventDefault();
|
|
24
24
|
onFileDelete();
|
|
25
25
|
},
|
|
26
|
+
onKeyDown: function onKeyDown(e) {
|
|
27
|
+
return e.stopPropagation();
|
|
28
|
+
},
|
|
26
29
|
className: "aurora-flex aurora-items-center aurora-gap-1 aurora-border aurora-border-danger aurora-rounded-full aurora-px-3 aurora-py-[6px]",
|
|
27
30
|
type: "button"
|
|
28
31
|
}, /*#__PURE__*/React__default['default'].createElement(delete_bin_icon.DeleteBinLineIcon, {
|
package/build/cjs/packages/aurora/src/components/image_picker/image_picker_delete_button.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA,6BAA6B,iEAAqE;AAClG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA,6BAA6B,iEAAqE;AAClG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -15,7 +15,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
15
15
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
16
16
|
|
|
17
17
|
var _excluded = ["id", "options", "placeholder", "disabled", "hasSearch", "searchPlaceholder", "onValueChange", "errors", "value", "searchNotFoundContent"];
|
|
18
|
-
var MultiSelect = function
|
|
18
|
+
var MultiSelect = /*#__PURE__*/React__default['default'].forwardRef(function (_ref, ref) {
|
|
19
19
|
var id = _ref.id,
|
|
20
20
|
options = _ref.options,
|
|
21
21
|
placeholder = _ref.placeholder,
|
|
@@ -48,7 +48,8 @@ var MultiSelect = function MultiSelect(_ref) {
|
|
|
48
48
|
return /*#__PURE__*/React__default['default'].createElement(DropdownMenuPrimitive.Root, _rollupPluginBabelHelpers.objectSpread2({}, props), /*#__PURE__*/React__default['default'].createElement(multiselect_trigger.MultiSelectTrigger, {
|
|
49
49
|
id: id,
|
|
50
50
|
disabled: disabled,
|
|
51
|
-
hasErrors: !!(errors !== null && errors !== void 0 && errors.length)
|
|
51
|
+
hasErrors: !!(errors !== null && errors !== void 0 && errors.length),
|
|
52
|
+
ref: ref
|
|
52
53
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
53
54
|
className: cn.cn('aurora-pointer-events-none aurora-select-none', showPlaceholder && 'aurora-text-subtle')
|
|
54
55
|
}, !showPlaceholder ? selectedOptions.map(function (option) {
|
|
@@ -61,7 +62,7 @@ var MultiSelect = function MultiSelect(_ref) {
|
|
|
61
62
|
searchPlaceholder: searchPlaceholder,
|
|
62
63
|
searchNotFoundContent: searchNotFoundContent
|
|
63
64
|
})));
|
|
64
|
-
};
|
|
65
|
+
});
|
|
65
66
|
MultiSelect.displayName = 'MultiSelect';
|
|
66
67
|
|
|
67
68
|
exports.MultiSelect = MultiSelect;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var resizable_handle = require('./resizable_handle.js');
|
|
7
|
+
|
|
8
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
+
|
|
10
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
11
|
+
|
|
12
|
+
var ResizableContainer = function ResizableContainer(_ref) {
|
|
13
|
+
var className = _ref.className,
|
|
14
|
+
style = _ref.style,
|
|
15
|
+
variant = _ref.variant,
|
|
16
|
+
onResize = _ref.onResize,
|
|
17
|
+
children = _ref.children;
|
|
18
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19
|
+
className: "aurora-flex aurora-relative ".concat(className),
|
|
20
|
+
style: style
|
|
21
|
+
}, variant === 'horizontal' ? (/*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(resizable_handle.ResizableHandle, {
|
|
22
|
+
position: "left",
|
|
23
|
+
onMouseDown: function onMouseDown(e) {
|
|
24
|
+
return onResize(e, 'left');
|
|
25
|
+
}
|
|
26
|
+
}), /*#__PURE__*/React__default['default'].createElement(resizable_handle.ResizableHandle, {
|
|
27
|
+
position: "right",
|
|
28
|
+
onMouseDown: function onMouseDown(e) {
|
|
29
|
+
return onResize(e, 'right');
|
|
30
|
+
}
|
|
31
|
+
}))) : (/*#__PURE__*/React__default['default'].createElement(resizable_handle.ResizableHandle, {
|
|
32
|
+
position: variant,
|
|
33
|
+
onMouseDown: function onMouseDown(e) {
|
|
34
|
+
return onResize(e, variant);
|
|
35
|
+
}
|
|
36
|
+
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
37
|
+
className: "aurora-flex-1"
|
|
38
|
+
}, children));
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
exports.ResizableContainer = ResizableContainer;
|
|
42
|
+
//# sourceMappingURL=resizable_container.js.map
|
package/build/cjs/packages/aurora/src/components/resizable/components/resizable_container.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var cn = require('../../../utilities/cn.js');
|
|
7
|
+
var resizable_container_constants = require('../resizable_container_constants.js');
|
|
8
|
+
var use_resizable_context = require('../hooks/use_resizable_context.js');
|
|
9
|
+
|
|
10
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
|
+
|
|
12
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
13
|
+
|
|
14
|
+
var ResizableHandle = function ResizableHandle(_ref) {
|
|
15
|
+
var position = _ref.position,
|
|
16
|
+
className = _ref.className,
|
|
17
|
+
onMouseDown = _ref.onMouseDown;
|
|
18
|
+
var _useResizableContext = use_resizable_context.useResizableContext(),
|
|
19
|
+
isResizing = _useResizableContext.isResizing;
|
|
20
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
21
|
+
className: cn.cn("".concat(resizable_container_constants.RESIZABLE_CONTAINER_RESIZER_CLASS, " ").concat(className, " aurora-absolute aurora-top-0 aurora-bottom-0 aurora-cursor-col-resize aurora-transition-opacity aurora-duration-200 aurora-z-[99999] aurora-opacity-0 hover:aurora-opacity-100"), {
|
|
22
|
+
'aurora-opacity-100': isResizing
|
|
23
|
+
}),
|
|
24
|
+
style: {
|
|
25
|
+
paddingLeft: "".concat(resizable_container_constants.HANDLE_HOVER_SPACE, "px"),
|
|
26
|
+
paddingRight: "".concat(resizable_container_constants.HANDLE_HOVER_SPACE, "px"),
|
|
27
|
+
left: position === resizable_container_constants.RESIZE_HANDLE_VARIANTS.left ? "-".concat(resizable_container_constants.HANDLE_HOVER_SPACE, "px") : '',
|
|
28
|
+
right: position === resizable_container_constants.RESIZE_HANDLE_VARIANTS.right ? "-".concat(resizable_container_constants.HANDLE_HOVER_SPACE, "px") : ''
|
|
29
|
+
},
|
|
30
|
+
onMouseDown: onMouseDown
|
|
31
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
32
|
+
className: cn.cn('aurora-w-[2px] aurora-h-full aurora-bg-primary', {
|
|
33
|
+
'aurora-bg-primary-hover': isResizing
|
|
34
|
+
})
|
|
35
|
+
}));
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
exports.ResizableHandle = ResizableHandle;
|
|
39
|
+
//# sourceMappingURL=resizable_handle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var resizable_container_constants = require('../resizable_container_constants.js');
|
|
7
|
+
var use_resizable_context = require('../hooks/use_resizable_context.js');
|
|
8
|
+
var resizable_container = require('./resizable_container.js');
|
|
9
|
+
|
|
10
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
|
+
|
|
12
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
13
|
+
|
|
14
|
+
var ResizablePure = function ResizablePure(_ref) {
|
|
15
|
+
var children = _ref.children,
|
|
16
|
+
_ref$variant = _ref.variant,
|
|
17
|
+
variant = _ref$variant === void 0 ? resizable_container_constants.RESIZE_HANDLE_VARIANTS.left : _ref$variant,
|
|
18
|
+
widthConfig = _ref.widthConfig,
|
|
19
|
+
onResize = _ref.onResize,
|
|
20
|
+
className = _ref.className;
|
|
21
|
+
var _useResizableContext = use_resizable_context.useResizableContext(),
|
|
22
|
+
currentWidth = _useResizableContext.currentWidth,
|
|
23
|
+
handleResizing = _useResizableContext.handleResizing,
|
|
24
|
+
isResizing = _useResizableContext.isResizing;
|
|
25
|
+
React.useEffect(function () {
|
|
26
|
+
onResize === null || onResize === void 0 ? void 0 : onResize(currentWidth, isResizing);
|
|
27
|
+
}, [currentWidth, isResizing, onResize]);
|
|
28
|
+
return /*#__PURE__*/React__default['default'].createElement(resizable_container.ResizableContainer, {
|
|
29
|
+
className: className || '',
|
|
30
|
+
style: {
|
|
31
|
+
width: currentWidth,
|
|
32
|
+
minWidth: widthConfig.min,
|
|
33
|
+
maxWidth: widthConfig.max
|
|
34
|
+
},
|
|
35
|
+
variant: variant,
|
|
36
|
+
onResize: handleResizing
|
|
37
|
+
}, children);
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
exports.ResizablePure = ResizablePure;
|
|
41
|
+
//# sourceMappingURL=resizable_pure.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|