@onereach/ui-components 8.9.1 → 8.10.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.
- package/dist/bundled/v2/components/OrExpansionPanelV3/OrExpansionPanel.js +1 -1
- package/dist/bundled/v2/components/OrExpansionPanelV3/OrExpansionPanel.vue.d.ts +2 -0
- package/dist/bundled/v2/components/OrExpansionPanelV3/index.js +1 -1
- package/dist/bundled/v2/components/OrExpansionPanelV3/props.js +1 -1
- package/dist/bundled/v2/components/OrExpansionPanelV3/styles.d.ts +1 -0
- package/dist/bundled/v2/components/OrExpansionPanelV3/styles.js +1 -1
- package/dist/bundled/v2/components/{OrExpansionPanelV3-31f3376b.js → OrExpansionPanelV3-3e7149d3.js} +12 -6
- package/dist/bundled/v2/components/OrSelectV3/OrSelect.js +1 -1
- package/dist/bundled/v2/components/OrSelectV3/index.js +1 -1
- package/dist/bundled/v2/components/OrSelectV3/styles.js +1 -1
- package/dist/bundled/v2/components/{OrSelectV3-fd80a145.js → OrSelectV3-6ef4292a.js} +1 -1
- package/dist/bundled/v2/components/index.js +2 -2
- package/dist/bundled/v2/index.js +3 -3
- package/dist/bundled/v3/components/OrExpansionPanelV3/OrExpansionPanel.js +1 -1
- package/dist/bundled/v3/components/OrExpansionPanelV3/OrExpansionPanel.vue.d.ts +1 -0
- package/dist/bundled/v3/components/OrExpansionPanelV3/index.js +1 -1
- package/dist/bundled/v3/components/OrExpansionPanelV3/props.js +1 -1
- package/dist/bundled/v3/components/OrExpansionPanelV3/styles.d.ts +1 -0
- package/dist/bundled/v3/components/OrExpansionPanelV3/styles.js +1 -1
- package/dist/bundled/v3/components/{OrExpansionPanelV3-685494dc.js → OrExpansionPanelV3-6ed3c8e5.js} +13 -6
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +1 -1
- package/dist/bundled/v3/components/OrSelectV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSelectV3/styles.js +1 -1
- package/dist/bundled/v3/components/{OrSelectV3-148bcd66.js → OrSelectV3-bf0d3438.js} +1 -1
- package/dist/bundled/v3/components/index.js +2 -2
- package/dist/bundled/v3/index.js +3 -3
- package/dist/esm/v2/{OrExpansionPanel-ed96bdde.js → OrExpansionPanel-3468cce1.js} +11 -5
- package/dist/esm/v2/{OrSelect-8b0979f7.js → OrSelect-e7df9dd9.js} +1 -1
- package/dist/esm/v2/components/index.js +2 -2
- package/dist/esm/v2/components/or-expansion-panel-v3/OrExpansionPanel.vue.d.ts +2 -0
- package/dist/esm/v2/components/or-expansion-panel-v3/index.js +1 -1
- package/dist/esm/v2/components/or-expansion-panel-v3/styles.d.ts +1 -0
- package/dist/esm/v2/components/or-select-v3/index.js +2 -2
- package/dist/esm/v2/index.js +2 -2
- package/dist/esm/v3/{OrExpansionPanel-abe63bbb.js → OrExpansionPanel-691107c8.js} +12 -5
- package/dist/esm/v3/{OrSelect-a821cc23.js → OrSelect-f915f049.js} +1 -1
- package/dist/esm/v3/components/index.js +2 -2
- package/dist/esm/v3/components/or-expansion-panel-v3/OrExpansionPanel.vue.d.ts +1 -0
- package/dist/esm/v3/components/or-expansion-panel-v3/index.js +1 -1
- package/dist/esm/v3/components/or-expansion-panel-v3/styles.d.ts +1 -0
- package/dist/esm/v3/components/or-select-v3/index.js +2 -2
- package/dist/esm/v3/index.js +2 -2
- package/package.json +2 -2
- package/src/components/or-expansion-panel-v3/OrExpansionPanel.vue +11 -2
- package/src/components/or-expansion-panel-v3/styles.ts +10 -5
|
@@ -28,10 +28,10 @@ const ExpansionPanel = [
|
|
|
28
28
|
// Layout
|
|
29
29
|
'layout-column'];
|
|
30
30
|
const ExpansionPanelVariants = {
|
|
31
|
-
|
|
31
|
+
[ExpansionPanelVariant.Default]: [
|
|
32
32
|
// Spacing
|
|
33
33
|
'gap-sm'],
|
|
34
|
-
|
|
34
|
+
[ExpansionPanelVariant.Card]: [
|
|
35
35
|
// Shape
|
|
36
36
|
'rounded-md',
|
|
37
37
|
// Spacing
|
|
@@ -54,12 +54,12 @@ const ExpansionPanelBackgroundColors = {
|
|
|
54
54
|
const ExpansionPanelHeader = [
|
|
55
55
|
// Layout
|
|
56
56
|
'layout-row',
|
|
57
|
+
// Interactivity
|
|
58
|
+
'interactivity-click',
|
|
57
59
|
// Box
|
|
58
60
|
'min-w-[16px]',
|
|
59
61
|
// Spacing
|
|
60
62
|
'gap-sm',
|
|
61
|
-
// Interactivity
|
|
62
|
-
'interactivity-click',
|
|
63
63
|
// Typography
|
|
64
64
|
'typography-body-2-bold',
|
|
65
65
|
// Theme
|
|
@@ -91,6 +91,9 @@ const ExpansionPanelAddon = [
|
|
|
91
91
|
'typography-body-2-regular',
|
|
92
92
|
// Theme
|
|
93
93
|
'theme-foreground-outline', 'dark:theme-foreground-outline-dark'];
|
|
94
|
+
const ExpansionPanelContent = [
|
|
95
|
+
// Spacing
|
|
96
|
+
'ml-[28px] md:ml-[24px]'];
|
|
94
97
|
|
|
95
98
|
var script = defineComponent({
|
|
96
99
|
name: 'OrExpansionPanel',
|
|
@@ -132,6 +135,7 @@ var script = defineComponent({
|
|
|
132
135
|
const rootStyles = computed(() => ['or-expansion-panel-v3', ...ExpansionPanel, ...ExpansionPanelVariants[props.variant], ...ExpansionPanelBackgroundColors[`${props.backgroundColor}-${props.variant}`]]);
|
|
133
136
|
const headerStyles = computed(() => [...ExpansionPanelHeader, ...ExpansionPanelHeaderColors[props.color]]);
|
|
134
137
|
const addonStyles = computed(() => [...ExpansionPanelAddon]);
|
|
138
|
+
const contentStyles = computed(() => [...ExpansionPanelContent]);
|
|
135
139
|
// State
|
|
136
140
|
const {
|
|
137
141
|
state,
|
|
@@ -144,6 +148,7 @@ var script = defineComponent({
|
|
|
144
148
|
rootStyles,
|
|
145
149
|
headerStyles,
|
|
146
150
|
addonStyles,
|
|
151
|
+
contentStyles,
|
|
147
152
|
state,
|
|
148
153
|
open,
|
|
149
154
|
close,
|
|
@@ -196,7 +201,8 @@ var __vue_render__ = function () {
|
|
|
196
201
|
rawName: "v-show",
|
|
197
202
|
value: _vm.state === 'open',
|
|
198
203
|
expression: "state === 'open'"
|
|
199
|
-
}]
|
|
204
|
+
}],
|
|
205
|
+
class: _vm.contentStyles
|
|
200
206
|
}, [_vm._t("default")], 2)]);
|
|
201
207
|
};
|
|
202
208
|
var __vue_staticRenderFns__ = [];
|
|
@@ -8,7 +8,7 @@ import { u as useResponsive } from './useResponsive-5c8291da.js';
|
|
|
8
8
|
import '@onereach/styles/tailwind.config.json';
|
|
9
9
|
import { _ as __vue_component__$3 } from './OrCheckbox-83f20ca2.js';
|
|
10
10
|
import { _ as __vue_component__$4 } from './OrError-916e928e.js';
|
|
11
|
-
import { _ as __vue_component__$5 } from './OrExpansionPanel-
|
|
11
|
+
import { _ as __vue_component__$5 } from './OrExpansionPanel-3468cce1.js';
|
|
12
12
|
import { _ as __vue_component__$6 } from './OrHint-1220face.js';
|
|
13
13
|
import { _ as __vue_component__$8 } from './OrIconButton-b4370da7.js';
|
|
14
14
|
import { _ as __vue_component__$7 } from './OrIcon-0343b3d8.js';
|
|
@@ -51,7 +51,7 @@ export { E as EmptyStateSize, _ as OrEmptyStateV3 } from '../OrEmptyState-2d3fd6
|
|
|
51
51
|
export { _ as OrError } from '../OrError-efc74907.js';
|
|
52
52
|
export { _ as OrErrorTagV3 } from '../OrErrorTag-b3c66db6.js';
|
|
53
53
|
export { _ as OrErrorV3 } from '../OrError-916e928e.js';
|
|
54
|
-
export { b as ExpansionPanelBackgroundColor, a as ExpansionPanelColor, E as ExpansionPanelVariant, _ as OrExpansionPanelV3 } from '../OrExpansionPanel-
|
|
54
|
+
export { b as ExpansionPanelBackgroundColor, a as ExpansionPanelColor, E as ExpansionPanelVariant, _ as OrExpansionPanelV3 } from '../OrExpansionPanel-3468cce1.js';
|
|
55
55
|
export { F as FabColor, _ as OrFabV3 } from '../OrFab-fc628f6a.js';
|
|
56
56
|
export { _ as OrFloating, a as OrFloatingHideStrategy, O as OrFloatingPlacements } from '../OrFloating-b41017c7.js';
|
|
57
57
|
export { F as FormGroupDirection, _ as OrFormGroupV3 } from '../OrFormGroup-d4abd2c9.js';
|
|
@@ -101,7 +101,7 @@ export { _ as OrSearch } from '../OrSearch-ac542dd6.js';
|
|
|
101
101
|
export { _ as OrSearchV3 } from '../OrSearch-b3aa11d9.js';
|
|
102
102
|
export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-bba94cda.js';
|
|
103
103
|
export { _ as OrSelect } from '../OrSelect-c0d04cf6.js';
|
|
104
|
-
export { _ as OrSelectV3 } from '../OrSelect-
|
|
104
|
+
export { _ as OrSelectV3 } from '../OrSelect-e7df9dd9.js';
|
|
105
105
|
export { _ as OrSidebar, O as OrSidebarSide } from '../OrSidebar-c56a9221.js';
|
|
106
106
|
export { S as OrSidebarPlacement, _ as OrSidebarV3, S as SidebarPlacement } from '../OrSidebar-2c41b483.js';
|
|
107
107
|
export { _ as OrSkeletonCircle } from '../OrSkeletonCircle-c4bf0e34.js';
|
|
@@ -5,6 +5,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
5
5
|
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
6
6
|
headerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
7
7
|
addonStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
8
|
+
contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
8
9
|
state: import("@vue/composition-api").Ref<"open" | "closed">;
|
|
9
10
|
open: () => void;
|
|
10
11
|
close: () => void;
|
|
@@ -73,6 +74,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
73
74
|
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
74
75
|
headerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
75
76
|
addonStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
77
|
+
contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
76
78
|
state: import("@vue/composition-api").Ref<"open" | "closed">;
|
|
77
79
|
open: () => void;
|
|
78
80
|
close: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as ExpansionPanelBackgroundColor, a as ExpansionPanelColor, E as ExpansionPanelVariant, _ as OrExpansionPanelV3 } from '../../OrExpansionPanel-
|
|
1
|
+
export { b as ExpansionPanelBackgroundColor, a as ExpansionPanelColor, E as ExpansionPanelVariant, _ as OrExpansionPanelV3 } from '../../OrExpansionPanel-3468cce1.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import '@vueuse/core';
|
|
4
4
|
import '../../dom-aecadd9a.js';
|
|
@@ -5,3 +5,4 @@ export declare const ExpansionPanelBackgroundColors: Record<`${ExpansionPanelBac
|
|
|
5
5
|
export declare const ExpansionPanelHeader: string[];
|
|
6
6
|
export declare const ExpansionPanelHeaderColors: Record<ExpansionPanelColor, string[]>;
|
|
7
7
|
export declare const ExpansionPanelAddon: string[];
|
|
8
|
+
export declare const ExpansionPanelContent: string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { _ as OrSelectV3 } from '../../OrSelect-
|
|
1
|
+
export { _ as OrSelectV3 } from '../../OrSelect-e7df9dd9.js';
|
|
2
2
|
export { I as SelectSize } from '../../OrInputBox.vue_rollup-plugin-vue_script-bebba826.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../dropdown-open-06d651cf.js';
|
|
@@ -17,7 +17,7 @@ import '../../OrLabel-b465bc0b.js';
|
|
|
17
17
|
import '../../normalize-component-6e8e3d80.js';
|
|
18
18
|
import '../../style-inject.es-4c6f2515.js';
|
|
19
19
|
import '../../OrError-916e928e.js';
|
|
20
|
-
import '../../OrExpansionPanel-
|
|
20
|
+
import '../../OrExpansionPanel-3468cce1.js';
|
|
21
21
|
import '../../usePopoverState-b92c698b.js';
|
|
22
22
|
import '../../OrIcon-0343b3d8.js';
|
|
23
23
|
import '../../OrHint-1220face.js';
|
package/dist/esm/v2/index.js
CHANGED
|
@@ -51,7 +51,7 @@ export { E as EmptyStateSize, _ as OrEmptyStateV3 } from './OrEmptyState-2d3fd68
|
|
|
51
51
|
export { _ as OrError } from './OrError-efc74907.js';
|
|
52
52
|
export { _ as OrErrorTagV3 } from './OrErrorTag-b3c66db6.js';
|
|
53
53
|
export { _ as OrErrorV3 } from './OrError-916e928e.js';
|
|
54
|
-
export { b as ExpansionPanelBackgroundColor, a as ExpansionPanelColor, E as ExpansionPanelVariant, _ as OrExpansionPanelV3 } from './OrExpansionPanel-
|
|
54
|
+
export { b as ExpansionPanelBackgroundColor, a as ExpansionPanelColor, E as ExpansionPanelVariant, _ as OrExpansionPanelV3 } from './OrExpansionPanel-3468cce1.js';
|
|
55
55
|
export { F as FabColor, _ as OrFabV3 } from './OrFab-fc628f6a.js';
|
|
56
56
|
export { _ as OrFloating, a as OrFloatingHideStrategy, O as OrFloatingPlacements } from './OrFloating-b41017c7.js';
|
|
57
57
|
export { F as FormGroupDirection, _ as OrFormGroupV3 } from './OrFormGroup-d4abd2c9.js';
|
|
@@ -101,7 +101,7 @@ export { _ as OrSearch } from './OrSearch-ac542dd6.js';
|
|
|
101
101
|
export { _ as OrSearchV3 } from './OrSearch-b3aa11d9.js';
|
|
102
102
|
export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-bba94cda.js';
|
|
103
103
|
export { _ as OrSelect } from './OrSelect-c0d04cf6.js';
|
|
104
|
-
export { _ as OrSelectV3 } from './OrSelect-
|
|
104
|
+
export { _ as OrSelectV3 } from './OrSelect-e7df9dd9.js';
|
|
105
105
|
export { _ as OrSidebar, O as OrSidebarSide } from './OrSidebar-c56a9221.js';
|
|
106
106
|
export { S as OrSidebarPlacement, _ as OrSidebarV3, S as SidebarPlacement } from './OrSidebar-2c41b483.js';
|
|
107
107
|
export { _ as OrSkeletonCircle } from './OrSkeletonCircle-c4bf0e34.js';
|
|
@@ -28,10 +28,10 @@ const ExpansionPanel = [
|
|
|
28
28
|
// Layout
|
|
29
29
|
'layout-column'];
|
|
30
30
|
const ExpansionPanelVariants = {
|
|
31
|
-
|
|
31
|
+
[ExpansionPanelVariant.Default]: [
|
|
32
32
|
// Spacing
|
|
33
33
|
'gap-sm'],
|
|
34
|
-
|
|
34
|
+
[ExpansionPanelVariant.Card]: [
|
|
35
35
|
// Shape
|
|
36
36
|
'rounded-md',
|
|
37
37
|
// Spacing
|
|
@@ -54,12 +54,12 @@ const ExpansionPanelBackgroundColors = {
|
|
|
54
54
|
const ExpansionPanelHeader = [
|
|
55
55
|
// Layout
|
|
56
56
|
'layout-row',
|
|
57
|
+
// Interactivity
|
|
58
|
+
'interactivity-click',
|
|
57
59
|
// Box
|
|
58
60
|
'min-w-[16px]',
|
|
59
61
|
// Spacing
|
|
60
62
|
'gap-sm',
|
|
61
|
-
// Interactivity
|
|
62
|
-
'interactivity-click',
|
|
63
63
|
// Typography
|
|
64
64
|
'typography-body-2-bold',
|
|
65
65
|
// Theme
|
|
@@ -91,6 +91,9 @@ const ExpansionPanelAddon = [
|
|
|
91
91
|
'typography-body-2-regular',
|
|
92
92
|
// Theme
|
|
93
93
|
'theme-foreground-outline', 'dark:theme-foreground-outline-dark'];
|
|
94
|
+
const ExpansionPanelContent = [
|
|
95
|
+
// Spacing
|
|
96
|
+
'ml-[28px] md:ml-[24px]'];
|
|
94
97
|
|
|
95
98
|
var script = defineComponent({
|
|
96
99
|
name: 'OrExpansionPanel',
|
|
@@ -132,6 +135,7 @@ var script = defineComponent({
|
|
|
132
135
|
const rootStyles = computed(() => ['or-expansion-panel-v3', ...ExpansionPanel, ...ExpansionPanelVariants[props.variant], ...ExpansionPanelBackgroundColors[`${props.backgroundColor}-${props.variant}`]]);
|
|
133
136
|
const headerStyles = computed(() => [...ExpansionPanelHeader, ...ExpansionPanelHeaderColors[props.color]]);
|
|
134
137
|
const addonStyles = computed(() => [...ExpansionPanelAddon]);
|
|
138
|
+
const contentStyles = computed(() => [...ExpansionPanelContent]);
|
|
135
139
|
// State
|
|
136
140
|
const {
|
|
137
141
|
state,
|
|
@@ -144,6 +148,7 @@ var script = defineComponent({
|
|
|
144
148
|
rootStyles,
|
|
145
149
|
headerStyles,
|
|
146
150
|
addonStyles,
|
|
151
|
+
contentStyles,
|
|
147
152
|
state,
|
|
148
153
|
open,
|
|
149
154
|
close,
|
|
@@ -177,7 +182,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
177
182
|
variant: 'filled-bold'
|
|
178
183
|
}, null, 8 /* PROPS */, ["class"]), createElementVNode("span", _hoisted_4, toDisplayString(_ctx.label), 1 /* TEXT */)], 10 /* CLASS, PROPS */, _hoisted_3), createElementVNode("div", {
|
|
179
184
|
class: normalizeClass(_ctx.addonStyles)
|
|
180
|
-
}, [renderSlot(_ctx.$slots, "addon")], 2 /* CLASS */)]), withDirectives(createElementVNode("div",
|
|
185
|
+
}, [renderSlot(_ctx.$slots, "addon")], 2 /* CLASS */)]), withDirectives(createElementVNode("div", {
|
|
186
|
+
class: normalizeClass(_ctx.contentStyles)
|
|
187
|
+
}, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */), [[vShow, _ctx.state === 'open']])], 10 /* CLASS, PROPS */, _hoisted_1);
|
|
181
188
|
}
|
|
182
189
|
|
|
183
190
|
script.render = render;
|
|
@@ -8,7 +8,7 @@ import { u as useResponsive } from './useResponsive-5c8291da.js';
|
|
|
8
8
|
import '@onereach/styles/tailwind.config.json';
|
|
9
9
|
import { s as script$3 } from './OrCheckbox-11c3dc2f.js';
|
|
10
10
|
import { s as script$4 } from './OrError-69bd7f6a.js';
|
|
11
|
-
import { s as script$5 } from './OrExpansionPanel-
|
|
11
|
+
import { s as script$5 } from './OrExpansionPanel-691107c8.js';
|
|
12
12
|
import { s as script$6 } from './OrHint-55d3de35.js';
|
|
13
13
|
import { s as script$8 } from './OrIconButton-db76a319.js';
|
|
14
14
|
import { s as script$7 } from './OrIcon-8f6c9c29.js';
|
|
@@ -48,7 +48,7 @@ export { E as EmptyStateSize, s as OrEmptyStateV3 } from '../OrEmptyState-5349a1
|
|
|
48
48
|
export { s as OrError } from '../OrError-f90296db.js';
|
|
49
49
|
export { s as OrErrorTagV3 } from '../OrErrorTag-53a6c1ae.js';
|
|
50
50
|
export { s as OrErrorV3 } from '../OrError-69bd7f6a.js';
|
|
51
|
-
export { b as ExpansionPanelBackgroundColor, a as ExpansionPanelColor, E as ExpansionPanelVariant, s as OrExpansionPanelV3 } from '../OrExpansionPanel-
|
|
51
|
+
export { b as ExpansionPanelBackgroundColor, a as ExpansionPanelColor, E as ExpansionPanelVariant, s as OrExpansionPanelV3 } from '../OrExpansionPanel-691107c8.js';
|
|
52
52
|
export { F as FabColor, s as OrFabV3 } from '../OrFab-be9e0179.js';
|
|
53
53
|
export { s as OrFloating, a as OrFloatingHideStrategy, O as OrFloatingPlacements } from '../OrFloating-052ede5f.js';
|
|
54
54
|
export { F as FormGroupDirection, s as OrFormGroupV3 } from '../OrFormGroup-e42d6e7b.js';
|
|
@@ -97,7 +97,7 @@ export { s as OrSearch } from '../OrSearch-2800e9bf.js';
|
|
|
97
97
|
export { s as OrSearchV3 } from '../OrSearch-4525accf.js';
|
|
98
98
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-6be79b4e.js';
|
|
99
99
|
export { s as OrSelect } from '../OrSelect-9520d6e6.js';
|
|
100
|
-
export { s as OrSelectV3 } from '../OrSelect-
|
|
100
|
+
export { s as OrSelectV3 } from '../OrSelect-f915f049.js';
|
|
101
101
|
export { s as OrSidebar, O as OrSidebarSide } from '../OrSidebar-aaf73310.js';
|
|
102
102
|
export { S as OrSidebarPlacement, s as OrSidebarV3, S as SidebarPlacement } from '../OrSidebar-a3e3f603.js';
|
|
103
103
|
export { s as OrSkeletonCircle } from '../OrSkeletonCircle-66e175a0.js';
|
|
@@ -30,6 +30,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
30
30
|
rootStyles: import("vue-demi").ComputedRef<string[]>;
|
|
31
31
|
headerStyles: import("vue-demi").ComputedRef<string[]>;
|
|
32
32
|
addonStyles: import("vue-demi").ComputedRef<string[]>;
|
|
33
|
+
contentStyles: import("vue-demi").ComputedRef<string[]>;
|
|
33
34
|
state: import("vue-demi").Ref<"open" | "closed">;
|
|
34
35
|
open: () => void;
|
|
35
36
|
close: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as ExpansionPanelBackgroundColor, a as ExpansionPanelColor, E as ExpansionPanelVariant, s as OrExpansionPanelV3 } from '../../OrExpansionPanel-
|
|
1
|
+
export { b as ExpansionPanelBackgroundColor, a as ExpansionPanelColor, E as ExpansionPanelVariant, s as OrExpansionPanelV3 } from '../../OrExpansionPanel-691107c8.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import '@vueuse/core';
|
|
4
4
|
import '../../dom-aecadd9a.js';
|
|
@@ -5,3 +5,4 @@ export declare const ExpansionPanelBackgroundColors: Record<`${ExpansionPanelBac
|
|
|
5
5
|
export declare const ExpansionPanelHeader: string[];
|
|
6
6
|
export declare const ExpansionPanelHeaderColors: Record<ExpansionPanelColor, string[]>;
|
|
7
7
|
export declare const ExpansionPanelAddon: string[];
|
|
8
|
+
export declare const ExpansionPanelContent: string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { s as OrSelectV3 } from '../../OrSelect-
|
|
1
|
+
export { s as OrSelectV3 } from '../../OrSelect-f915f049.js';
|
|
2
2
|
export { I as SelectSize } from '../../OrInputBox-f0bac539.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../dropdown-open-06d651cf.js';
|
|
@@ -17,7 +17,7 @@ import '../../OrLabel-b826da04.js';
|
|
|
17
17
|
import 'vue';
|
|
18
18
|
import '../../style-inject.es-4c6f2515.js';
|
|
19
19
|
import '../../OrError-69bd7f6a.js';
|
|
20
|
-
import '../../OrExpansionPanel-
|
|
20
|
+
import '../../OrExpansionPanel-691107c8.js';
|
|
21
21
|
import '../../usePopoverState-b92c698b.js';
|
|
22
22
|
import '../../OrIcon-8f6c9c29.js';
|
|
23
23
|
import '../../OrHint-55d3de35.js';
|
package/dist/esm/v3/index.js
CHANGED
|
@@ -48,7 +48,7 @@ export { E as EmptyStateSize, s as OrEmptyStateV3 } from './OrEmptyState-5349a1f
|
|
|
48
48
|
export { s as OrError } from './OrError-f90296db.js';
|
|
49
49
|
export { s as OrErrorTagV3 } from './OrErrorTag-53a6c1ae.js';
|
|
50
50
|
export { s as OrErrorV3 } from './OrError-69bd7f6a.js';
|
|
51
|
-
export { b as ExpansionPanelBackgroundColor, a as ExpansionPanelColor, E as ExpansionPanelVariant, s as OrExpansionPanelV3 } from './OrExpansionPanel-
|
|
51
|
+
export { b as ExpansionPanelBackgroundColor, a as ExpansionPanelColor, E as ExpansionPanelVariant, s as OrExpansionPanelV3 } from './OrExpansionPanel-691107c8.js';
|
|
52
52
|
export { F as FabColor, s as OrFabV3 } from './OrFab-be9e0179.js';
|
|
53
53
|
export { s as OrFloating, a as OrFloatingHideStrategy, O as OrFloatingPlacements } from './OrFloating-052ede5f.js';
|
|
54
54
|
export { F as FormGroupDirection, s as OrFormGroupV3 } from './OrFormGroup-e42d6e7b.js';
|
|
@@ -97,7 +97,7 @@ export { s as OrSearch } from './OrSearch-2800e9bf.js';
|
|
|
97
97
|
export { s as OrSearchV3 } from './OrSearch-4525accf.js';
|
|
98
98
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-6be79b4e.js';
|
|
99
99
|
export { s as OrSelect } from './OrSelect-9520d6e6.js';
|
|
100
|
-
export { s as OrSelectV3 } from './OrSelect-
|
|
100
|
+
export { s as OrSelectV3 } from './OrSelect-f915f049.js';
|
|
101
101
|
export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-aaf73310.js';
|
|
102
102
|
export { S as OrSidebarPlacement, s as OrSidebarV3, S as SidebarPlacement } from './OrSidebar-a3e3f603.js';
|
|
103
103
|
export { s as OrSkeletonCircle } from './OrSkeletonCircle-66e175a0.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.10.0",
|
|
4
4
|
"npmUnpacked": "4.15.2",
|
|
5
5
|
"description": "Vue components library for v2/3",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -177,5 +177,5 @@
|
|
|
177
177
|
},
|
|
178
178
|
"./package.json": "./package.json"
|
|
179
179
|
},
|
|
180
|
-
"gitHead": "
|
|
180
|
+
"gitHead": "081ae4c60c8916b5e73d304cd56c789d6f6e80f2"
|
|
181
181
|
}
|
|
@@ -27,7 +27,10 @@
|
|
|
27
27
|
</div>
|
|
28
28
|
</div>
|
|
29
29
|
|
|
30
|
-
<div
|
|
30
|
+
<div
|
|
31
|
+
v-show="state === 'open'"
|
|
32
|
+
:class="contentStyles"
|
|
33
|
+
>
|
|
31
34
|
<slot />
|
|
32
35
|
</div>
|
|
33
36
|
</div>
|
|
@@ -38,7 +41,7 @@ import { computed, defineComponent, PropType, ref, toRef } from 'vue-demi';
|
|
|
38
41
|
import { usePopoverState } from '../../hooks';
|
|
39
42
|
import { OrIconV3 as OrIcon } from '../or-icon-v3';
|
|
40
43
|
import { ExpansionPanelBackgroundColor, ExpansionPanelColor, ExpansionPanelVariant } from './props';
|
|
41
|
-
import { ExpansionPanel, ExpansionPanelAddon, ExpansionPanelBackgroundColors, ExpansionPanelHeader, ExpansionPanelHeaderColors, ExpansionPanelVariants } from './styles';
|
|
44
|
+
import { ExpansionPanel, ExpansionPanelAddon, ExpansionPanelBackgroundColors, ExpansionPanelContent, ExpansionPanelHeader, ExpansionPanelHeaderColors, ExpansionPanelVariants } from './styles';
|
|
42
45
|
|
|
43
46
|
export default defineComponent({
|
|
44
47
|
name: 'OrExpansionPanel',
|
|
@@ -117,6 +120,10 @@ export default defineComponent({
|
|
|
117
120
|
...ExpansionPanelAddon,
|
|
118
121
|
]);
|
|
119
122
|
|
|
123
|
+
const contentStyles = computed(() => [
|
|
124
|
+
...ExpansionPanelContent,
|
|
125
|
+
]);
|
|
126
|
+
|
|
120
127
|
// State
|
|
121
128
|
const { state, open, close, toggle } = usePopoverState(toRef(props, 'isOpen'), context.emit);
|
|
122
129
|
|
|
@@ -125,6 +132,8 @@ export default defineComponent({
|
|
|
125
132
|
rootStyles,
|
|
126
133
|
headerStyles,
|
|
127
134
|
addonStyles,
|
|
135
|
+
contentStyles,
|
|
136
|
+
|
|
128
137
|
state,
|
|
129
138
|
open,
|
|
130
139
|
close,
|
|
@@ -6,12 +6,12 @@ export const ExpansionPanel: string[] = [
|
|
|
6
6
|
];
|
|
7
7
|
|
|
8
8
|
export const ExpansionPanelVariants: Record<ExpansionPanelVariant, string[]> = {
|
|
9
|
-
|
|
9
|
+
[ExpansionPanelVariant.Default]: [
|
|
10
10
|
// Spacing
|
|
11
11
|
'gap-sm',
|
|
12
12
|
],
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
[ExpansionPanelVariant.Card]: [
|
|
15
15
|
// Shape
|
|
16
16
|
'rounded-md',
|
|
17
17
|
|
|
@@ -53,15 +53,15 @@ export const ExpansionPanelHeader: string[] = [
|
|
|
53
53
|
// Layout
|
|
54
54
|
'layout-row',
|
|
55
55
|
|
|
56
|
+
// Interactivity
|
|
57
|
+
'interactivity-click',
|
|
58
|
+
|
|
56
59
|
// Box
|
|
57
60
|
'min-w-[16px]',
|
|
58
61
|
|
|
59
62
|
// Spacing
|
|
60
63
|
'gap-sm',
|
|
61
64
|
|
|
62
|
-
// Interactivity
|
|
63
|
-
'interactivity-click',
|
|
64
|
-
|
|
65
65
|
// Typography
|
|
66
66
|
'typography-body-2-bold',
|
|
67
67
|
|
|
@@ -118,3 +118,8 @@ export const ExpansionPanelAddon: string[] = [
|
|
|
118
118
|
'theme-foreground-outline',
|
|
119
119
|
'dark:theme-foreground-outline-dark',
|
|
120
120
|
];
|
|
121
|
+
|
|
122
|
+
export const ExpansionPanelContent: string[] = [
|
|
123
|
+
// Spacing
|
|
124
|
+
'ml-[28px] md:ml-[24px]',
|
|
125
|
+
];
|