@onereach/ui-components 2.63.0-beta.1907.0 → 2.63.1-beta.1936.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/v2/OrCardCollection-5d5046f1.js +227 -0
- package/dist/v2/{OrConfirm-8d149ece.js → OrConfirm-edc537b3.js} +1 -1
- package/dist/v2/{OrIconButton-5883eba0.js → OrIconButton-2088a37f.js} +1 -1
- package/dist/v2/{OrInlineInput-16a343c1.js → OrInlineInput-da65c72a.js} +9 -8
- package/dist/v2/{OrInlineTextarea-f154bdf5.js → OrInlineTextarea-da66759a.js} +9 -8
- package/dist/v2/{OrInput-4a50fe57.js → OrInput-655bed71.js} +9 -7
- package/dist/v2/{OrModal-64c5ae2e.js → OrModal-a1452b11.js} +1 -1
- package/dist/v2/{OrNotification-9c164908.js → OrNotification-ac420f39.js} +1 -1
- package/dist/v2/{OrSearch-a247f072.js → OrSearch-287a08a9.js} +1 -1
- package/dist/v2/OrSegmentedControl-17df63b8.js +236 -0
- package/dist/v2/{OrSelect-f416b7aa.js → OrSelect-1a353817.js} +4 -4
- package/dist/v2/OrSortHeader-a6004b24.js +133 -0
- package/dist/v2/{OrTabs-b4a9740b.js → OrTabs-f2a60b41.js} +1 -1
- package/dist/v2/{OrTag-ab03c4f7.js → OrTag-1ced4e58.js} +1 -1
- package/dist/v2/{OrTextarea-8773d494.js → OrTextarea-cc70afc9.js} +5 -5
- package/dist/v2/{OrTooltip-caeac590.js → OrTooltip-afe7030b.js} +33 -3
- package/dist/v2/components/index.d.ts +3 -0
- package/dist/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +17 -0
- package/dist/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +98 -0
- package/dist/v2/components/or-card-collection-v3/index.d.ts +3 -0
- package/dist/v2/components/or-card-collection-v3/props.d.ts +4 -0
- package/dist/v2/components/or-card-collection-v3/styles.d.ts +6 -0
- package/dist/v2/components/or-card-collection-v3/types.d.ts +7 -0
- package/dist/v2/components/{or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts → or-segmented-control-v3/OrSegmentedControl.stories3.d.ts} +1 -1
- package/dist/v2/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts +77 -0
- package/dist/v2/components/or-segmented-control-v3/components/or-segmented-control-item/OrSegmentedControlItem.vue.d.ts +47 -0
- package/dist/v2/components/or-segmented-control-v3/components/or-segmented-control-item/styles.d.ts +3 -0
- package/dist/v2/components/or-segmented-control-v3/index.d.ts +3 -0
- package/dist/v2/components/or-segmented-control-v3/props.d.ts +4 -0
- package/dist/v2/components/or-segmented-control-v3/styles.d.ts +3 -0
- package/dist/v2/components/or-segmented-control-v3/types.d.ts +4 -0
- package/dist/{v3/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts → v2/components/or-sort-header-v3/OrSortHeader.stories3.d.ts} +1 -1
- package/dist/v2/components/or-sort-header-v3/OrSortHeader.vue.d.ts +57 -0
- package/dist/v2/components/or-sort-header-v3/index.d.ts +2 -0
- package/dist/v2/components/or-sort-header-v3/styles.d.ts +1 -0
- package/dist/v2/components/or-sort-header-v3/types.d.ts +4 -0
- package/dist/v2/components/or-tooltip-v3/styles.d.ts +2 -0
- package/dist/v2/index.js +17 -14
- package/dist/v2/index11.js +20 -1
- package/dist/v2/index12.js +3 -12
- package/dist/v2/index13.js +3 -2
- package/dist/v2/index14.js +11 -5
- package/dist/v2/index15.js +5 -14
- package/dist/v2/index16.js +4 -19
- package/dist/v2/index17.js +28 -4
- package/dist/v2/index18.js +3 -7
- package/dist/v2/index19.js +5 -23
- package/dist/v2/index2.js +17 -14
- package/dist/v2/index20.js +25 -21
- package/dist/v2/index21.js +21 -18
- package/dist/v2/index22.js +20 -2
- package/dist/v2/index23.js +2 -4
- package/dist/v2/index24.js +2 -1
- package/dist/v2/index25.js +1 -2
- package/dist/v2/index26.js +2 -2
- package/dist/v2/index27.js +4 -7
- package/dist/v2/index28.js +6 -2
- package/dist/v2/index29.js +3 -3
- package/dist/v2/index30.js +3 -10
- package/dist/v2/index31.js +9 -12
- package/dist/v2/index32.js +11 -1
- package/dist/v2/index33.js +1 -1
- package/dist/v2/index34.js +1 -16
- package/dist/v2/index35.js +17 -17
- package/dist/v2/index36.js +17 -17
- package/dist/v2/index37.js +16 -1
- package/dist/v2/index38.js +1 -17
- package/dist/v2/index39.js +18 -22
- package/dist/v2/index40.js +22 -2
- package/dist/v2/index41.js +3 -3
- package/dist/v2/index42.js +1 -1
- package/dist/v2/index43.js +3 -20
- package/dist/v2/index44.js +1 -7
- package/dist/v2/index45.js +24 -1
- package/dist/v2/index46.js +3 -3
- package/dist/v2/index47.js +1 -2
- package/dist/v2/index48.js +2 -9
- package/dist/v2/index49.js +10 -17
- package/dist/v2/index50.js +17 -13
- package/dist/v2/index51.js +13 -14
- package/dist/v2/index52.js +14 -13
- package/dist/v2/index53.js +12 -15
- package/dist/v2/index54.js +16 -1
- package/dist/v2/index55.js +2 -6
- package/dist/v2/index56.js +1 -5
- package/dist/v2/index57.js +10 -3
- package/dist/v2/index58.js +2 -4
- package/dist/v2/index59.js +5 -3
- package/dist/v2/index60.js +2 -1
- package/dist/v2/index61.js +2 -5
- package/dist/v2/index62.js +6 -334
- package/dist/v2/index63.js +4 -4
- package/dist/v2/index64.js +2 -16
- package/dist/v2/index65.js +15 -24
- package/dist/v2/index66.js +26 -4
- package/dist/v2/index67.js +2 -1
- package/dist/v2/index68.js +3 -4
- package/dist/v2/index69.js +3 -4
- package/dist/v2/index70.js +3 -10
- package/dist/v2/index71.js +3 -6
- package/dist/v2/index72.js +4 -4
- package/dist/v2/index73.js +15 -6
- package/dist/v2/index74.js +2 -2
- package/dist/v2/index75.js +6 -3
- package/dist/v2/index76.js +4 -3
- package/dist/v2/index77.js +1 -2
- package/dist/v2/index78.js +2 -14
- package/dist/v2/index79.js +2 -10
- package/dist/v2/index80.js +5 -4
- package/dist/v2/index81.js +12 -2
- package/dist/v2/index82.js +14 -2
- package/dist/v2/index83.js +2 -3
- package/dist/v2/index84.js +2 -8
- package/dist/v2/index85.js +2 -20
- package/dist/v2/index86.js +8 -18
- package/dist/v2/index87.js +21 -1
- package/dist/v2/index88.js +17 -16
- package/dist/v2/index89.js +1 -1
- package/dist/v2/index90.js +17 -9
- package/dist/v2/index91.js +2 -12
- package/dist/v2/index92.js +10 -1
- package/dist/v2/index93.js +12 -6
- package/dist/v2/index94.js +1 -2
- package/dist/v2/index95.js +7 -0
- package/dist/v2/index96.js +3 -0
- package/dist/v2/{types-fb93ea4e.js → types-89aad7fb.js} +1 -1
- package/dist/v3/OrCardCollection-c6f3ac23.js +198 -0
- package/dist/v3/{OrConfirm-456ddee1.js → OrConfirm-0bafcc7b.js} +1 -1
- package/dist/v3/{OrIconButton-b8066b5d.js → OrIconButton-5fb3a9aa.js} +1 -1
- package/dist/v3/{OrInlineInput-280768ba.js → OrInlineInput-d9bbc08c.js} +9 -6
- package/dist/v3/{OrInlineTextarea-0f63f344.js → OrInlineTextarea-d5a97ed9.js} +9 -6
- package/dist/v3/{OrInput-3eef7945.js → OrInput-db4813b4.js} +11 -6
- package/dist/v3/{OrModal-f67d37d3.js → OrModal-3a43b7e7.js} +1 -1
- package/dist/v3/{OrNotification-fefa1cb4.js → OrNotification-433d16f7.js} +1 -1
- package/dist/v3/{OrSearch-15a70678.js → OrSearch-0c29f499.js} +1 -1
- package/dist/v3/OrSegmentedControl-2bbc0f22.js +184 -0
- package/dist/v3/{OrSelect-9d300f55.js → OrSelect-323a87b4.js} +7 -5
- package/dist/v3/OrSortHeader-5eba50cd.js +104 -0
- package/dist/v3/{OrTabs-194ca950.js → OrTabs-ac0be933.js} +1 -1
- package/dist/v3/{OrTag-144b4ab8.js → OrTag-deaff080.js} +1 -1
- package/dist/v3/{OrTextarea-09aa33dc.js → OrTextarea-98895b2a.js} +6 -4
- package/dist/v3/{OrTooltip-30e05f9e.js → OrTooltip-36c6728c.js} +33 -3
- package/dist/v3/components/index.d.ts +3 -0
- package/dist/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +17 -0
- package/dist/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +98 -0
- package/dist/v3/components/or-card-collection-v3/index.d.ts +3 -0
- package/dist/v3/components/or-card-collection-v3/props.d.ts +4 -0
- package/dist/v3/components/or-card-collection-v3/styles.d.ts +6 -0
- package/dist/v3/components/or-card-collection-v3/types.d.ts +7 -0
- package/dist/v3/components/or-segmented-control-v3/OrSegmentedControl.stories3.d.ts +12 -0
- package/dist/v3/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts +77 -0
- package/dist/v3/components/or-segmented-control-v3/components/or-segmented-control-item/OrSegmentedControlItem.vue.d.ts +47 -0
- package/dist/v3/components/or-segmented-control-v3/components/or-segmented-control-item/styles.d.ts +3 -0
- package/dist/v3/components/or-segmented-control-v3/index.d.ts +3 -0
- package/dist/v3/components/or-segmented-control-v3/props.d.ts +4 -0
- package/dist/v3/components/or-segmented-control-v3/styles.d.ts +3 -0
- package/dist/v3/components/or-segmented-control-v3/types.d.ts +4 -0
- package/dist/v3/components/or-sort-header-v3/OrSortHeader.stories3.d.ts +12 -0
- package/dist/v3/components/or-sort-header-v3/OrSortHeader.vue.d.ts +57 -0
- package/dist/v3/components/or-sort-header-v3/index.d.ts +2 -0
- package/dist/v3/components/or-sort-header-v3/styles.d.ts +1 -0
- package/dist/v3/components/or-sort-header-v3/types.d.ts +4 -0
- package/dist/v3/components/or-tooltip-v3/styles.d.ts +2 -0
- package/dist/v3/index.js +17 -14
- package/dist/v3/index11.js +19 -1
- package/dist/v3/index12.js +3 -11
- package/dist/v3/index13.js +3 -2
- package/dist/v3/index14.js +9 -4
- package/dist/v3/index15.js +4 -11
- package/dist/v3/index16.js +3 -17
- package/dist/v3/index17.js +25 -4
- package/dist/v3/index18.js +3 -6
- package/dist/v3/index19.js +5 -20
- package/dist/v3/index2.js +17 -14
- package/dist/v3/index20.js +21 -20
- package/dist/v3/index21.js +20 -15
- package/dist/v3/index22.js +16 -1
- package/dist/v3/index23.js +2 -4
- package/dist/v3/index24.js +2 -1
- package/dist/v3/index25.js +1 -2
- package/dist/v3/index26.js +2 -2
- package/dist/v3/index27.js +4 -6
- package/dist/v3/index28.js +5 -2
- package/dist/v3/index29.js +3 -3
- package/dist/v3/index30.js +3 -9
- package/dist/v3/index31.js +8 -11
- package/dist/v3/index32.js +10 -1
- package/dist/v3/index33.js +1 -1
- package/dist/v3/index34.js +1 -15
- package/dist/v3/index35.js +16 -14
- package/dist/v3/index36.js +14 -16
- package/dist/v3/index37.js +16 -2
- package/dist/v3/index38.js +2 -17
- package/dist/v3/index39.js +17 -17
- package/dist/v3/index40.js +16 -1
- package/dist/v3/index41.js +3 -3
- package/dist/v3/index42.js +1 -1
- package/dist/v3/index43.js +3 -16
- package/dist/v3/index44.js +1 -7
- package/dist/v3/index45.js +20 -1
- package/dist/v3/index46.js +3 -3
- package/dist/v3/index47.js +1 -2
- package/dist/v3/index48.js +2 -8
- package/dist/v3/index49.js +9 -14
- package/dist/v3/index50.js +14 -12
- package/dist/v3/index51.js +12 -11
- package/dist/v3/index52.js +11 -12
- package/dist/v3/index53.js +11 -11
- package/dist/v3/index54.js +12 -1
- package/dist/v3/index55.js +2 -5
- package/dist/v3/index56.js +1 -5
- package/dist/v3/index57.js +9 -3
- package/dist/v3/index58.js +2 -4
- package/dist/v3/index59.js +5 -3
- package/dist/v3/index60.js +2 -1
- package/dist/v3/index61.js +1 -4
- package/dist/v3/index62.js +6 -307
- package/dist/v3/index63.js +4 -4
- package/dist/v3/index64.js +2 -15
- package/dist/v3/index65.js +13 -22
- package/dist/v3/index66.js +24 -3
- package/dist/v3/index67.js +2 -1
- package/dist/v3/index68.js +3 -4
- package/dist/v3/index69.js +3 -4
- package/dist/v3/index70.js +3 -9
- package/dist/v3/index71.js +3 -4
- package/dist/v3/index72.js +4 -4
- package/dist/v3/index73.js +11 -5
- package/dist/v3/index74.js +2 -2
- package/dist/v3/index75.js +5 -2
- package/dist/v3/index76.js +4 -3
- package/dist/v3/index77.js +1 -2
- package/dist/v3/index78.js +2 -13
- package/dist/v3/index79.js +2 -9
- package/dist/v3/index80.js +5 -4
- package/dist/v3/index81.js +11 -1
- package/dist/v3/index82.js +13 -1
- package/dist/v3/index83.js +1 -3
- package/dist/v3/index84.js +1 -8
- package/dist/v3/index85.js +2 -17
- package/dist/v3/index86.js +7 -14
- package/dist/v3/index87.js +18 -1
- package/dist/v3/index88.js +14 -15
- package/dist/v3/index89.js +1 -1
- package/dist/v3/index90.js +15 -6
- package/dist/v3/index91.js +2 -11
- package/dist/v3/index92.js +8 -1
- package/dist/v3/index93.js +11 -6
- package/dist/v3/index94.js +1 -2
- package/dist/v3/index95.js +7 -0
- package/dist/v3/index96.js +3 -0
- package/dist/v3/{types-a2a8f948.js → types-d5d4ab32.js} +1 -1
- package/package.json +2 -8
- package/src/components/index.ts +3 -0
- package/src/components/or-card-collection-v3/OrCardCollection.docs.mdx +3 -0
- package/src/components/or-card-collection-v3/OrCardCollection.stories3.ts +162 -0
- package/src/components/or-card-collection-v3/OrCardCollection.vue +210 -0
- package/src/components/or-card-collection-v3/index.ts +3 -0
- package/src/components/or-card-collection-v3/props.ts +4 -0
- package/src/components/or-card-collection-v3/styles.ts +53 -0
- package/src/components/or-card-collection-v3/types.ts +8 -0
- package/src/components/or-checkbox-v3/OrCheckbox.stories3.ts +1 -1
- package/src/components/or-inline-input-v3/OrInlineInput.vue +14 -12
- package/src/components/or-inline-textarea-v3/OrInlineTextarea.vue +14 -12
- package/src/components/or-input-v3/OrInput.vue +33 -29
- package/src/components/or-radio-v3/OrRadio.stories3.ts +1 -1
- package/src/components/or-segmented-control-v3/OrSegmentedControl.docs.mdx +7 -0
- package/src/components/or-segmented-control-v3/OrSegmentedControl.stories3.ts +106 -0
- package/src/components/or-segmented-control-v3/OrSegmentedControl.vue +107 -0
- package/src/components/or-segmented-control-v3/components/or-segmented-control-item/OrSegmentedControlItem.vue +64 -0
- package/src/components/or-segmented-control-v3/components/or-segmented-control-item/styles.ts +50 -0
- package/src/components/or-segmented-control-v3/index.ts +3 -0
- package/src/components/or-segmented-control-v3/props.ts +4 -0
- package/src/components/or-segmented-control-v3/styles.ts +24 -0
- package/src/components/or-segmented-control-v3/types.ts +4 -0
- package/src/components/or-select-v3/OrSelect.vue +5 -3
- package/src/components/or-sort-header-v3/OrSortHeader.docs.mdx +3 -0
- package/src/components/or-sort-header-v3/OrSortHeader.stories3.ts +132 -0
- package/src/components/or-sort-header-v3/OrSortHeader.vue +111 -0
- package/src/components/or-sort-header-v3/index.ts +2 -0
- package/src/components/or-sort-header-v3/styles.ts +23 -0
- package/src/components/or-sort-header-v3/types.ts +4 -0
- package/src/components/or-switch-v3/OrSwitch.stories3.ts +1 -1
- package/src/components/or-tabs-v3/OrTabs.stories3.ts +9 -4
- package/src/components/or-tabs-v3/OrTabs.vue +1 -1
- package/src/components/or-textarea-v3/OrTextarea.vue +12 -10
- package/src/components/or-tooltip-v3/OrTooltip.vue +3 -2
- package/src/components/or-tooltip-v3/styles.ts +55 -0
- package/src/hooks/useClassAttribute.ts +1 -1
- package/dist/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -111
- package/dist/v2/components/or-rich-text-editor-v3/index.d.ts +0 -1
- package/dist/v2/components/or-rich-text-editor-v3/styles.d.ts +0 -7
- package/dist/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -111
- package/dist/v3/components/or-rich-text-editor-v3/index.d.ts +0 -1
- package/dist/v3/components/or-rich-text-editor-v3/styles.d.ts +0 -7
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.docs.mdx +0 -16
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.ts +0 -57
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +0 -322
- package/src/components/or-rich-text-editor-v3/index.ts +0 -1
- package/src/components/or-rich-text-editor-v3/styles.ts +0 -71
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import { defineComponent, ref, computed } from 'vue-demi';
|
|
2
|
+
import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
3
|
+
import '@vueuse/core';
|
|
4
|
+
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
5
|
+
|
|
6
|
+
const SegmentedControlItemRoot = [
|
|
7
|
+
// Layout
|
|
8
|
+
'flex', 'items-center', 'justify-center',
|
|
9
|
+
// Shape
|
|
10
|
+
'rounded-md',
|
|
11
|
+
// Interactivity
|
|
12
|
+
'interactivity-auto',
|
|
13
|
+
// Theme
|
|
14
|
+
'theme-foreground-default', 'dark:theme-foreground-default-dark',
|
|
15
|
+
// Theme (selected)
|
|
16
|
+
'selected:theme-background-default', 'dark:selected:theme-background-default-dark',
|
|
17
|
+
// Theme (selected, enabled)
|
|
18
|
+
'selected:enabled:shadow-card', 'dark:selected:enabled:shadow-card-dark'];
|
|
19
|
+
const SegmentedControlItemRootSizes = {
|
|
20
|
+
'm': [
|
|
21
|
+
// Box
|
|
22
|
+
'h-[44px] md:h-[36px]',
|
|
23
|
+
// Spacing
|
|
24
|
+
'px-sm+ md:px-sm+',
|
|
25
|
+
// Typography
|
|
26
|
+
'typography-body-2-regular'],
|
|
27
|
+
's': [
|
|
28
|
+
// Box
|
|
29
|
+
'h-[36px] md:h-[32px]',
|
|
30
|
+
// Spacing
|
|
31
|
+
'px-sm+ md:px-sm',
|
|
32
|
+
// Typography
|
|
33
|
+
'typography-caption-regular']
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
var script$1 = defineComponent({
|
|
37
|
+
name: 'OrSegmentedControlItem',
|
|
38
|
+
inheritAttrs: false,
|
|
39
|
+
props: {
|
|
40
|
+
size: {
|
|
41
|
+
type: String,
|
|
42
|
+
required: true
|
|
43
|
+
},
|
|
44
|
+
selected: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: false
|
|
47
|
+
},
|
|
48
|
+
disabled: {
|
|
49
|
+
type: Boolean,
|
|
50
|
+
default: false
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
setup(props) {
|
|
54
|
+
// Refs
|
|
55
|
+
const root = ref();
|
|
56
|
+
// Styles
|
|
57
|
+
const classAttribute = useClassAttribute();
|
|
58
|
+
const rootStyles = computed(() => ['or-segmented-control-item', ...SegmentedControlItemRoot, ...SegmentedControlItemRootSizes[props.size], classAttribute.value]);
|
|
59
|
+
return {
|
|
60
|
+
root,
|
|
61
|
+
rootStyles
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
/* script */
|
|
67
|
+
const __vue_script__$1 = script$1;
|
|
68
|
+
|
|
69
|
+
/* template */
|
|
70
|
+
var __vue_render__$1 = function () {
|
|
71
|
+
var _vm = this;
|
|
72
|
+
var _h = _vm.$createElement;
|
|
73
|
+
var _c = _vm._self._c || _h;
|
|
74
|
+
return _c('div', _vm._b({
|
|
75
|
+
ref: "root",
|
|
76
|
+
class: _vm.rootStyles,
|
|
77
|
+
attrs: {
|
|
78
|
+
"selected": _vm.selected ? '' : null,
|
|
79
|
+
"disabled": _vm.disabled ? '' : null
|
|
80
|
+
},
|
|
81
|
+
on: {
|
|
82
|
+
"click": function ($event) {
|
|
83
|
+
return _vm.$emit('click', $event);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}, 'div', _vm.$attrs, false), [_c('div', {
|
|
87
|
+
class: ['truncate']
|
|
88
|
+
}, [_vm._t("default")], 2)]);
|
|
89
|
+
};
|
|
90
|
+
var __vue_staticRenderFns__$1 = [];
|
|
91
|
+
|
|
92
|
+
/* style */
|
|
93
|
+
const __vue_inject_styles__$1 = undefined;
|
|
94
|
+
/* scoped */
|
|
95
|
+
const __vue_scope_id__$1 = undefined;
|
|
96
|
+
/* module identifier */
|
|
97
|
+
const __vue_module_identifier__$1 = undefined;
|
|
98
|
+
/* functional template */
|
|
99
|
+
const __vue_is_functional_template__$1 = false;
|
|
100
|
+
/* style inject */
|
|
101
|
+
|
|
102
|
+
/* style inject SSR */
|
|
103
|
+
|
|
104
|
+
/* style inject shadow dom */
|
|
105
|
+
|
|
106
|
+
const __vue_component__$1 = /*#__PURE__*/normalizeComponent({
|
|
107
|
+
render: __vue_render__$1,
|
|
108
|
+
staticRenderFns: __vue_staticRenderFns__$1
|
|
109
|
+
}, __vue_inject_styles__$1, __vue_script__$1, __vue_scope_id__$1, __vue_is_functional_template__$1, __vue_module_identifier__$1, false, undefined, undefined, undefined);
|
|
110
|
+
|
|
111
|
+
var SegmentedControlSize;
|
|
112
|
+
(function (SegmentedControlSize) {
|
|
113
|
+
SegmentedControlSize["M"] = "m";
|
|
114
|
+
SegmentedControlSize["S"] = "s";
|
|
115
|
+
})(SegmentedControlSize || (SegmentedControlSize = {}));
|
|
116
|
+
|
|
117
|
+
const SegmentedControlRoot = [
|
|
118
|
+
// Layout
|
|
119
|
+
'grid', 'grid-flow-col', 'auto-cols-fr',
|
|
120
|
+
// Shape
|
|
121
|
+
'rounded-md',
|
|
122
|
+
// Spacing
|
|
123
|
+
'px-[2px]', 'py-[2px]',
|
|
124
|
+
// Theme
|
|
125
|
+
'theme-background-surface-variant', 'dark:theme-background-surface-variant-dark'];
|
|
126
|
+
const SegmentedControlRootSizes = {
|
|
127
|
+
'm': [],
|
|
128
|
+
's': []
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
var script = defineComponent({
|
|
132
|
+
name: 'OrSegmentedControl',
|
|
133
|
+
components: {
|
|
134
|
+
OrSegmentedControlItem: __vue_component__$1
|
|
135
|
+
},
|
|
136
|
+
inheritAttrs: false,
|
|
137
|
+
props: {
|
|
138
|
+
options: {
|
|
139
|
+
type: Array,
|
|
140
|
+
default: []
|
|
141
|
+
},
|
|
142
|
+
modelValue: {
|
|
143
|
+
type: String,
|
|
144
|
+
default: undefined
|
|
145
|
+
},
|
|
146
|
+
value: {
|
|
147
|
+
type: String,
|
|
148
|
+
default: undefined
|
|
149
|
+
},
|
|
150
|
+
size: {
|
|
151
|
+
type: String,
|
|
152
|
+
default: SegmentedControlSize.M
|
|
153
|
+
},
|
|
154
|
+
disabled: {
|
|
155
|
+
type: Boolean,
|
|
156
|
+
default: false
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
emits: ['update:modelValue', 'input'],
|
|
160
|
+
expose: ['root'],
|
|
161
|
+
setup(props, context) {
|
|
162
|
+
// Refs
|
|
163
|
+
const root = ref();
|
|
164
|
+
// Styles
|
|
165
|
+
const classAttribute = useClassAttribute();
|
|
166
|
+
const rootStyles = computed(() => ['or-segmented-control', ...SegmentedControlRoot, ...SegmentedControlRootSizes[props.size], classAttribute.value]);
|
|
167
|
+
// State
|
|
168
|
+
const proxyModelValue = computed({
|
|
169
|
+
get: () => {
|
|
170
|
+
var _a;
|
|
171
|
+
return (_a = props.modelValue) !== null && _a !== void 0 ? _a : props.value; // TODO: Remove Vue 2 fallback
|
|
172
|
+
},
|
|
173
|
+
|
|
174
|
+
set: value => {
|
|
175
|
+
context.emit('input', value);
|
|
176
|
+
context.emit('update:modelValue', value);
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
return {
|
|
180
|
+
root,
|
|
181
|
+
rootStyles,
|
|
182
|
+
proxyModelValue
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
|
|
187
|
+
/* script */
|
|
188
|
+
const __vue_script__ = script;
|
|
189
|
+
|
|
190
|
+
/* template */
|
|
191
|
+
var __vue_render__ = function () {
|
|
192
|
+
var _vm = this;
|
|
193
|
+
var _h = _vm.$createElement;
|
|
194
|
+
var _c = _vm._self._c || _h;
|
|
195
|
+
return _c('div', _vm._b({
|
|
196
|
+
ref: "root",
|
|
197
|
+
class: _vm.rootStyles
|
|
198
|
+
}, 'div', _vm.$attrs, false), _vm._l(_vm.options, function (option) {
|
|
199
|
+
return _c('OrSegmentedControlItem', {
|
|
200
|
+
key: option.value,
|
|
201
|
+
attrs: {
|
|
202
|
+
"size": _vm.size,
|
|
203
|
+
"selected": option.value === _vm.proxyModelValue,
|
|
204
|
+
"disabled": _vm.disabled
|
|
205
|
+
},
|
|
206
|
+
on: {
|
|
207
|
+
"click": function ($event) {
|
|
208
|
+
$event.stopPropagation();
|
|
209
|
+
_vm.proxyModelValue = option.value;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}, [_vm._v("\n " + _vm._s(option.label) + "\n ")]);
|
|
213
|
+
}), 1);
|
|
214
|
+
};
|
|
215
|
+
var __vue_staticRenderFns__ = [];
|
|
216
|
+
|
|
217
|
+
/* style */
|
|
218
|
+
const __vue_inject_styles__ = undefined;
|
|
219
|
+
/* scoped */
|
|
220
|
+
const __vue_scope_id__ = undefined;
|
|
221
|
+
/* module identifier */
|
|
222
|
+
const __vue_module_identifier__ = undefined;
|
|
223
|
+
/* functional template */
|
|
224
|
+
const __vue_is_functional_template__ = false;
|
|
225
|
+
/* style inject */
|
|
226
|
+
|
|
227
|
+
/* style inject SSR */
|
|
228
|
+
|
|
229
|
+
/* style inject shadow dom */
|
|
230
|
+
|
|
231
|
+
const __vue_component__ = /*#__PURE__*/normalizeComponent({
|
|
232
|
+
render: __vue_render__,
|
|
233
|
+
staticRenderFns: __vue_staticRenderFns__
|
|
234
|
+
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
|
|
235
|
+
|
|
236
|
+
export { SegmentedControlSize as S, __vue_component__ as _ };
|
|
@@ -9,11 +9,11 @@ import { _ as __vue_component__$3 } from './OrExpansionPanel-ce82a6fd.js';
|
|
|
9
9
|
import { _ as __vue_component__$4 } from './OrHint-44356417.js';
|
|
10
10
|
import { _ as __vue_component__$5 } from './OrIcon-124f3bad.js';
|
|
11
11
|
import { _ as __vue_component__$7, a as InputBoxSize } from './OrInputBox-208dceac.js';
|
|
12
|
-
import { _ as __vue_component__$6 } from './OrInput-
|
|
12
|
+
import { _ as __vue_component__$6 } from './OrInput-655bed71.js';
|
|
13
13
|
import { _ as __vue_component__$8 } from './OrLabel-5670468e.js';
|
|
14
14
|
import { _ as __vue_component__$9 } from './OrMenuItem-3a28db7b.js';
|
|
15
15
|
import { _ as __vue_component__$a } from './OrPopover-9080fc00.js';
|
|
16
|
-
import { _ as __vue_component__$b } from './OrTag-
|
|
16
|
+
import { _ as __vue_component__$b } from './OrTag-1ced4e58.js';
|
|
17
17
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
18
18
|
|
|
19
19
|
const SelectRoot = [
|
|
@@ -481,11 +481,11 @@ var __vue_render__ = function () {
|
|
|
481
481
|
class: _vm.noSearchResultsStyles
|
|
482
482
|
}, [_vm._t("noSearchResultsTemplate", function () {
|
|
483
483
|
return [_vm._v("\n No results\n ")];
|
|
484
|
-
})], 2)]], 2)], 2), _vm._v(" "), !_vm.invalid ? [_c('OrHint', {
|
|
484
|
+
})], 2)]], 2)], 2), _vm._v(" "), !_vm.invalid ? [_vm.hint ? [_c('OrHint', {
|
|
485
485
|
attrs: {
|
|
486
486
|
"disabled": _vm.disabled
|
|
487
487
|
}
|
|
488
|
-
}, [_vm._v("\n
|
|
488
|
+
}, [_vm._v("\n " + _vm._s(_vm.hint) + "\n ")])] : _vm._e()] : [_c('OrError', {
|
|
489
489
|
attrs: {
|
|
490
490
|
"disabled": _vm.disabled
|
|
491
491
|
}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { defineComponent, ref, computed } from 'vue-demi';
|
|
2
|
+
import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
3
|
+
import '@vueuse/core';
|
|
4
|
+
import { _ as __vue_component__$1 } from './OrIcon-124f3bad.js';
|
|
5
|
+
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
6
|
+
|
|
7
|
+
const SortHeaderRoot = [
|
|
8
|
+
// Layout
|
|
9
|
+
'inline-flex', 'justify-normal', 'items-center',
|
|
10
|
+
// Interactivity
|
|
11
|
+
'interactivity-auto',
|
|
12
|
+
// Typography
|
|
13
|
+
'typography-caption-regular',
|
|
14
|
+
// Typography (activated)
|
|
15
|
+
'activated:typography-caption-semibold',
|
|
16
|
+
// Theme
|
|
17
|
+
'theme-foreground-outline', 'dark:theme-foreground-outline-dark',
|
|
18
|
+
// Theme (activated)
|
|
19
|
+
'activated:theme-foreground-default', 'dark:activated:theme-foreground-default-dark'];
|
|
20
|
+
|
|
21
|
+
var script = defineComponent({
|
|
22
|
+
name: 'OrSortHeader',
|
|
23
|
+
components: {
|
|
24
|
+
OrIcon: __vue_component__$1
|
|
25
|
+
},
|
|
26
|
+
inheritAttrs: false,
|
|
27
|
+
props: {
|
|
28
|
+
modelValue: {
|
|
29
|
+
type: Object,
|
|
30
|
+
default: undefined
|
|
31
|
+
},
|
|
32
|
+
value: {
|
|
33
|
+
type: Object,
|
|
34
|
+
default: undefined
|
|
35
|
+
},
|
|
36
|
+
inputValue: {
|
|
37
|
+
type: String,
|
|
38
|
+
required: true
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
emits: ['update:modelValue', 'input', 'focus', 'blur'],
|
|
42
|
+
expose: ['root'],
|
|
43
|
+
setup(props, context) {
|
|
44
|
+
// Refs
|
|
45
|
+
const root = ref();
|
|
46
|
+
// Styles
|
|
47
|
+
const classAttribute = useClassAttribute();
|
|
48
|
+
const rootStyles = computed(() => ['or-sort-header', ...SortHeaderRoot, classAttribute.value]);
|
|
49
|
+
// State
|
|
50
|
+
const proxyModelValue = computed({
|
|
51
|
+
get: () => {
|
|
52
|
+
var _a;
|
|
53
|
+
return (_a = props.modelValue) !== null && _a !== void 0 ? _a : props.value; // TODO: Remove Vue 2 fallback
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
set: value => {
|
|
57
|
+
context.emit('input', value);
|
|
58
|
+
context.emit('update:modelValue', value);
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
const activated = computed(() => {
|
|
62
|
+
var _a;
|
|
63
|
+
return ((_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.column) === props.inputValue;
|
|
64
|
+
});
|
|
65
|
+
// Methods
|
|
66
|
+
function toggleDirection() {
|
|
67
|
+
var _a;
|
|
68
|
+
proxyModelValue.value = {
|
|
69
|
+
column: props.inputValue,
|
|
70
|
+
direction: ((_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.direction) === 'asc' ? 'desc' : 'asc'
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
root,
|
|
75
|
+
rootStyles,
|
|
76
|
+
proxyModelValue,
|
|
77
|
+
activated,
|
|
78
|
+
toggleDirection
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
/* script */
|
|
84
|
+
const __vue_script__ = script;
|
|
85
|
+
|
|
86
|
+
/* template */
|
|
87
|
+
var __vue_render__ = function () {
|
|
88
|
+
var _vm = this;
|
|
89
|
+
var _h = _vm.$createElement;
|
|
90
|
+
var _c = _vm._self._c || _h;
|
|
91
|
+
return _c('div', _vm._b({
|
|
92
|
+
ref: "root",
|
|
93
|
+
class: _vm.rootStyles,
|
|
94
|
+
attrs: {
|
|
95
|
+
"activated": _vm.activated ? '' : null
|
|
96
|
+
},
|
|
97
|
+
on: {
|
|
98
|
+
"click": function ($event) {
|
|
99
|
+
$event.stopPropagation();
|
|
100
|
+
return _vm.toggleDirection();
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}, 'div', _vm.$attrs, false), [_vm._t("default"), _vm._v(" "), _vm.activated ? [_c('OrIcon', {
|
|
104
|
+
class: {
|
|
105
|
+
'rotate-180': _vm.proxyModelValue.direction === 'asc'
|
|
106
|
+
},
|
|
107
|
+
attrs: {
|
|
108
|
+
"icon": 'arrow_downward'
|
|
109
|
+
}
|
|
110
|
+
})] : _vm._e()], 2);
|
|
111
|
+
};
|
|
112
|
+
var __vue_staticRenderFns__ = [];
|
|
113
|
+
|
|
114
|
+
/* style */
|
|
115
|
+
const __vue_inject_styles__ = undefined;
|
|
116
|
+
/* scoped */
|
|
117
|
+
const __vue_scope_id__ = undefined;
|
|
118
|
+
/* module identifier */
|
|
119
|
+
const __vue_module_identifier__ = undefined;
|
|
120
|
+
/* functional template */
|
|
121
|
+
const __vue_is_functional_template__ = false;
|
|
122
|
+
/* style inject */
|
|
123
|
+
|
|
124
|
+
/* style inject SSR */
|
|
125
|
+
|
|
126
|
+
/* style inject shadow dom */
|
|
127
|
+
|
|
128
|
+
const __vue_component__ = /*#__PURE__*/normalizeComponent({
|
|
129
|
+
render: __vue_render__,
|
|
130
|
+
staticRenderFns: __vue_staticRenderFns__
|
|
131
|
+
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
|
|
132
|
+
|
|
133
|
+
export { __vue_component__ as _ };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watchPostEffect, unref } from 'vue-demi';
|
|
2
2
|
import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
3
3
|
import '@vueuse/core';
|
|
4
|
-
import { _ as __vue_component__$1 } from './OrIconButton-
|
|
4
|
+
import { _ as __vue_component__$1 } from './OrIconButton-2088a37f.js';
|
|
5
5
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
6
6
|
|
|
7
7
|
var TagVariant;
|
|
@@ -113,7 +113,7 @@ var script = defineComponent({
|
|
|
113
113
|
}
|
|
114
114
|
});
|
|
115
115
|
|
|
116
|
-
var css_248z = "textarea[data-v-
|
|
116
|
+
var css_248z = "textarea[data-v-61af6ad5]{min-width:0;background:0 0;outline:0}";
|
|
117
117
|
styleInject(css_248z);
|
|
118
118
|
|
|
119
119
|
/* script */
|
|
@@ -184,18 +184,18 @@ var __vue_render__ = function () {
|
|
|
184
184
|
_vm.proxyModelValue = $event.target.value;
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
}, 'textarea', _vm.$attrs, false))]), _vm._v(" "), !_vm.invalid ? [_c('OrHint', {
|
|
187
|
+
}, 'textarea', _vm.$attrs, false))]), _vm._v(" "), !_vm.invalid ? [_vm.hint || _vm.maxLength ? [_c('OrHint', {
|
|
188
188
|
attrs: {
|
|
189
189
|
"disabled": _vm.disabled
|
|
190
190
|
},
|
|
191
191
|
scopedSlots: _vm._u([_vm.maxLength ? {
|
|
192
192
|
key: "addon",
|
|
193
193
|
fn: function () {
|
|
194
|
-
return [_vm._v("\n
|
|
194
|
+
return [_vm._v("\n " + _vm._s(_vm.currentLength) + " / " + _vm._s(_vm.maxLength) + "\n ")];
|
|
195
195
|
},
|
|
196
196
|
proxy: true
|
|
197
197
|
} : null], null, true)
|
|
198
|
-
}, [_vm._v("\n
|
|
198
|
+
}, [_vm._v("\n " + _vm._s(_vm.hint) + "\n\n ")])] : _vm._e()] : [_c('OrError', {
|
|
199
199
|
attrs: {
|
|
200
200
|
"disabled": _vm.disabled
|
|
201
201
|
},
|
|
@@ -213,7 +213,7 @@ var __vue_staticRenderFns__ = [];
|
|
|
213
213
|
/* style */
|
|
214
214
|
const __vue_inject_styles__ = undefined;
|
|
215
215
|
/* scoped */
|
|
216
|
-
const __vue_scope_id__ = "data-v-
|
|
216
|
+
const __vue_scope_id__ = "data-v-61af6ad5";
|
|
217
217
|
/* module identifier */
|
|
218
218
|
const __vue_module_identifier__ = undefined;
|
|
219
219
|
/* functional template */
|
|
@@ -11,11 +11,41 @@ const TooltipBody = [
|
|
|
11
11
|
// Box
|
|
12
12
|
'max-w-max', 'rounded-sm',
|
|
13
13
|
// Sizing
|
|
14
|
-
'px-sm', 'py-xs',
|
|
14
|
+
'mx-sm', 'my-sm', 'px-sm', 'py-xs',
|
|
15
15
|
// Typography
|
|
16
16
|
'typography-caption-regular',
|
|
17
17
|
// Theme
|
|
18
18
|
'bg-inverse-surface', 'dark:bg-inverse-surface-dark', 'text-inverse-on-surface', 'dark:text-inverse-on-surface-dark'];
|
|
19
|
+
const TooltipBodyPlacements = {
|
|
20
|
+
'top': [],
|
|
21
|
+
'top-start': [
|
|
22
|
+
// Sizing
|
|
23
|
+
'ml-none'],
|
|
24
|
+
'top-end': [
|
|
25
|
+
// Sizing
|
|
26
|
+
'mr-none'],
|
|
27
|
+
'bottom': [],
|
|
28
|
+
'bottom-start': [
|
|
29
|
+
// Sizing
|
|
30
|
+
'ml-none'],
|
|
31
|
+
'bottom-end': [
|
|
32
|
+
// Sizing
|
|
33
|
+
'mr-none'],
|
|
34
|
+
'left': [],
|
|
35
|
+
'left-start': [
|
|
36
|
+
// Sizing
|
|
37
|
+
'mt-none'],
|
|
38
|
+
'left-end': [
|
|
39
|
+
// Sizing
|
|
40
|
+
'mb-none'],
|
|
41
|
+
'right': [],
|
|
42
|
+
'right-start': [
|
|
43
|
+
// Sizing
|
|
44
|
+
'mt-none'],
|
|
45
|
+
'right-end': [
|
|
46
|
+
// Sizing
|
|
47
|
+
'mb-none']
|
|
48
|
+
};
|
|
19
49
|
|
|
20
50
|
var script = defineComponent({
|
|
21
51
|
name: 'OrTooltip',
|
|
@@ -35,7 +65,7 @@ var script = defineComponent({
|
|
|
35
65
|
},
|
|
36
66
|
emits: ['update:state'],
|
|
37
67
|
expose: ['root', 'open', 'close'],
|
|
38
|
-
setup() {
|
|
68
|
+
setup(props) {
|
|
39
69
|
// Refs
|
|
40
70
|
const root = ref();
|
|
41
71
|
const popover = ref();
|
|
@@ -46,7 +76,7 @@ var script = defineComponent({
|
|
|
46
76
|
// Styles
|
|
47
77
|
const classAttribute = useClassAttribute();
|
|
48
78
|
const rootStyles = computed(() => ['or-tooltip', ...TooltipRoot, classAttribute.value]);
|
|
49
|
-
const bodyStyles = computed(() => [...TooltipBody]);
|
|
79
|
+
const bodyStyles = computed(() => [...TooltipBody, ...TooltipBodyPlacements[props.placement]]);
|
|
50
80
|
// Methods
|
|
51
81
|
function open() {
|
|
52
82
|
const popoverInstance = popover.value;
|
|
@@ -6,6 +6,7 @@ export * from './or-button-v2';
|
|
|
6
6
|
export * from './or-button-v3';
|
|
7
7
|
export * from './or-card';
|
|
8
8
|
export * from './or-card-collection';
|
|
9
|
+
export * from './or-card-collection-v3';
|
|
9
10
|
export * from './or-card-v3';
|
|
10
11
|
export * from './or-carousel';
|
|
11
12
|
export * from './or-checkbox';
|
|
@@ -58,6 +59,7 @@ export * from './or-radio';
|
|
|
58
59
|
export * from './or-radio-group';
|
|
59
60
|
export * from './or-radio-v3';
|
|
60
61
|
export * from './or-search-v3';
|
|
62
|
+
export * from './or-segmented-control-v3';
|
|
61
63
|
export * from './or-select';
|
|
62
64
|
export * from './or-select-v3';
|
|
63
65
|
export * from './or-sidebar';
|
|
@@ -65,6 +67,7 @@ export * from './or-sidebar-v3';
|
|
|
65
67
|
export * from './or-skeleton';
|
|
66
68
|
export * from './or-skeleton-v3';
|
|
67
69
|
export * from './or-slider';
|
|
70
|
+
export * from './or-sort-header-v3';
|
|
68
71
|
export * from './or-stepper';
|
|
69
72
|
export * from './or-switch';
|
|
70
73
|
export * from './or-switch-v3';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
+
declare const _default: Meta<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
3
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
4
|
+
} | string[], {} & {}, {
|
|
5
|
+
[x: number]: string;
|
|
6
|
+
} | {}, true>)>;
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const Default: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
9
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
10
|
+
} | string[], {} & {}, {
|
|
11
|
+
[x: number]: string;
|
|
12
|
+
} | {}, true>)>;
|
|
13
|
+
export declare const WithSorting: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
14
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
15
|
+
} | string[], {} & {}, {
|
|
16
|
+
[x: number]: string;
|
|
17
|
+
} | {}, true>)>;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { PropType } from 'vue-demi';
|
|
2
|
+
import { SortHeaderModel } from '../or-sort-header-v3';
|
|
3
|
+
import { CardCollectionView } from './props';
|
|
4
|
+
import { CardCollectionItem, CardCollectionSortHeader } from './types';
|
|
5
|
+
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
6
|
+
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
7
|
+
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
8
|
+
toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
9
|
+
toolbarPanelStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
10
|
+
contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
11
|
+
proxyView: import("@vue/composition-api").Ref<CardCollectionView>;
|
|
12
|
+
proxySort: import("@vue/composition-api").Ref<{
|
|
13
|
+
column: string;
|
|
14
|
+
direction: "asc" | "desc";
|
|
15
|
+
}>;
|
|
16
|
+
proxySearch: import("@vue/composition-api").Ref<string>;
|
|
17
|
+
switchToGridView: () => void;
|
|
18
|
+
switchToListView: () => void;
|
|
19
|
+
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
20
|
+
items: {
|
|
21
|
+
type: PropType<CardCollectionItem[]>;
|
|
22
|
+
default: CardCollectionItem[];
|
|
23
|
+
};
|
|
24
|
+
view: {
|
|
25
|
+
type: PropType<CardCollectionView>;
|
|
26
|
+
default: CardCollectionView;
|
|
27
|
+
};
|
|
28
|
+
sort: {
|
|
29
|
+
type: PropType<SortHeaderModel>;
|
|
30
|
+
default: undefined;
|
|
31
|
+
};
|
|
32
|
+
sortHeaders: {
|
|
33
|
+
type: PropType<CardCollectionSortHeader[]>;
|
|
34
|
+
default: undefined;
|
|
35
|
+
};
|
|
36
|
+
search: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
default: undefined;
|
|
39
|
+
};
|
|
40
|
+
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
41
|
+
items: {
|
|
42
|
+
type: PropType<CardCollectionItem[]>;
|
|
43
|
+
default: CardCollectionItem[];
|
|
44
|
+
};
|
|
45
|
+
view: {
|
|
46
|
+
type: PropType<CardCollectionView>;
|
|
47
|
+
default: CardCollectionView;
|
|
48
|
+
};
|
|
49
|
+
sort: {
|
|
50
|
+
type: PropType<SortHeaderModel>;
|
|
51
|
+
default: undefined;
|
|
52
|
+
};
|
|
53
|
+
sortHeaders: {
|
|
54
|
+
type: PropType<CardCollectionSortHeader[]>;
|
|
55
|
+
default: undefined;
|
|
56
|
+
};
|
|
57
|
+
search: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
default: undefined;
|
|
60
|
+
};
|
|
61
|
+
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
62
|
+
sort: SortHeaderModel;
|
|
63
|
+
items: CardCollectionItem[];
|
|
64
|
+
view: CardCollectionView;
|
|
65
|
+
sortHeaders: CardCollectionSortHeader[];
|
|
66
|
+
search: string;
|
|
67
|
+
} & {} & {
|
|
68
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
69
|
+
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
70
|
+
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
71
|
+
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
72
|
+
toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
73
|
+
toolbarPanelStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
74
|
+
contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
75
|
+
proxyView: import("@vue/composition-api").Ref<CardCollectionView>;
|
|
76
|
+
proxySort: import("@vue/composition-api").Ref<{
|
|
77
|
+
column: string;
|
|
78
|
+
direction: "asc" | "desc";
|
|
79
|
+
}>;
|
|
80
|
+
proxySearch: import("@vue/composition-api").Ref<string>;
|
|
81
|
+
switchToGridView: () => void;
|
|
82
|
+
switchToListView: () => void;
|
|
83
|
+
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
84
|
+
sort: SortHeaderModel;
|
|
85
|
+
items: CardCollectionItem[];
|
|
86
|
+
view: CardCollectionView;
|
|
87
|
+
sortHeaders: CardCollectionSortHeader[];
|
|
88
|
+
search: string;
|
|
89
|
+
} & {} & {
|
|
90
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
91
|
+
}, {
|
|
92
|
+
sort: SortHeaderModel;
|
|
93
|
+
items: CardCollectionItem[];
|
|
94
|
+
view: CardCollectionView;
|
|
95
|
+
sortHeaders: CardCollectionSortHeader[];
|
|
96
|
+
search: string;
|
|
97
|
+
}, true>);
|
|
98
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CardCollectionView } from './props';
|
|
2
|
+
export declare const CardCollectionRoot: string[];
|
|
3
|
+
export declare const CardCollectionToolbar: string[];
|
|
4
|
+
export declare const CardCollectionToolbarPanel: string[];
|
|
5
|
+
export declare const CardCollectionContent: string[];
|
|
6
|
+
export declare const CardCollectionContentViews: Record<CardCollectionView, string[]>;
|